Java Trusted Certificates Location on Windows


Where is the default trusted certificate keystore file located on my Windows computer? I think I have Java 7 installed.



If you have Java installed on your Windows computer, you can find the default trusted certificate keystore file in the $JAVA_HOME folder, which is normally at "\Program Files\java\jre7\lib\security".

The default trusted certificate keystore file is named as "cacerts" as shown in the example below:

C:\Users\fyicenter>dir "\Program Files\java\jre7\lib\security"

 Directory of C:\Program Files\java\jre7\lib\security

07/04/2012  09:36 PM               421 blacklist
07/04/2012  09:36 PM            83,581 cacerts
07/04/2012  09:36 PM             2,254 java.policy
07/04/2012  09:36 PM            15,132
07/04/2012  09:36 PM                98 javaws.policy
07/04/2012  09:36 PM             2,971 local_policy.jar
07/04/2012  09:36 PM                 0 trusted.libraries
07/04/2012  09:36 PM             2,487 US_export_policy.jar

Not that the default installation of JDK or JRE provides the "cacerts" trusted keystore file, not the "jssecacerts".


Password for "cacerts" - Java System Keystore

What Is JKS (Java KeyStore) File

Using Certificates with Java VM

⇑⇑ Certificates on Java VM

2012-07-21, 24318👍, 0💬