Using Java Secure Socket Extension (JSSE) Tools
6.If you have changed the keystore or private key password from their default, then substitute the new password for changeit in the above command.
The tool displays information about the certificate and prompts whether you want to trust the certificate.
7.Type yes, then press Enter.
Then keytool displays something like this:
Certificate was added to keystore [Saving cacerts.jks]
8.Restart the Enterprise Server.
Signing a Digital Certificate Using thekeytool Utility
After creating a digital certificate, the owner must sign it to prevent forgery.
1.Follow the instructions on the CA's Web site for generating certificate key pairs.
2.Download the generated certificate key pair.
Save the certificate in the directory containing the keystore and truststore files, by default
3.In your shell, change to the directory containing the certificate.
4.Use keytool to import the certificate into the local keystore and, if necessary, the local truststore.
keytool
If the keystore or private key password is not the default password, then substitute the new password for changeit in the above command.
5.Restart the Enterprise Server.
Deleting a Certificate Using thekeytool Utility
To delete an existing certificate, use the keytool
Chapter 9 • Configuring Security | 115 |