pub fn self_signed_tls_certs_and_config(
) -> (Vec<CertificateDer<'static>>, ServerConfig)
Available on crate feature server only.
Expand description

Creates a [rustls::ServerConfig] and certificates suitable for testing.

  • Uses a self signed certificate valid for the "localhost" and "127.0.0.1" domains.