Java Snippets
Little tidbits of things Java
Adding a Certificate Authority to the Java Keystore
This took me a while to try and figure out, until Jupin showed me how.
sudo keytool -importcert -trustcacerts -file ~/tmp/certs/ca.cer \
-keystore /usr/java/default/jre/lib/security/cacerts
Enter keystore password:
The default password is 'changeit'. Replace /usr/java/default with your $JDK_HOME and ~/tmp/certs/ca.cer with the certificate you want to import.

