Created
July 11, 2012 03:55
-
-
Save kevinjqiu/3087883 to your computer and use it in GitHub Desktop.
change ca-bundle on devimage
This file contains 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
cd /root; | |
rm -f cacert.pem*; | |
wget http://curl.haxx.se/ca/cacert.pem; | |
chattr -i /usr/share/curl/curl-ca-bundle.crt; | |
chattr -i /usr/share/ssl/certs/ca-bundle.crt; | |
rm -f /usr/share/curl/curl-ca-bundle.crt; | |
rm -f /usr/share/ssl/certs/ca-bundle.crt; | |
cp -f cacert.pem /usr/share/curl/curl-ca-bundle.crt; | |
cp -f cacert.pem /usr/share/ssl/certs/ca-bundle.crt; | |
chmod 644 /usr/share/curl/curl-ca-bundle.crt; | |
chmod 644 /usr/share/ssl/certs/ca-bundle.crt; | |
chown root.root /usr/share/curl/curl-ca-bundle.crt; | |
chown root.root /usr/share/ssl/certs/ca-bundle.crt; | |
chmod 755 /usr/share; | |
chmod 755 /usr/share/ssl; | |
chmod 755 /usr/share/ssl/certs; | |
chmod 755 /usr/share/curl/; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment