How to fix untrusted certificates error in ubuntu/debian

If you are experiencing the following error

ERROR: The certificate of `raw.github.com' is not trusted.
ERROR: The certificate of `raw.github.com' hasn't got a known issuer.

Then you simply need to install ca-certificates.. you can do that with the following:

apt-get install ca-certificates