handle_automatic_tls

Function handle_automatic_tls 

Source
pub fn handle_automatic_tls(
    ctx: &mut TlsBuildContext,
    server: &ServerConfiguration,
    port: u16,
    sni_hostname: Option<String>,
    crypto_provider: Arc<CryptoProvider>,
    memory_acme_account_cache_data: Arc<RwLock<HashMap<String, Vec<u8>>>>,
) -> Result<Option<LogMessage>>
Expand description

Configures automatic TLS (ACME) for a server configuration.

Depending on the server configuration, this function may:

  • Configure eager (startup-time) ACME
  • Configure on-demand ACME
  • Skip automatic TLS if required conditions are not met

This function does not perform ACME issuance itself; it only wires the required resolvers and configuration objects.