Skip to content

Instantly share code, notes, and snippets.

@yashdeeph709
Last active June 14, 2018 11:19
Show Gist options
  • Save yashdeeph709/0684f766c802b7fc7c91f1370f27ddda to your computer and use it in GitHub Desktop.
Save yashdeeph709/0684f766c802b7fc7c91f1370f27ddda to your computer and use it in GitHub Desktop.
How to install certificates for accessing a ssl secured website through java
keytool -import -trustcacerts -keystore /opt/java/jre/lib/security/cacerts -storepass changeit -noprompt -alias mycert -file <PATH>\certificate.crt
You need to go to $JAVA_HOME/lib/security and run this command to install the certificate.crt file in your CACERTS file.The default password for cacerts store is "changeit". And You have to run it with administrator console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment