Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.41 KB

README.md

File metadata and controls

61 lines (44 loc) · 1.41 KB

java8-certificate-test

This is the repository for a Docker image that can be used to test LetsEncrypt compatibility on Java 8.

Usage

This program can be run containerized or on a local Java distribution. Patching feature is only available on Docker.

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.

Apply LetsEncrypt patch

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

Java

First compile the program to obtain an executable jar file.

mvn clean package
java -jar target/java8-certificate-test.jar letsencrypt.org

How to build

mvn clean package
docker build -t extenda/java8-certificate-test:8u102 .