|
VLink 2.0.0
A high-performance communication middleware
|
Transport-layer SSL/TLS configuration for VLink communication backends. More...
Go to the source code of this file.
Classes | |
| struct | vlink::SslOptions |
| Aggregate of SSL/TLS settings for transport-layer encryption. More... | |
Namespaces | |
| namespace | vlink |
Transport-layer SSL/TLS configuration for VLink communication backends.
SslOptions provides a backend-agnostic way to configure transport-layer TLS encryption. It works through the ssl.* property convention that every transport backend reads during connection setup:
| Backend | Native TLS Mechanism |
|---|---|
| MQTT | MQTTClient_SSLOptions (Paho C), auto tcp:// to ssl:// |
| DDS | TCPv4TransportDescriptor::tls_config (Fast-DDS) |
| CycloneDDS | ddsi_config ssl fields (requires DDS_HAS_SSL) |
| Zenoh | transport/link/tls config keys (zenoh-c, not zenoh-pico) |
| Property Key | SslOptions Field | Description |
|---|---|---|
ssl.ca | ca_file | CA certificate file path (PEM) |
ssl.cert | cert_file | Client certificate file path (PEM) |
ssl.key | key_file | Client private key file path (PEM) |
ssl.key_password | key_password | Private key passphrase |
ssl.verify | verify_peer | "0" to skip verification; default verify |
ssl.server_name | server_name | SNI server name override |
ssl.ciphers | ciphers | Cipher suite string (OpenSSL format) |
| Environment Variable | Maps to |
|---|---|
VLINK_SSL_CA | ssl.ca |
VLINK_SSL_CERT | ssl.cert |
VLINK_SSL_KEY | ssl.key |
VLINK_SSL_KEY_PASS | ssl.key_password |
VLINK_SSL_VERIFY | ssl.verify |
VLINK_SSL_SNI | ssl.server_name |
VLINK_SSL_CIPHERS | ssl.ciphers |
ca_file or cert_file is non-empty. There is no separate ssl.enabled flag. When SSL is enabled on DDS/CycloneDDS, TCP transport is automatically activated because TLS requires TCP.VLINK_ENABLE_ZENOH_PICO) does not support TLS; a warning is logged if SSL properties are present.DDS_HAS_SSL at compile time; a warning is logged if SSL properties are present but the feature was not compiled in.