view details of jks file code example
Example 1: list of certificates in keystore
keytool -list -v -keystore keystore.jks
Example 2: get alias name from jks file
keytool -list -keystore .keystore -alias foo
keytool -list -v -keystore keystore.jks
keytool -list -keystore .keystore -alias foo