Skip to content

x509-cert: add a CRL builder #1759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 6, 2025
Merged

Conversation

baloo
Copy link
Member

@baloo baloo commented Apr 13, 2025

This adds a builder interface for CRLs.

This would accept an iterator for the certificates to be revoked.

    let builder = CrlBuilder::new(&ca_certificate, crl_number)?
        .with_certificates(
            vec![
                RevokedCert {
                    serial_number: serial_number1,
                    revocation_date: Time::now()?,
                    crl_entry_extensions: None,
                },
                RevokedCert {
                    serial_number: serial_number2,
                    revocation_date: Time::now()?,
                    crl_entry_extensions: None,
                },
            ]
            .into_iter(),
        );

    let crl = builder.build(&signer)?;

@baloo baloo force-pushed the baloo/crl-builder branch 15 times, most recently from de5d087 to 6577068 Compare April 20, 2025 18:36
@baloo baloo force-pushed the baloo/crl-builder branch from 6577068 to fc825d3 Compare May 5, 2025 05:16
@baloo baloo marked this pull request as ready for review May 5, 2025 05:17
@baloo baloo force-pushed the baloo/crl-builder branch from fc825d3 to 5e294ca Compare May 5, 2025 05:23
@baloo baloo marked this pull request as draft May 5, 2025 15:04
@baloo baloo force-pushed the baloo/crl-builder branch from 5e294ca to 2353f2e Compare May 6, 2025 03:04
@baloo baloo marked this pull request as ready for review May 6, 2025 03:04
@baloo baloo merged commit e7e4b54 into RustCrypto:master May 6, 2025
60 of 61 checks passed
@baloo baloo deleted the baloo/crl-builder branch May 6, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant