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§
- ASN1
Time - An ASN.1 timestamp.
- Access
Description - Algorithm
Identifier - Algorithm identifier
- Attribute
Type AndValue - A generic attribute type and value
- Authority
Info Access - Authority
KeyIdentifier - Basic
Constraints - Identifies whether the subject of the certificate is a CA, and the max validation depth.
- Basic
Extension - Basic extension structure, used in search results
- CRLDistribution
Point - Certificate
Revocation List - 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)
- Digitally
Signed - Extended
KeyUsage - Extension
Request - Section 3.1 of rfc 5272
- General
Subtree - Represents the structure used in the name constraints extensions. The fields minimum and maximum are not supported (openssl also has no support).
- Inhibit
AnyPolicy - Issuer
Alternative Name - KeyIdentifier
- KeyUsage
- NSCert
Type - Name
Constraints - NidError
- An error that can occur while converting an OID to a Nid.
- Policy
Constraints - Policy
Information - Policy
Mapping - Policy
Mappings - Policy
Qualifier Info - Reason
Code - Reason
Flags - Relative
Distinguished Name - A Relative Distinguished Name element.
- Revoked
Certificate - Signed
Certificate Timestamp - Subject
Alternative Name - Subject
Public KeyInfo - TbsCert
List - 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. - TbsCertificate
Parser TbsCertificate
parser builder- Unique
Identifier - Unparsed
Object - Validity
- X509
Certificate - An X.509 v3 Certificate.
- X509
Certificate Parser - X.509 Certificate parser
- X509
CriAttribute - Attributes for Certification Request
- X509
Extension - X.509 version 3 extension
- X509
Extension Parser X509Extension
parser builder- X509
Name - X.509 Name (as used in
Issuer
andSubject
fields) - X509
Version - The version of the encoded certificate.
Enums§
- Distribution
Point Name - General
Name - 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.
- Parsed
CriAttribute - Attributes for Certification Request
- Parsed
Extension - X509
Error - 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§
- CRLDistribution
Points - Certificate
Policies - X509
Result - Holds the result of parsing functions (X.509)