Skip to main content

build_server_config_with_resolver

Function build_server_config_with_resolver 

Source
pub fn build_server_config_with_resolver(
    resolver: Arc<dyn ResolvesServerCert>,
) -> Arc<ServerConfig> ⓘ
Expand description

Build a ServerConfig that picks its certificate per handshake.

The single-certificate form above cannot serve a multi-tenant proxy: it answers every handshake with the same chain whatever name was asked for. See crate::tls::SniCertResolver.