This document provides instructions for installing SSL Certificates. If unable to use these instructions for your server, Symantec recommends that you contact either the vendor of your software or an organization that supports Tomcat.
Step 1: Download the SSL Certificate
- Download the certificate from Managed PKI for SSL subscriber services page by following the steps from this link.
NOTE: Ensure that the PKCS#7 format has been selected when downloading the certificate.
- Make sure there are 5 dashes to either side of the BEGIN PKCS#7 and END PKCS#7 and that no white spaces, extra line breaks or additional characters have been inadvertently added.
- To follow the naming convention for Tomcat, rename the certificate filename with the .p7b extension. For example: ssl_cert.p7b
NOTE: If you want to install the Certificate sent from Symantec via e-mail, follow the installation instructions from this link.
Step 2: Import the SSL Certificate into the Keystore
- Enter the following command to import your SSL Certificate:
keytool -import -alias your_alias_name -trustcacerts -file ssl_cert.p7b -keystore your_keystore_filename
NOTE: The alias name and Keystore name in this command must be the same as the alias name and Keystore name used during the generation of the private key and CSR.
NOTE: During the import you might get following error: Error: "java.lang.Exception: Input not an X.509 certificate". To troubleshoot the error please refer to the steps from this solution.
Step 3: Confirm the Contents of the Keystore
- Enter the following command to list the contents of the keystore:
keytool -list -v -keystore your_keystore_filename >output_filename
- View the contents of the output file.
- Verify the following information:
The SSL certificate is imported into the alias with the "Entry Type" of PrivateKeyEntry or KeyEntry. If not, please import the certificate into the Private Key alias.
Step 4: Configure Tomcat server