Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

what extension should keystore and truststore files should have?

Highlighted

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.

Don't have an account?
Coming from Hortonworks? Activate your account here