Ask a Question

Advanced Search

Solution ID : SO4085

Last Modified : 05/02/2018

How to install the trusted root into Java cacerts Keystore

Problem

How to install the trusted root into Java cacerts Keystore

Solution

Install the trusted Thawte root into Java  cacerts  Keystore with these steps:

  1. Download the Thawte Root certificates from: www.thawte.com/roots
     
  2. Import the Trusted Root Certificate into your cacerts keystore, using following command:
     
    keytool -import -trustcacerts -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit -alias Root -import -file Trustedcaroot.txt

Note: Depending on the different versions of JDK, the CACERT keystore may be in different locations.