keytool view all certificates code example
Example 1: keytool list certificates
keytool -v -list -keystore .keystore
Example 2: keytool list certificates
keytool -list -keystore .keystore -alias foo
keytool -v -list -keystore .keystore
keytool -list -keystore .keystore -alias foo