pub fn tls_config() -> TlsConfig<()>
Available on crate features
server
and test-utils
only.Expand description
Creates a TlsConfig
suitable for testing.
- Uses a self signed certificate valid for the
"localhost"
and"127.0.0.1"
domains. - Configures https to be served on an OS assigned port on ipv4.