pub struct Tls {
pub cert_file: String,
pub key_file: String,
pub ca_file: String,
}Expand description
TLS settings for an OTLP receiver (gRPC or HTTP).
These configure server-side TLS for the receiver. When cert_file and key_file are both set, the receiver
accepts encrypted connections. When ca_file is also set, the server requests client certificates and verifies
them if presented, but does not require them (optional verification).
Fields§
§cert_file: StringPath to the PEM-encoded certificate chain file.
When set together with key_file, enables TLS on the receiver. Defaults to empty (TLS disabled).
key_file: StringPath to the PEM-encoded private key file.
The private key must correspond to the leaf certificate in cert_file. Defaults to empty (TLS disabled).
ca_file: StringPath to the PEM-encoded CA certificate file for verifying client certificates.
When set, the server requests client certificates and verifies them against the CA certificates in this file. Clients that present a certificate must provide a valid one; clients that present no certificate are still accepted. Defaults to empty (no client certificate verification).