radioAe6rt

Printing Java VM trusted certificates

leave a comment »

Your installation of the Java virtual machine contains a list of certificate authorities (CA) – like your browser has a list of CAs – that the JVM trusts are authentic.

Here is how to generate the list of CAs known to your Java VM:


$ keytool -v -list -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit

In trustedcerts.txt we’ve captured the first few certs.

[tags]java security,keytool,java certificates,cacerts[/tags]

Written by radioae6rt

May 22, 2006 at 7:55 am

Posted in Internet

Leave a Reply