Skip to main content

Module tls

Module tls 

Source
Expand description

TLS certificates and identities.

Structs§

Certificate
A Serde-enabled wrapper around reqwest::Certificate.
ExactRootMatch 🔒
A server certificate verifier that accepts a server certificate that is byte-for-byte identical to one of roots, and otherwise defers to inner.
Identity
A Serde-enabled wrapper around reqwest::Identity.

Enums§

TlsError
An error constructing a Certificate or Identity.

Functions§

common_name_matches 🔒
Returns whether server_name is a DNS name equal, ignoring ASCII case, to any subject common name of cert, and cert has no DNS or IP subjectAltName.
parse_identity_pem 🔒
Splits an identity PEM buffer into its certificate chain and private key.
rustls_config 🔒
Builds the rustls configuration for a client that trusts roots in addition to the platform’s trust store, and that presents identity, if any, for client authentication.