pub async fn resolve_rustls_config(
tls_config: &TlsConfig,
account_cfg: &AccountZoneConfig,
service_cert: Option<&PathBuf>,
service_key: Option<&PathBuf>,
) -> Result<Option<ResolvedTlsConfig>>Expand description
Resolve HTTP TLS configuration and any protocol-specific acceptor.
Resolution order:
tls_config.enabled == false→None(plain HTTP)- Both
service_cert+service_keyset → per-service PEM files (overrides mode) mode = "acme"→ obtain/renew via ACME and use its challenge-aware acceptor- Otherwise → shared self-signed /
filesmode materials