...
The following configuration must be made in container environmental environment variables.
Info |
---|
For conversion of parameter name to environment variable name, see https://kgs-software.atlassian.net/wiki/spaces/DOCUEN/pages/2749628418/Application+wide+settings#Environment-variables . |
Application-wide setting | Explanation |
---|---|
| Key store format. Supported are PKCS12 and JKS supported. PKCS12 is preferred. |
| Location of the keystore |
| Password for the keystore |
| Alias for the certificate in the pkcs12 store |
|
|
...
Code Block | ||
---|---|---|
| ||
keytool -genkeypair -alias kgs -storepass test1234 -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore kgs.p12 -validity 3650 |
Edit the
docker run
command respective thedocker compose
file to start the container
...
If using docker run
command
...
:
Map the file in the container:
Code Block |
---|
-v ./tiacore/kgs.p12:/application/kgs.p12 |
Add to environment variables:
Code Block |
---|
-e SERVER_SSL_KEY-STORE-TYPE:KEYSTORETYPE=PKCS12 -e SERVER_SSL_KEY-STORE:KEYSTORE=/application/kgs.p12 -e SERVER_SSL_KEYSTOREPASSWORD=test1234 -e SERVER_SSL_KEYALIAS=kgs -e SERVER_SSL_ENABLED=true |
Info |
---|
As the image reference must be last in docker run command, insert the parameter before. |
If using docker compose
file:
Below services > [service name] > volumes
add a volume mapping for the directory containing the keystore:
Code Block |
---|
- ./tiacore/ssl: /application/ssl |
Below services > [service name] > environment
add these parameters:
Code Block |
---|
# HTTPS settings SERVER_SSL_KEYSTORETYPE: PKCS12 SERVER_SSL.KEY-STORE-PASSWORD:test1234 -e_KEYSTORE: /application/ssl/kgs.p12 SERVER_SSL_KEYSTOREPASSWORD: test1234 SERVER_SSL_KEY-ALIASKEYALIAS: kgs -e SERVER_SSL_ENABLED: true |