Add Private Key To TLS Configuration Function
- Updated2025-07-30
- 2 minute(s) read
Adds a signed private key to a Transport Layer Security (TLS) configuration. The function is optional for clients but required for servers.

Inputs/Outputs
TLS configuration
—
TLS configuration specifies the reference to the TLS configuration.
private key
—
private key specifies the location of the private key in the local memory.
certificate chain
—
certificate chain specifies an array of Distinguished Encoding Rules (DER) certificates. The certificates must be supplied depth-first: the server's certificate, followed by the Certificate Authority (CA) that signs the certificate of the server, on up to the root CA. Use the Load Certificates Into Memory function to construct this array.
error in
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
TLS configuration out
—
TLS configuration out returns a reference to the TLS configuration with the private key you specify.
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
TLS configuration
—
private key
—
certificate chain
—
error in
—
TLS configuration out
—
error out
—