Installing SSL certificates
You can install SSL certificates into HCL Compass, the HCL Compass Docker container, or into the HCL Compass Helm Chart to use with HCL SoFy.
Installing SSL Certificates to HCL Compass
- Copy the keystore.p12 file to the config folder that is located under your HCL Compass REST server distribution folder. You created the keystore.p12 file in Creating the SSL certificate.
- Update the application.properties file in the
same location with the following changes:
server.ssl.key-store: file:config/keystore.p12 server.ssl.key-store-password: YOUR_EXPORT_PASSWORD server.ssl.keyStoreType: PKCS12 server.ssl.keyAlias: 1
Installing SSL Certificates to the HCL Compass Docker container
- Create a /path/to/your/config/ folder.
- Copy the keystore.p12 file to the /path/to/your/config/ folder.
- Run the docker run command with the following additional
environment variables for password and
key-alias. Mount the folder that
you created in step 1. For
example:
docker run -d --name <container-name> -h <container-name> \ ...... --env SSL_PASSWORD=<key-store-password> \ --env SSL_KEY_ALIAS=<keyAlias number> \ -v /path/to/your/keystore/:/opt/hcl/ccm/compass/compass-rest-server-distribution/config/ssl ...... -p 8190:8190 <install-image-name>
Installing SSL Certificates to the HCL Compass Helm Chart
- Create a /path/to/your/config/ folder.
- Copy the keystore.p12 file to the /path/to/your/config/ folder.
- Install the hcl-compass helm chart with the
following additional parameter set:
--set ssl.enabled=true,ssl.password=<key-store-password>,ssl.keyAlias=<keyAlias number>,ssl.keyFolder=/path/to/your/config/
For example:helm install -f new-values.yaml hcl-compass ./hcl-compass --set service.type=NodePort \ --set ssl.enabled=true,ssl.password=password,ssl.keyAlias=1,ssl.keyFolder=/home/hcluser/config/