Question: how to import jks to cacerts?
Answer: Download the Thawte Root certificates from: www.thawte.com/roots.
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.