Skip to main content

build_crl

Function build_crl 

pub fn build_crl(
    params: &CrlParams<'_>,
    alg: CrlSignatureAlgorithm,
    sign_tbs: impl FnOnce(&[u8]) -> Result<Vec<u8>, Box<dyn Error + Sync + Send>>,
) -> Result<Vec<u8>, Box<dyn Error + Sync + Send>>
Available on crate feature crypto only.
Expand description

Build a DER-encoded v2 CertificateList.

sign_tbs signs the tbsCertList DER with the issuer key. The public surface takes only std time types; time::OffsetDateTime is an internal detail of the Time encoding.