Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

tia tia® Viewer Core supports HTTP or HTTPS communication. It is not possible to have both at the same time.

...

Parent

Parameter

Explanation

server.ssl

key-store-type

Key store format.

Supported are PKCS12 and JKS supported. PKCS12 is preferred.

server.ssl

key-store

Location of the keystore

server.ssl

key-store-password

Password for the keystore

server.ssl

ssl.key-alias

Alias for the certificate in the pkcs12 store

server.ssl

ssl.enabled

true: Enable HTTPS

...

Info

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 ./tiaviewer.

The store password in the keytool command is test1234. Choose a secure password instead.

The parameters to be added into the command to start the container are given for docker run command (see also Deployment using Container (tC Installation and Updating (Vc)).

  1. Create a keystore with a self signed certificate or skip this step with existing certificate.

...

  1. Edit the command to start the container

...

Map the file in the container:

...

Add to environment variables:

Code Block
-e SERVER_SSL_KEY-STORE-TYPEKEYSTORETYPE:PKCS12
-e SERVER_SSL_KEY-STOREKEYSTORE:/application/kgs.p12
-e SERVER.SSL.KEY-STORE-PASSWORD_KEYSTOREPASSWORD:test1234
-e SERVER_SSL_KEY-ALIASKEYALIAS:kgs
-e SERVER_SSL_ENABLED:true

...