Add CA certifice from Let’s Encrypt to Java 8

Автор | 01.08.2016

For add cert to Java 8 you need use keytool

cd /tmp/ && \
curl -O https://letsencrypt.org/certs/letsencryptauthorityx1.der && \
sudo $JAVA_HOME/bin/keytool -noprompt -importcert -alias letsencryptauthorityx1 -keystore $JAVA_HOME/jre/lib/security/cacerts -file  letsencryptauthorityx1.der  -storepass changeit && \
curl -O https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.der && \
sudo $JAVA_HOME/bin/keytool -noprompt -importcert -alias lets-encrypt-x3-cross-signed -keystore $JAVA_HOME/jre/lib/security/cacerts -file lets-encrypt-x3-cross-signed.der -storepass changeit

For StartSSL

wget https://www.startssl.com/certs/ca.crt
sudo $JAVA_HOME/bin/keytool -noprompt -importcert -alias startSSL -keystore $JAVA_HOME/jre/lib/security/cacerts -file ca.crt -storepass mypass

For check certificate use this Java Class (Alias –
SSLPoke.class.tar )

/usr/java/jdk/bin/java SSLPoke my.domain.com 443
Successfully connected


Залишити відповідь