Accept TLS Function
- Updated2025-07-30
- 3 minute(s) read
Negotiates a Transport Layer Security (TLS) connection on the specified TCP socket as a server. If successful, the connection is transparently encrypted. Otherwise, the connection is closed.

Inputs/Outputs
timeout ms
—
timeout ms specifies the time, in milliseconds, that the function waits before timing out. A value of –1 indicates to wait indefinitely. The default value is 25000.
TCP connection
—
TCP connection specifies the network connection reference that uniquely identifies the TCP connection.
immutable TLS configuration
—
immutable TLS configuration specifies the reference to the immutable TLS configuration.
error in
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
TLS connection
—
TLS connection returns a network connection reference that uniquely identifies the TLS connection. Use this value to refer to this TLS connection in subsequent function calls.
client certificate chain
—
client certificate chain returns an array of Distinguished Encoding Rules (DER) certificates provided by the client. The first element of the array is the certificate of the client.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Data Communication\Protocols\TLS\TLS Client and Server with Self-Signed Server Certificate.vi
timeout ms
—
TCP connection
—
immutable TLS configuration
—
error in
—
TLS connection
—
client certificate chain
—
certificate
—
error out
—