12.3.2. Importing an SSL certificate in the JVM's trust store

Warning

You are looking at documentation for an older release. Not what you want? See the current release documentation.

For gadgets to work, the SSL certificate must be imported in the JVM trust store:

  1. Because Java keytool does not accept PEM file format, you will need to convert cert-key.pem into DER format.

    openssl x509 -outform der -in cert-key.pem -out cert-key.der

  2. Import your certificate to the JVM trust store using the following command:

    keytool -import -trustcacerts -file cert-key.der -keystore $JAVA_HOME/jre/lib/security/cacerts -alias proxy1.com

Note

The default password of the JVM's trust store is "changeit".

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus