How to fix wget certificate issues

Posted by chetan on June 12, 2012 in computers suck

If you’ve ever run into this annoying message before:

$ wget https://raw.github.com/bagder/curl/master/lib/mk-ca-bundle.pl
--2012-06-12 14:42:46--  https://raw.github.com/bagder/curl/master/lib/mk-ca-bundle.pl
Resolving raw.github.com... 207.97.227.243
Connecting to raw.github.com|207.97.227.243|:443... connected.
ERROR: cannot verify raw.github.com's certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3':
  Unable to locally verify the issuer's authority.
To connect to raw.github.com insecurely, use `--no-check-certificate'.

There’s actually an easy fix!

You may want to run

~/.ssl/mk-ca-bundle.pl

occasionally to keep things up to date as well.