Module x509

Available on crate feature mtls only.
Expand description

Lower-level X.509 types re-exported from x509_parser.

Lack of documentation is directly inherited from the source crate. Prefer to use Rocket’s wrappers when possible.

Modules§

ber
Basic Encoding Rules (BER) objects and parser
der
Distinguished Encoding Rules (DER) objects and parser

Structs§

ASN1Time
An ASN.1 timestamp.
AccessDescription
AlgorithmIdentifier
Algorithm identifier
AttributeTypeAndValue
A generic attribute type and value
AuthorityInfoAccess
AuthorityKeyIdentifier
BasicConstraints
Identifies whether the subject of the certificate is a CA, and the max validation depth.
BasicExtension
Basic extension structure, used in search results
CRLDistributionPoint
CertificateRevocationList
An X.509 v2 Certificate Revocation List (CRL).
CtExtensions
CtExtensions as defined in [RFC6962 Section 3.2] (https://datatracker.ietf.org/doc/html/rfc6962#section-3.2)
CtLogID
LogID as defined in [RFC6962 Section 3.2] (https://datatracker.ietf.org/doc/html/rfc6962#section-3.2)
CtVersion
Certificate Transparency Version as defined in [RFC6962 Section 3.2] (https://datatracker.ietf.org/doc/html/rfc6962#section-3.2)
DigitallySigned
ExtendedKeyUsage
ExtensionRequest
Section 3.1 of rfc 5272
GeneralSubtree
Represents the structure used in the name constraints extensions. The fields minimum and maximum are not supported (openssl also has no support).
InhibitAnyPolicy
IssuerAlternativeName
KeyIdentifier
KeyUsage
NSCertType
NameConstraints
NidError
An error that can occur while converting an OID to a Nid.
PolicyConstraints
PolicyInformation
PolicyMapping
PolicyMappings
PolicyQualifierInfo
ReasonCode
ReasonFlags
RelativeDistinguishedName
A Relative Distinguished Name element.
RevokedCertificate
SignedCertificateTimestamp
SubjectAlternativeName
SubjectPublicKeyInfo
TbsCertList
The sequence TBSCertList contains information about the certificates that have been revoked by the CA that issued the CRL.
TbsCertificate
The sequence TBSCertificate contains information associated with the subject of the certificate and the CA that issued it.
TbsCertificateParser
TbsCertificate parser builder
UniqueIdentifier
UnparsedObject
Validity
X509Certificate
An X.509 v3 Certificate.
X509CertificateParser
X.509 Certificate parser
X509CriAttribute
Attributes for Certification Request
X509Extension
X.509 version 3 extension
X509ExtensionParser
X509Extension parser builder
X509Name
X.509 Name (as used in Issuer and Subject fields)
X509Version
The version of the encoded certificate.

Enums§

DistributionPointName
GeneralName
Represents a GeneralName as defined in RFC5280. There is no support X.400 addresses and EDIPartyName.
PEMError
An error that can occur while parsing or validating a certificate.
ParsedCriAttribute
Attributes for Certification Request
ParsedExtension
X509Error
An error that can occur while parsing or validating a certificate.

Traits§

FromDer
Parse a DER-encoded object, and return the remaining of the input and the built object.

Functions§

parse_ct_signed_certificate_timestamp
Parses as single Signed Certificate Timestamp entry
parse_ct_signed_certificate_timestamp_list
Parses a list of Signed Certificate Timestamp entries

Type Aliases§

CRLDistributionPoints
CertificatePolicies
X509Result
Holds the result of parsing functions (X.509)