Question: how to import crt file into jks?
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.