Error: The certificate of 'github.com' is not trusted

This error message mostly happen when you are building a docker container and you uses wget to get some release file from github.com or the like. The solution is simple when on a debian based distro:

user@host:~$ apt-get install ca-certificates -y

Remains the question why is ca-certificates not a dependency from wget? But don't ask me.