Common Keytool Commands
Keytool is a management tool for security keys and certificates in a Java environment. It manages a keystore (quite a database that can hold multiple certificates of up to $ s) in the chain of certificates associated with them, which stores the private key and validates the corresponding public key.
Keytool Common commands:
Check for a KeyStore
Keytool-list-v-keystore C:\server.jks
Check the contents of a KeyStore
Keytool-list-v-keystore C:\server.jks
Add a trust root certificate to the KeyStore file
Keytool-import-alias newroot-file Root.cer-keystore Server.jks
Import certificate signed by CA
Keytool-import-keystore C:\server.jks-alias Tomcat-file C:\cert.txt
Export a certificate file from KeyStore
Keytool-export-alias Myssl-keystore Server.jks-rfc-file Server.cer
* Note: "-RFC" means output files in base64 or binary output.
Remove a certificate from KeyStore
Keytool-delete-keystore Server.jks-alias Tomcat
* Note: A certificate with the alias Tomcat is removed.
Common Keytool Commands