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§
- certificate
- X.509 Certificate object definitions and operations
- certification_
request - cri_
attributes - der_
parser - License: MIT Apache License 2.0 docs.rs crates.io Download numbers dependency status Github CI Minimum rustc version
- error
- X.509 errors
- extensions
- X.509 Extensions objects and types
- objects
- X.509 helper objects definitions and registry
- oid_
registry - License: MIT Apache License 2.0 docs.rs crates.io Github CI Minimum rustc version
- pem
- Decoding functions for PEM-encoded data
- public_
key - revocation_
list - signature_
algorithm - signature_
value - time
- utils
- x509
- X.509 objects and types
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 - CRLDistribution
Points - Certificate
Revocation List - An X.509 v2 Certificate Revocation List (CRL).
- Challenge
Password - CtExtensions
- CtExtensions as defined in RFC6962 Section 3.2
- CtLogID
- LogID as defined in RFC6962 Section 3.2
- CtVersion
- Certificate Transparency Version as defined in 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 - Issuing
Distribution Point - KeyIdentifier
- KeyUsage
- NSCert
Type - Name
Constraints - NidError
- An error that can occur while converting an OID to a Nid.
- Pem
- Representation of PEM data
- PemIterator
- Iterator over PEM-encapsulated blocks
- 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 - Validity
- X509
Certificate - An X.509 v3 Certificate.
- X509
Certificate Parser - X.509 Certificate parser
- X509
Certification Request - Certification Signing Request (CSR)
- X509
Certification Request Info - Certification Request Info structure
- 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
- Base trait for DER object parsers
Functions§
- format_
serial - Formats a slice to a colon-separated hex string (for ex
01:02:ff:ff
) - oid2abbrev
- Return the abbreviation (for ex. CN for Common Name), or if not found, the OID short name
- oid2description
- Returns the description corresponding to the OID
- oid2sn
- Returns the short name corresponding to the OID
- oid_
registry - Return a reference to the default registry of known OIDs
- parse_
crl_ der Deprecated - Parse a DER-encoded X.509 v2 CRL, and return the remaining of the input and the built object.
- 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
- parse_
x509_ certificate - Parse a DER-encoded X.509 Certificate, and return the remaining of the input and the built object.
- parse_
x509_ crl - Parse a DER-encoded X.509 v2 CRL, and return the remaining of the input and the built object.
- parse_
x509_ der Deprecated - Parse a DER-encoded X.509 Certificate, and return the remaining of the input and the built
- parse_
x509_ pem - Read a PEM-encoded structure, and decode the base64 data
- pem_
to_ der Deprecated
Type Aliases§
- Certificate
Policies - X509
Result - Holds the result of parsing functions (X.509)