E:\>keytool -list -keystore
E:\SSL_Cert\TempKeyStore.jks
Enter keystore password:
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 3 entries
alias3, 3-Sep-2013, PrivateKeyEntry,
Certificate fingerprint (SHA1):
C2:E9:8D:F3:6D:BC:02:F0:66:7B:FD:6C:69:6A:40:F1:E0:53:BA:0
8
2, 4-Sep-2013, PrivateKeyEntry,
Certificate fingerprint (SHA1):
B0:DF:C4:0B:91:92:74:B1:34:85:4E:2F:27:8C:71:41:BA:07:31:4
B
1, 3-Sep-2013, trustedCertEntry,
Certificate fingerprint (SHA1):
24:00:EF:77:DA:59:6A:89:E0:93:68:E9:84:66:EE:22:A4:A5:A0:C
C
Find the alias of a key in a p12 keystore:
keytool -list -keystore E:\SSL_Cert\xxx.p12 -storetype PKCS12
keytool -list -keystore E:\SSL_Cert\xxx.p12 -storetype PKCS12
Java Keytool Commands for Checking
If you need to check the information within a certificate, or Java keystore, use these commands.- Check a stand-alone certificate
keytool -printcert -v -file mydomain.crt
- Check which certificates are in a Java keystore
keytool -list -v -keystore keystore.jks
- Check a particular keystore entry using an alias
keytool -list -v -keystore keystore.jks -alias mydomain
For more detailed info on keystore and import keys, refer to:
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html
http://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html
No comments:
Post a Comment