FreeKB - keytool command (List certificates)
keytool command (List certificates)

If you are not familiar with the Java keytool command, check out our Getting Started article.

The -list and -v (verbose) options can be used to view certificates in a keystore.

keytool -list -v -keystore "/path/to/keystore.file"

 

The number of entries in the keystore will be displayed.

Your keystore contains 2 entries

 

The prior command will display every certificate in the keystore. The -alias option can be used to display a specific certificate.

keytool -list -v -keystore "/path/to/keystore.file" -alias alias_name

 

If the keystore file is password protected, the -storepass option can be used to provide the password. Often, even if a keystore is secured with a password, no password may be needed to view the contents of the keystore.

keytool -list -v -keystore "/path/to/keystore.file" -storepass the_keystore_password

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 6b266 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |