Do you have to support a very old Java application?
Old as in only runs on 1.7.0_21-b11?
And this application needs to access websites on servers using Let’s Encrypt?
Especially after September 2021, when the widespread DST Root CA X3 certificate will expire?
There is help.
keytool to the rescue
Oracle kindly provides keytool.
With keytool you can view and manipulate the contents of the Java certificate store,
which usually can be found at /lib/security/cacerts
within in your Java runtime.
view certificates
keytool -list -keystore cacerts -storepass changeit
…where you need to replace
cacerts
with the path to your certificate store locationchangeit
with the password for the store (changeit
is the default password)
add new certificates
First, you need to download the new ISRG Root X1/X2
certificates
from Let’s Encrypt’s website.
Then you just have to add them to your store …
keytool -import -keystore cacerts -storepass changeit -noprompt -trustcacerts -alias isrgrootx1.der -file isrgrootx1.der
test the updated store
Let’s encrypt kindly offers a test page to verify your changes worked: https://valid-isrgrootx1.letsencrypt.org/