Skip to main content
Version: v4 (Stable)

SetTls

SetTls(tlsVersion AS Integer, selfSigned AS Boolean[, caFile AS String [, clientCertFile AS String[, clientKeyFile AS String]]]) As Integer

Set TLS parameters to use for the connection.

Parameters:

  • tlsVersion: Version of protocol to use (possible values: 0 for default, 1 for TLS 1.0, 2 for TLS 1.1 or 3 for TLS 1.2)
  • selfSigned: Specify if server is self signed, if set 'false', caFile is required.
  • caFile: Certificate Authority file to use.
  • clientCertFile: Client Certificate file to use.
  • clientKeyFile: Client Key file to use.

Returns 0 if success, otherwise the error code.