This is the repository for a Docker image that can be used to test LetsEncrypt compatibility on Java 8.
This program can be run containerized or on a local Java distribution. Patching feature is only available on Docker.
docker run --rm extenda/java8-certificate-test:8u102 \
testrunner.hiiretail.com \
letsencrypt.org
The command will exit with status 1 if it fails to connect to any of the domains.
It's possible to apply a patch to support the ISRG Root X1 LetsEncrypt certificate.
Simply include --patch
with the command.
docker run --rm extenda/java8-certificate-test:8u102 \
--patch \
testrunner.hiiretail.com \
letsencrypt.org
The patch executes the following keytool
command.
usr/bin/keytool -importcert -noprompt \
-storepass changeit \
-alias isrgrootx1 \
-keystore /usr/lib/jvm/zulu-8-amd64/jre/lib/security/cacerts \
-file /letsencrypt/isrgroot1.pem
The PEM file can be downloaded with cURL
.
curl -sS https://letsencrypt.org/certs/isrgrootx1.pem -o isrgrootx1.pem
First compile the program to obtain an executable jar file.
mvn clean package
java -jar target/java8-certificate-test.jar letsencrypt.org
mvn clean package
docker build -t extenda/java8-certificate-test:8u102 .