Created
June 12, 2012 14:37
-
-
Save chetan/2917915 to your computer and use it in GitHub Desktop.
How to fix wget certificate issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It can be put into CURL_CA_BUNDLE for curl as well, i.e.:
(to make it permanent, put this line into your ~/.profile, ~/.bash_profile etc)