Expand description
TLS connector via rustls.
When the tls-rustls feature is enabled, this module provides HTTPS
support using hyper_rustls with Mozilla root certificates. No OpenSSL
system dependency is required.
§Custom CA certificates
For enterprise/internal PKI, use tls_config_with_extra_roots to create
a rustls::ClientConfig with additional trust anchors, then pass it to
the client builder.
Functions§
- default_
tls_ config - Builds a default
ClientConfigwith Mozilla root certificates. - tls_
config_ with_ extra_ roots - Builds a
ClientConfigwith extra CA certificates added to the Mozilla root store.