Crate webpki

Source
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

FeatureDescription
allocEnable features that require use of the heap. Currently all RSA signature algorithms require this feature.
stdEnable features that require libstd. Implies alloc.
ringEnable use of the ring crate for cryptography.
aws-lc-rsEnable use of the aws-lc-rs crate for cryptography. Previously this feature was named aws_lc_rs.

Modulesยง

aws_lc_rs
Signature verification algorithm implementations using the aws-lc-rs crypto library.
aws_lc_rs_algs ๐Ÿ”’
cert ๐Ÿ”’
crl ๐Ÿ”’
der ๐Ÿ”’
end_entity ๐Ÿ”’
error ๐Ÿ”’
rpk_entity ๐Ÿ”’
signed_data ๐Ÿ”’
subject_name ๐Ÿ”’
time ๐Ÿ”’
Conversions into the libraryโ€™s time type.
trust_anchor ๐Ÿ”’
verify_cert ๐Ÿ”’
x509 ๐Ÿ”’

Structsยง

BorrowedCertRevocationList
Borrowed representation of a RFC 5280 profile Certificate Revocation List (CRL).
BorrowedRevokedCert
Borrowed representation of a RFC 5280 profile Certificate Revocation List (CRL) revoked certificate entry.
Cert
A parsed X509 certificate.
EndEntityCert
An end-entity certificate.
InvalidNameContext
Additional context for the CertNotValidForName error variant.
KeyUsage
The expected key usage of a certificate.
OwnedCertRevocationList
Owned representation of a RFC 5280 profile Certificate Revocation List (CRL).
OwnedRevokedCert
Owned representation of a RFC 5280 profile Certificate Revocation List (CRL) revoked certificate entry.
RawPublicKeyEntity
A Raw Public Key, used for connections using raw public keys as specified in RFC 7250.
RequiredEkuNotFoundContext
Additional context for the RequiredEkuNotFoundContext error variant.
RevocationOptions
Describes how revocation checking is performed, if at all. Can be constructed with a RevocationOptionsBuilder instance.
RevocationOptionsBuilder
Builds a RevocationOptions instance to control how revocation checking is performed.
UnsupportedSignatureAlgorithmContext
Additional context for the UnsupportedSignatureAlgorithm error variant.
UnsupportedSignatureAlgorithmForPublicKeyContext
Additional context for the UnsupportedSignatureAlgorithmForPublicKey error variant.
VerifiedPath
Path from end-entity certificate to trust anchor thatโ€™s been verified.

Enumsยง

CertRevocationList
A RFC 5280 profile Certificate Revocation List (CRL).
DerTypeId
Trailing data was found while parsing DER-encoded input for the named type.
Error
An error that occurs during certificate validation or name validation.
ExpirationPolicy
Describes how to handle the nextUpdate field of the CRL (i.e. expiration).
RevocationCheckDepth
Describes how much of a certificate chain is checked for revocation status.
RevocationReason
Identifies the reason a certificate was revoked. See RFC 5280 ยง5.3.1
UnknownStatusPolicy
Describes how to handle the case where a certificateโ€™s revocation status is unknown.

Staticsยง

ALL_VERIFICATION_ALGS
An array of all the verification algorithms exported by this crate.

Functionsยง

anchor_from_trusted_cert
Interprets the given pre-validated DER-encoded certificate as a TrustAnchor.
public_values_eq ๐Ÿ”’