Skip to content

Instantly share code, notes, and snippets.

@chetan
Created June 12, 2012 14:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chetan/2917915 to your computer and use it in GitHub Desktop.
Save chetan/2917915 to your computer and use it in GitHub Desktop.
How to fix wget certificate issues
wget --no-check-certificate https://raw.github.com/bagder/curl/master/lib/mk-ca-bundle.pl
perl mk-ca-bundle.pl && rm certdata.txt
mkdir -p ~/.ssl/ && mv ca-bundle.crt mk-ca-bundle.pl ~/.ssl
echo "ca_certificate = ~/.ssl/ca-bundle.crt" >> ~/.wgetrc
@halilim
Copy link

halilim commented Nov 3, 2013

It can be put into CURL_CA_BUNDLE for curl as well, i.e.:

export CURL_CA_BUNDLE=~/.ssl/ca-bundle.crt

(to make it permanent, put this line into your ~/.profile, ~/.bash_profile etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment