FB_SocketTlsSettingsClass

The FB_SocketTlsSettingsClass function block is used to configure the TLS (Transport Layer Security) communication layer. TLS enables secure IEC 61850 client-server communication.
Namespace: Tc3_Sockets
Library: Tc3_Sockets (Tc3_Sockets.compiled-library)
Inheritance hierarchy
FB_SocketTlsSettingsClass
FUNCTION_BLOCK FB_SocketTlsSettingsClass IMPLEMENTS I_SocketTlsSettingsClass
Methods
Name | Description |
---|---|
Saves the file path of the CA certificate in the TLS configuration settings | |
Saves the file path of the client or server certificate in the TLS configuration settings | |
Saves the file path of the Certificate Revocation List (CRL) in the TLS configuration settings | |
Saves the PSK (pre-shared key) and PSK identity string in the TLS configuration settings | |
Resets all TLS configuration settings | |
Saves additional, optional TLS configuration settings of the client | |
Saves additional, optional TLS configuration settings of the server |
Properties
Name |
Type |
Access |
Definition location |
Initial value |
Description |
---|---|---|---|---|---|
nSecurePort |
UDINT |
Get |
3782 |
Secure ISO TP0 (IANA) port number for TLS communication | |
Set |
Local | ||||
connectFlags |
ST_TlsConnectFlags |
Get |
DEFAULT_TLSCONNECTFLAGS |
Additional TLS configuration settings of the client | |
listenFlags |
ST_TlsListenFlags |
Get |
DEFAULT_TLSLISTENFLAGS |
Additional TLS configuration settings of the server | |
pskKey |
PVOID |
Get |
0 |
Points to the first byte of the PSK key | |
pskKeyLen |
UDINT(0..TCPADS_TLS_MAX_PSK_KEY_SIZE) |
Get |
0 |
Byte length of the PSK key | |
sCaPath |
STRING(TCPADS_TLS_CERTIFICATE_PATH_SIZE) |
Get |
'' |
File path of the CA certificate | |
sCertPath |
STRING(TCPADS_TLS_CERTIFICATE_PATH_SIZE) |
Get |
'' |
File path of the client or server certificate | |
sCrlPath |
STRING(TCPADS_TLS_CERTIFICATE_PATH_SIZE) |
Get |
'' |
File path of the certificate revocation list (CRL) | |
sIdentity |
STRING(TCPADS_TLS_PSK_IDENTITY_SIZE) |
Get |
'' |
Identity string of the PSK key | |
sKeyPath |
STRING(TCPADS_TLS_CERTIFICATE_PATH_SIZE) |
Get |
'' |
File path of the private key | |
sKeyPwd |
STRING(TCPADS_TLS_KEY_PASSWORD_SIZE) |
Get |
'' |
Password string of the certificate |