This section provides a quick introduction of 'keytool' - a command line tool to manage private keys and public certificates in 'keystore' database file.
"keytool" is command line tool introduced in JDK 1.2 to manage keys and certificates
inside "keystore" database file. "keytool" replaces the same functions offered by "javakey" in JDK 1.1.
"keytool" offers a number functions through the following major command options:
"-genkey": Generates a key pair and stores it as a key entry in the keystore.
"-list": Lists all entries in the keystore.
"-export": Exports the certificate of the specified key entry or certificate entry
out of the keystore to a certificate file.
"-printcert": Prints summary information of a certificate from a certificate file.
"-import": Imports the certificate from a certificate file as a certificate entry into the keystore.
"-keyclone": Creates a new key entry by copying an existing key entry.
"-selfcert": Replaces the certificate in a key entry with a new self-signed certificate.
"-delete": Deletes the entry of the specified alias name.