ST_IotCommunicatorTls

TLS security settings for the MQTT client.

Syntax

Definition:

TYPE ST_IotCommunicatorTls :
STRUCT
    eVersion           : E_IotCommunicatorTlsVersion := E_IotCommunicatorTlsVersion.tlsv1_2; // TLS version, which is used
    sCA                : STRING(255); // certificate authority as filename (PEM or DER format) or as string (PEM)
    sCert              : STRING(255); // (*optional*) client certificate as filename (PEM or DER format) or as string (PEM)
    sKeyFile           : STRING(255); // (*optional*) client key as filename
    sKeyPwd            : STRING(255);
    bNoServerCertCheck : BOOL; // if FALSE the server certificate is validated (default)
END_STRUCT
END_TYPE

Parameter

Name

Type

Description

eVersion

E_IotCommunicatorTlsVersion

TLS version to be used, based on enum E_IotCommunicatorTlsVersion.

sCA

STRING(255)

Certificate of the certificate authority (CA)

sCert

STRING(255)

Client certificate that is used for authentication at the broker (optional)

sKeyFile

STRING(255)

Private key of the client

sKeyPwd

STRING(255)

Password of the private key, if applicable

bNoServerCertCheck

BOOL

Disables verification of the server certificate validity. If communication is to take place without TLS encryption (HTTP), this value must remain FALSE.