Security Considerations
HTTPS configuration for Liberty Server
To configure https in liberty server, user must create a SSL Certificate. Follow below steps to create SSL certificate and using it in the docker file.
- Open terminal at Liberty Server bin directory as administrator.
- Enter the below command to create SSL certificate:
securityUtility createSSLCertificate --server=servername --password=anypassword --validity=365Example:
securityUtility createSSLCertificate --server=defaultServer --password=password --validity=365 - Add keystore generated in the terminal after executing previous step:
<keyStore id="defaultKeyStore" password="{xor}Lz4sLCgwLTs=" /> -
Now, open server.xml, add below feature details to the existing features
under.
<feature>transportSecurity-1.0</feature> - Copy the server.xml to the Docker file directory location.
- Refer to the below docker file command to copy the server.xml to the server
location in the container.
Example:
COPY server.xml /liberty/wlp/usr/servers/defaultServer/ - Build and deploy the docker file as container.