Importing a certificate to a keystore
keytool -importcert -alias <ALIAS> -v -keystore <KEYSTORE_FILE> -file <INPUT_FILE> -storepass <KEYSTORE_PASSWORD>
Listing the certificates from a keystore
keytool -list -v -keystore <KEYSTORE_FILE> -storepass <KEYSTORE_PASSWORD>
Include the -a <ALIAS> parameter to just display a single certificate
Delete a certificate from a keystore
keytool -delete -v -alias <ALIAS> -keystore <KEYSTORE_FILE> -storepass <KEYSTORE_PASSWORD>
Leave a Reply