Skip to content

Commit

Permalink
fix missing var
Browse files Browse the repository at this point in the history
  • Loading branch information
tbro committed Oct 10, 2023
1 parent 6d45d3d commit a75cbc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/sign-leaf-with-ca.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ fn new_ca() -> Certificate {
}

fn new_end_entity() -> Certificate {
let mut params = CertificateParams::new(vec!["entity.other.host".to_owned()]);
let name = "entity.other.host";
let mut params = CertificateParams::new(vec![name.into()]);
let (yesterday, tomorrow) = validity_period();
params.distinguished_name.push(DnType::CommonName, name);
params.use_authority_key_identifier_extension = true;
Expand Down

0 comments on commit a75cbc3

Please sign in to comment.