Skip to main content

Module tls

Module tls 

Source
Expand description

TLS certificate and key loading for STARTTLS support.

The SMTP server upgrades plain-text connections to TLS via STARTTLS. This module reads PEM certificate chains and private keys from disk and builds the rustls configurations used by both the server listener and any outbound client connections.

Functionsยง

ca_cert_path
Returns the default path to the CA certificate file used by the Mailsis infrastructure.
load_default_ca_cert
Loads the CA certificate from the default path.
load_tls_client_config
load_tls_client_config_cert
load_tls_server_config
Loads the TLS configuration from the files and returns a ServerConfig.