View Keystore and Truststore certificates using keytool

View Truststore certificates:

Navigate to %JAVA_HOME%/jre/lib/security and give the command,
keytool -list -v -keystore cacerts

if you wish to copy all those certificates to a text file give the command below,
keytool -list -v -keystore cacerts | clip & notepad

now give CTRL+V on the notepad and save the file for later.

View Keystore certificates:

Navigate to directory where you generated your keystore and give the command,
keytool -list -v -keystore keystore.jks

if your keystore is .keystore then,
keytool -list -v -keystore .keystore

 

Advertisements
View Keystore and Truststore certificates using keytool

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s