Ask a Question

Install a GeoTrust certificate in Tomcat Server

Solution

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

Step 1: Download the GeoTrust certificate in PKCS#7 format 

  1. Download a PKCS #7 certificate file format through GeoTrust

Step 2: Install the SSL certificate

  • Tomcat keeps its configuration information in the server.xml file. Configure Tomcat to reference the correct keystore and keystore password, refer to this solution.
  1. Import the SSL certificate into the Java keystore using the following keytool command:
     
    keytool -import -alias your_alias_name -trustcacerts -file certificate.p7b  -keystore [keystorename]


Alternate Installation Instructions with X509 format.

  1. Follow Step 1 by downloading an X.509 certificate file format.
  2. Download the intermediate certificate.
  3. Select the Intermediate CAs link based on your certificate product type.  Once you have the SSL certificate and Intermediate CA certificate files, 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 CA certificate (e.g., use alias: intermediateCA)
     
    keytool -import -alias intermediateCA -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 GeoTrust)
     
    keytool -import -alias [your_alias_name] -trustcacerts -file X.509_file_name -keystore [keystorename]

 

Step 3: Configure Tomcat server

  • Tomcat keeps its configuration information in the server.xml file. Configure Tomcat to reference the correct keystore and keystore password, refer to this solution.


Step 4:  Verify certificate installation


Note: 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 additional trouble shooting steps regarding "keytool error: java.lang.Exception: Input not an X.509 certificate".