pub fn tls_config_with_extra_roots(
certs: Vec<CertificateDer<'static>>,
) -> ClientConfigAvailable on crate feature
tls-rustls only.Expand description
Builds a ClientConfig with extra CA certificates added to the
roots default_tls_config trusts.
Use this for enterprise environments with internal PKI. A certificate
that is not a valid trust anchor is logged and skipped; use
tls_config_from_pem to have it refused instead.
ยงPanics
Same as default_tls_config: panics only if the ring crypto
provider does not support the rustls default protocol versions, which
is unreachable for supported ring versions.