Set issuer on self-signed certs

This commit is contained in:
Brian Picciano 2024-06-02 22:16:09 +02:00
parent 3f7624190b
commit 27ebc2fac9

View File

@ -35,6 +35,10 @@ impl Certificate {
.set_subject_name(&name)
.or_unexpected_while("setting subject name")?;
builder
.set_issuer_name(&name)
.or_unexpected_while("setting subject name")?;
// 1970/01/01
let not_before = Asn1Time::from_unix(0).expect("initializing not_before");
builder