Skip to content

Instantly share code, notes, and snippets.

@michiel
Created May 21, 2014 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michiel/b567571b69141a36b516 to your computer and use it in GitHub Desktop.
Save michiel/b567571b69141a36b516 to your computer and use it in GitHub Desktop.
Import CACert root certs
#!/bin/bash
sudo apt-get install libnss3-tools
cd /tmp
wget -O cacert-root.crt "http://www.cacert.org/certs/root.crt"
wget -O cacert-class3.crt "http://www.cacert.org/certs/class3.crt"
certutil -d sql:$HOME/.pki/nssdb -A -t TC -n "CAcert.org" -i cacert-root.crt
certutil -d sql:$HOME/.pki/nssdb -A -t TC -n "CAcert.org Class 3" -i cacert-class3.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment