created on | January 21, 2022 |
Create a PKCS12 keystore file, containing the server’s key, the server’s cert and the intermediate CA’s cert:
OpenSSL will request a password for the PKCS12 file that it is about to create, provide and verify the password, note it.
Copy the resulting PKCS12 file to src/main/Liberty/config/resources/security
in the feature manager section, enable the feature Transport Security. this will also enable ssl-1.0:
encrypt the password for the PKCS12 file with the securityUtility
configure the keystore created before with a keystore element and configure TLS (aka SSL) with a ssl element that refers to the configured keystore:
Make shure that the httpEndpoint element contains the httpsPort definition. If the httpEndPoint element contains a reference to a ssl element, make sure that reference points to the ssl element with the right id.
Import the root CA cert to the JDKs trusted certs keystore file cacerts.
File cacerts resides in
The default password after an installation of a JDK / JSDK is ‘changeit’
If at any time later the cert is no more needed, the cert can be deleted from the truststore with:
Oracle JVM documentation Installing a Root Certificate in the Trust Store
Open Liberty docs Transport Security 1.0