Add Trusted Certificate To TLS Configuration Function
- Updated2025-07-30
- 2 minute(s) read
Adds a Certificate Authority (CA) certificate to a Transport Layer Security (TLS) configuration and marks the certificate as trusted.

Inputs/Outputs
TLS configuration
—
TLS configuration specifies the reference to the TLS configuration.
certificate
—
certificate specifies a byte array of the Distinguished Encoding Rules (DER) certificate. If the certificate is not for a Certificate Authority (CA), this function returns an error.
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 trusted certificate 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
—
certificate
—
error in
—
TLS configuration out
—
error out
—