The following command can be used to list certificates in keystore file of default java installation:

(When asked for password, enter ‘changeit’ which is default, unless you change it)

c:\…\Java\jdk1.8.0_92\jre\lib\security>keytool -list -keystore cacerts
Enter keystore password: changeit

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 101 entries

digicertassuredidrootca, 16-Apr-2008, trustedCertEntry,
Certificate fingerprint (SHA1): 05:63:B8:63:0D:62:D7:5A:BB:C8:AB:1E:4B:DF:B5:A8:99:B2:4D:43
comodorsaca, 11-May-2015, trustedCertEntry,

Here keystore contains 101 entries or certificates.

 

 

 

 

Advertisements