Configuring Java CAPS for SSL support
- Previous: Public keys, Private keys, and certificates
- Next: OpenSSL Project
Keytool Program
The keytool program was a security tool included in the bin directory of the JavaTM SDK.
This tool manages a type of database called a keystore. Keystores contain of types of entries:
A key entry consists of a private key and the certificate chain for the associated public key.
A Trusted certificate entry is a public key certificate, belongs to another entity and that the owner of the KeyStore have determined to be trustworthy.
Each of the entry in the KeyStore are identified by a unique alias. When you add a entity to the KeyStore, you must specify an alias.
The available commands of the Keytool program include the following:
The genkey command generates a key pair. If you specify a keystore this does not exist and then the KeyStore is created.
The certreq command generates a Certificate Signing Request (CSR).
The Import command adds a certificate to a keystore. If you specify a keystore this does not exist and then the KeyStore is created.
The Export command exports a certificate to a file.
The List command prints the contents of a KeyStore entry.
For more information on the keytool program, go to http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html.
- Previous: Public keys, Private keys, and certificates
- Next: OpenSSL Project
Configuring Java CAPS for SSL support