Skip to content

Docker image that can be used to test LetsEncrypt compatibility on Java 8

Notifications You must be signed in to change notification settings

extenda/java8-certificate-test

Repository files navigation

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 .

About

Docker image that can be used to test LetsEncrypt compatibility on Java 8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published