Set openssl version number when creation certs
This commit is contained in:
parent
27ebc2fac9
commit
db5db6fdd5
@ -31,6 +31,10 @@ impl Certificate {
|
||||
};
|
||||
|
||||
let mut builder = X509::builder().expect("initializing x509 builder");
|
||||
builder
|
||||
.set_version(2) // version number is 0-indexed, so this is version 3
|
||||
.or_unexpected_while("setting version")?;
|
||||
|
||||
builder
|
||||
.set_subject_name(&name)
|
||||
.or_unexpected_while("setting subject name")?;
|
||||
|
Loading…
Reference in New Issue
Block a user