keytool get list of certs java 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