...
Info |
---|
As communication is on port configured by |
Example
This demonstrates how a self-signed certificate is created using keytool
JavaSE utility. The keystore file is named kgs.p12
and resides at host in directory ./tiacore
. The parameters to be added into the command to start the container are given for docker run
command (see also Deployment using Container (tC)).
Create a keystore with a self signed certificate or skip this step with existing certificate
...
.
Code Block | ||
---|---|---|
| ||
keytool -genkeypair -alias kgs -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore kgs.p12 -validity 3650 |
Edit the command to start the container
Info |
---|
As the image reference must be last in docker run command, insert the parameter before. |
Map the file in the container:
Code Block |
---|
-v ./tiacore/kgs.p12:/application/kgs.p12 |
Add to environment variables:
Code Block |
---|
server.ssl.key-store-type: PKCS12 server.ssl.key-store: -e SERVER_SSL_KEY-STORE-TYPE:PKCS12 -e SERVER_SSL_KEY-STORE:/application/kgs.p12 server.ssl.key-store-password: test1234 server.ssl.key-alias: kgs server.ssl.enabled: -e SERVER.SSL.KEY-STORE-PASSWORD:test1234 -e SERVER_SSL_KEY-ALIAS:kgs -e SERVER_SSL_ENABLED:true |