Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
123d76c
lib: rename BasicConstraints to PathLenConstraint
cpu Oct 8, 2026
b83e469
ext: encode key usages through a nonempty borrowed sequence
cpu Oct 8, 2026
1d80883
ext: encode extended key usages through a nonempty borrowed sequence
cpu Oct 8, 2026
b95ff66
ext: enforce nonempty subject alternative names
cpu Oct 8, 2026
88733d5
ext: validate name constraints at construction
cpu Oct 8, 2026
2e6c903
ext: implement name constraints on checked parameters
cpu Oct 8, 2026
6a72477
ext: validate distribution point names at construction
cpu Oct 8, 2026
1fa5699
ext: move distribution point name encoding onto checked parameters
cpu Oct 9, 2026
1f08478
ext: encode nonempty lists of checked distribution points
cpu Oct 8, 2026
6389646
ext: move CA constraint types into extension
cpu Oct 8, 2026
5b5014d
ext: represent basic constraints independently of omission
cpu Oct 8, 2026
30e12bc
ext: implement basic constraints on the parameter type
cpu Oct 8, 2026
f6edd10
ext: move CustomExtension into extension
cpu Oct 8, 2026
0dd9e67
ext: write custom extensions through the Extension trait
cpu Oct 8, 2026
093d81b
crl: implement CRL number and issuing distribution point extensions
cpu Oct 8, 2026
29eb7ea
crl: implement CRL entry extensions
cpu Oct 8, 2026
0ca1ca9
ext: add Extensions collection, build certificate extensions before w…
cpu Aug 29, 2026
4665f7d
csr: build extension request via Extensions collection
cpu Aug 29, 2026
e1980ef
crl: build CRL and entry extensions via Extensions collection
cpu Oct 8, 2026
69e64b5
ext: emit subject key identifier for all certificates
cpu Aug 29, 2026
ead59d3
csr: align extension request order with certificate extensions
cpu Aug 11, 2026
12c3d72
ext: rework CustomExtension public API
cpu Oct 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rcgen/examples/sign-leaf-with-ca.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use rcgen::DnValue::PrintableString;
use rcgen::{
BasicConstraints, Certificate, CertificateParams, DnType, ExtendedKeyUsagePurpose, IsCa,
Issuer, KeyPair, KeyUsagePurpose,
BasicConstraints, Certificate, CertificateParams, DnType, ExtendedKeyUsagePurpose, Issuer,
KeyPair, KeyUsagePurpose, PathLenConstraint,
};
use time::{Duration, OffsetDateTime};

Expand All @@ -21,7 +21,7 @@ fn new_ca() -> (Certificate, Issuer<'static, KeyPair>) {
let mut params =
CertificateParams::new(Vec::default()).expect("empty subject alt name can't produce error");
let (yesterday, tomorrow) = validity_period();
params.is_ca = IsCa::Ca(BasicConstraints::Unconstrained);
params.basic_constraints = Some(BasicConstraints::Ca(PathLenConstraint::Unconstrained));
params.distinguished_name.push(
DnType::CountryName,
PrintableString("BR".try_into().unwrap()),
Expand Down
Loading
Loading