Support Questions
Find answers, ask questions, and share your expertise

what extension should keystore and truststore files should have?

Explorer

Hi ,

As per the link : https://docs.hortonworks.com/HDPDocuments/HDP2/HDP2.3.2/bk_dataintegration/content/enabling_hs2_for_...

truststore are imported into cacerts , as per the below command :

keytool -import -trustcacerts -alias <MyHiveLdaps> -storepass <password> -noprompt -file <myCert>.pem -keystore ${JAVA_HOME}/jre/lib/security/cacerts

When we are connecting to hive beeline using below command , does it accept truststore without .jks extensions?

jdbc:hive2://<host>:<port>/<database>;ssl=true;sslTrustStore=<path-to-truststore>;trustStorePassword=<password>

Thanks

JJ

1 REPLY 1

Re: what extension should keystore and truststore files should have?

Master Collaborator

Yes, the extension on the filename should not matter as long as you are using the correct file path.