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