Skip to main content

Get TLS settings

Forms settings for using TLS

Function GetTlsSettings(Val DisableCertVerification, Val CertFilepath = "") Export

ParameterCLI optionTypeRequiredDescription
DisableCertVerification-BooleanAllows to work with invalid certificates, including self signed
CertFilepath-StringPath to the root PEM file of the certificate if it is not in the system repository
Returns

Structure Of KeyAndValue - Structure of TLS connection settings

tip

Tls settings can only be set when a connection is created

Caution

NOCLI: this method is not available in CLI version

1C:Enterprise/OneScript code example
Result = OPI_WebSocket.GetTlsSettings(True);
Result
{
"use_tls": true,
"accept_invalid_certs": true
}