Skip to content

Instantly share code, notes, and snippets.

@dolanor
Created October 16, 2014 10:10
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 dolanor/6e21345d77d7f9637983 to your computer and use it in GitHub Desktop.
Save dolanor/6e21345d77d7f9637983 to your computer and use it in GitHub Desktop.
Import CACert root and class3 certificate to the java keystore with keytool
# From http://wiki.cacert.org/FAQ/ImportRootCert#Java
curl -O http://www.cacert.org/certs/root.crt
curl -O http://www.cacert.org/certs/class3.crt
sudo keytool -keystore /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/cacerts -import -trustcacerts -v -alias cacertclass1 -file root.crt
sudo keytool -keystore /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/cacerts -import -trustcacerts -v -alias cacertclass3 -file class3.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment