Module crl
Available on crate feature
crypto only.Expand description
Generic X.509 v2 CRL builder (TLS-backend agnostic).
DER-encodes a CertificateList (RFC 5280 §5.1) signed by its issuer.
Hashing and signing are supplied by the caller, so this module pulls in no
crypto backend — pure yasna assembly, mirroring crate::ocsp.
Primary use: a MITM proxy hosting a CA-signed CRL whose distribution point it stamps onto re-signed leaves, so revocation-strict clients (notably libcurl + schannel, which resolves revocation from the cert’s own CDP and ignores stapled OCSP) accept the leaf.
Structs§
- CrlParams
- Inputs for
build_crl. All identity fields are caller-supplied so this crate needs no hash/key backend. - Revoked
Entry - A single revoked certificate entry.
Enums§
- CrlSignature
Algorithm - Signature algorithm the caller used to sign the
tbsCertList. It is encoded both inside the signedtbsCertListand in the outersignatureAlgorithm, so the caller commits to it before signing.
Functions§
- build_
crl - Build a DER-encoded v2
CertificateList. - crl_
distribution_ point_ der - DER of a
CRLDistributionPointsextension value with a singlefullNameURI distribution point, for embedding as the2.5.29.31extension on a re-signed leaf.