pub fn default_tls_config() -> ClientConfigAvailable on crate feature
tls-rustls only.Expand description
Builds a default ClientConfig with Mozilla root certificates.
Uses TLS 1.2+ with ring as the crypto provider, selected explicitly
(see the private ring_provider helper for the rationale).
ยงPanics
Panics only if the ring crypto provider does not support the rustls
default protocol versions (TLS 1.2 and 1.3). Both are supported for
every ring version this crate is pinned against, so in practice this
function is infallible.