Security - TLS

TLS (Transport Layer Security) provide a secure communication channel between a client and a server. At its core, TLS consists of cryptographic protocols that use a handshake mechanism to negotiate various parameters to establish a secure connection between the client and the server. The TwinCAT Analytics Logger supports TLS versions 1.2 and 1.3, as well as the modes CA Certificates, CA Certificates & Client Certificate and Preshared Key (PSK).

Security - TLS 1:

MQTT communication with TLS

By the usage of certificates, the TCP port 8883 is exclusively reserved for MQTT over TLS!

Security - TLS 2:

If you have chosen an MQTT target, you can click on the button with the three dots under Connection and the following window for the MQTT connection data will open. After setting the broker with user and password, you can click on the drop-down box for TLS and select Use Certificates or Use Pre-Shared Key (PSK).

Security - TLS 3:

CA certificate

Encryption and authentication via TLS can also be accomplished through a certificate authority (CA). The CA provides a signature via the public key for all communication clients. In this case an MQTT client connect to a message broker without a dedicated client certificate.

The Cert and Key fields do not need to be filled in.

Security - TLS 4:

CA Certificate & Client Certificate

Encryption and authentication via TLS can also be accomplished through a certificate authority (CA). The CA provides a signature via the public key for the message broker (the so-called server key) and usually also for all connecting clients. All communication devices can then trust each other, because the issuing certificate authority is trusted.

Security - TLS 5:

Preshared Key (PSK)

The TLS PreSharedKey (PSK) method offers a simple option for realizing encryption between client and message broker. Client and broker recognize a common password, which is used to encrypt and decrypt the packages.

Security - TLS 6: