Monday, February 16, 2009

keytool - Key and Certificate Management Tool

How do I delete a cert from the default .keystore

keytool -delete -alias xxxxx (where xxxxx is the alias name)

How do I delete a cert from the cacerts file

keytool -delete -alias xxxxx -keystore F:\j2sdk1.4.2_04\jre\lib\security\cacerts (where xxxxx is the alias name)

How do I list all .keystore certs


keytool -list -v | more

How do I list all .keystore certs in a specific keystore

keytool -list -keystore F:\j2sdk1.4.2_04\jre\lib\security\zzzzz | more (where zzzzz is the keystore name)

How do I list just one .keystore cert

keytool -list -v -alias xxxxx | more (where xxxxx is the alias name)

How do I list all cacerts certificates

keytool -list -keystore F:\j2sdk1.4.2_04\jre\lib\security\cacerts | more

How do I list just one cacerts certificate


keytool -list -keystore F:\j2sdk1.4.2_04\jre\lib\security\cacerts -alias xxxxx | more (where xxxxx is the alias name)

No comments: