Expand description
webpki: Web PKI X.509 Certificate Validation.
See EndEntityCert’s documentation for a description of the certificate
processing steps necessary for a TLS connection.
Features
| Feature | Description |
|---|---|
alloc | Enable features that require use of the heap. Currently all RSA signature algorithms require this feature. |
std | Enable features that require libstd. Implies alloc. |
ring | Enable use of the ring crate for cryptography. |
aws_lc_rs | Enable use of the aws-lc-rs crate for cryptography. |
Re-exports
pub use pki_types as types;
Modules
- Encodings of the PKIX AlgorithmIdentifier type.
- aws_lc_rs
aws_lc_rsSignature verification algorithm implementations using the aws-lc-rs crypto library. - ring
ringSignature verification algorithm implementations using the ring crypto library.
Structs
- An error indicating that an
IpAddrRefcould not built because the input could not be parsed as an IP address. - Borrowed representation of a RFC 5280 profile Certificate Revocation List (CRL).
- Borrowed representation of a RFC 5280 profile Certificate Revocation List (CRL) revoked certificate entry.
- A parsed X509 certificate.
- DnsName
allocA DNS Name suitable for use in the TLS Server Name Indication (SNI) extension and/or for use as the reference hostname for which to verify a certificate. - A reference to a DNS Name suitable for use in the TLS Server Name Indication (SNI) extension and/or for use as the reference hostname for which to verify a certificate.
- An end-entity certificate.
- An error indicating that a
DnsNameRefcould not built because the input is not a syntactically-valid DNS Name. - An error indicating that a
SubjectNameRefcould not built because the input is not a syntactically-valid DNS Name or IP address. - The expected key usage of a certificate.
- Owned representation of a RFC 5280 profile Certificate Revocation List (CRL).
- OwnedRevokedCert
allocOwned representation of a RFC 5280 profile Certificate Revocation List (CRL) revoked certificate entry. - Describes how revocation checking is performed, if at all. Can be constructed with a RevocationOptionsBuilder instance.
- Builds a RevocationOptions instance to control how revocation checking is performed.
Enums
- Trailing data was found while parsing DER-encoded input for the named type.
- An error that occurs during certificate validation or name validation.
- IpAddr
allocEither a IPv4 or IPv6 address, plus its owned string representation - Either a IPv4 or IPv6 address, plus its borrowed string representation
- Describes how much of a certificate chain is checked for revocation status.
- Identifies the reason a certificate was revoked. See RFC 5280 §5.3.1
- A DNS name or IP address, which borrows its text representation.
- Describes how to handle the case where a certificate’s revocation status is unknown.
Statics
- An array of all the verification algorithms exported by this crate.
Traits
- Operations over a RFC 5280 profile Certificate Revocation List (CRL) required for revocation checking. Implemented by
OwnedCertRevocationListandBorrowedCertRevocationList.
Functions
- Interprets the given DER-encoded certificate as a
TrustAnchor. The certificate is not validated. In particular, there is no check that the certificate is self-signed or even that the certificate has the cA basic constraint.