Add CA certifice from Let’s Encrypt to Java 8

For add cert to Java 8 you need use keytool

cd /tmp/ && \
curl -O && \
sudo $JAVA_HOME/bin/keytool -noprompt -importcert -alias letsencryptauthorityx1 -keystore $JAVA_HOME/jre/lib/security/cacerts -file  letsencryptauthorityx1.der  -storepass changeit && \
curl -O && \
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

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 443
Successfully connected

Добавить комментарий