Some useful Java Keytool commands

May 25, 2018 in SSL Technical FAQs

Below are some commands you might find useful in determining Keystore issues.

Deleting a certificate
keytool -delete -alias aliasname

list all of the keystore certificate
keytool -list -v | more

list all cacerts certificates
keytool -list -keystore \\j2sdk\\jre\\lib\\security\\cacerts | more

list or display a certificate
keytool -printcert -v -file anycert.cer | more