Created
March 20, 2014 22:37
-
-
Save aeris/9675507 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
DIR=/usr/share/ca-certificates/cacert | |
mkdir $DIR | |
wget http://www.cacert.org/certs/root.crt -O $DIR/class1.crt | |
wget http://www.cacert.org/certs/class3.crt -O $DIR/class3.crt | |
dpkg-reconfigure ca-certificates | |
# Choose « yes » to add all new certificates automatically | |
# or « ask » to select manually the CACert certificates to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no way to check : no HTTPS for the wget (which makes sense since the CAcert cert is not yet installed) and not even a fingerprint verification ("ask" is useless since it does not display the fingerprints of the CA to include).