Create the Java KeyStore
Import the client key and certificate into a Java KeyStore
openssl pkcs12 -export -in <CERTIFICATE>.pem -inkey <PRIVATE_KEY>.key -out certificate.p12 -name "certificate"
Enter Export Password:
Verifying - Enter Export Password:keytool -importkeystore -srckeystore certificate.p12 -srcstoretype pkcs12 -destkeystore certs.jks
Importing keystore certificate.p12 to certs.jks...
Enter destination keystore password:
Re-enter new password:Enter source keystore password:
Entry for alias certificate successfully imported.
Import command completed: 1 entries successfully imported, 0 entries failed or cancelledAdd the server root CA certificate to the Java KeyStore
curl --output lets-encrypt-r3.pem https://letsencrypt.org/certs/lets-encrypt-r3.pem
keytool -import -trustcacerts -file "lets-encrypt-r3.pem" -alias lets_encrypt_r3 -keystore certs.jks
Enter keystore password:
Certificate was added to keystoreLast updated