Install a Thawte SSL123 Certificate on Tomcat

Solution ID:    SO14873    Updated:    02/18/2015


Follow the instructions below to install the certificate on a Tomcat Server

Step 1: Download your Thawte certificate in PKCS#7 format

  1. You will receive an email when your certificate is issued.
  2. Retail Clients (bought certificate direct from Thawte): Download your certificate in PKCS#7 format, refer to solution SO13187 
  3. Reseller Clients (bought certificate through a third party): Download your certificate in PKCS#7 format, refer to solution SO17717
  4. Copy and Paste your Thawte certificate to Notepad and save as a cert.p7b

Step 2: Install your certificate and restart

  1. Import the Certificate into the Java keystore using the following keytool command: 
    keytool -import -alias [tomcat] -trustcacerts -file cert.p7b -keystore [keystorename] 

Alternate installation instruction if above error with "keytool error: certificatessxception: Input not an X.509 certificate" occur.

  1. Follow Step 1 by downloading an X.509 certificate file format.
  2. Download the Intermediate certificate, refer to article. AR1384.
  3. Select the Intermediate CA link based on your certificate product type.  Once you have the SSL certificate & Intermediate CA certificate file, begin the import process. 
    Note: It is imperative the installation of Intermediate CA and SSL certificate on the keystore is followed below.
  4. Import the Intermediate certificate (e.g., use alias: intermediate)
    keytool -import -alias intermediate -trustcacerts -file intermediate_file_name  -keystore [keystorename]
  5. Import the SSL certificate (Use the same alias name based on the created keystore and submitted CSR from Thawte)
    keytool -import -alias [your_alias_name] -trustcacerts -file X.509_file_name  -keystore [keystorename]

Tomcat keeps its configuration information in the server.xml file. Configure Tomcat to reference the correct keystore and keystore password as shown in the following solution: SO2144

Tomcat runs SSL over port 8443. Make sure that this port is enabled on the Tomcat server and any firewalls/proxies this server may lie behind.

For additonal trouble shooting steps regarding "keytool error: java.lang.Exception: Input not an X.509 certificate" refer to solution SO7108


Thawte has made efforts to ensure the accuracy and completeness of the information in this document. However, Thawte makes no warranties of any kind (whether express, implied or statutory) with respect to the information contained herein. Thawte assumes no liability to any party for any loss or damage (whether direct or indirect) caused by any errors, omissions, or statements of any kind contained in this document. Further, Thawte assumes no liability arising from the application or use of the product or service described herein and specifically disclaims any representation that the products or services described herein do not infringe upon any existing or future intellectual property rights. Nothing herein grants the reader any license to make, use, or sell equipment or products constructed in accordance with this document. Finally, all rights and privileges related to any intellectual property right described herein are vested in the patent, trademark, or service mark owner, and no other person may exercise such rights without express permission, authority, or license secured from the patent, trademark, or service mark owner. Thawte reserves the right to make changes to any information herein without further notice.  

Knowledge Center

Search Tips