Q> How to find out a certificate in keystore?
[CMD] keytool -v -list -keystore keystore.jks -storepass ****
# Here keystore name is assumed as keystore.jks
# Pass the password of the keystore in the section marked ****
.Q> How to Import a new certificate in Keystore?
[CMD]keytool -import -alias app.cer -file "application.cer" -keystore keystore.jks -storepass ****
# Assuming certificate file is stored in same location as application.cer
# Provide the Alias which can reflect the name of application for which certificate is required.
Q> How to export a certificate from Keystore?
[CMD]keytool -export -alias app.cer -keystore keystore.jks -storepass **** -file qa_application.cer
# Here keystore name is assumed as keystore.jks
# The certificate is stored in a file called qa_application.cer
Q> How to delete an obsolete(expired) certificate?
[CMD]keytool -delete -alias application_cer -keystore keystore.jks -storepass ***
# Here the alias in keystore is verified as application_cer