Keytool Command

Below are some commonly used keytool commands that i always forget 🙂

Import certificate in the Java TrustStore (cacerts).

The location of the cacerts file is JAVA_HOME/jre/lib/security

The default password for cacerts is changeit

keytool -importcert -trustcacerts -alias <aliasname> -file <certificate filename with full path> -keystore cacerts -storepass changeit

Import certificate to DemoTrustKeyStore

The location of the DemoTrustKeyStore is <WebLogic Domain_HOME>

The default password is DemoTrustKeyStorePassPhrase

keytool -importcert -trustcacerts -alias <aliasname> -file <certificate filename with full path> -keystore DemoTrust.jks -storepass DemoTrustKeyStorePassPhrase

 


 

Leave a Reply

Your email address will not be published. Required fields are marked *