Expand description
TLS certificates and identities.
Structs§
- Certificate
- A Serde-enabled wrapper around
reqwest::Certificate. - Exact
Root 🔒Match - A server certificate verifier that accepts a server certificate that is
byte-for-byte identical to one of
roots, and otherwise defers toinner. - Identity
- A Serde-enabled wrapper around
reqwest::Identity.
Enums§
- TlsError
- An error constructing a
CertificateorIdentity.
Functions§
- common_
name_ 🔒matches - Returns whether
server_nameis a DNS name equal, ignoring ASCII case, to any subject common name ofcert, andcerthas 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
rootsin addition to the platform’s trust store, and that presentsidentity, if any, for client authentication.