keytool list code example
Example 1: list of certificates in keystore
keytool -list -v -keystore keystore.jks
Example 2: keytool list certificates
keytool -v -list -keystore .keystore
Example 3: keytool list certificates
keytool -list -keystore .keystore -alias foo