fix: 证书生成时间改为10年
parent
1b41274823
commit
317c2040a7
|
@ -66,7 +66,7 @@ fn gen_rsa_pair(merchant_id: &str, email: &str, save_path: &str) -> Result<(), E
|
|||
x509_builder.set_issuer_name(&x509_name)?;
|
||||
x509_builder.set_pubkey(&private_key)?;
|
||||
let not_before = Asn1Time::days_from_now(0)?;
|
||||
let not_after = Asn1Time::days_from_now(1095)?;
|
||||
let not_after = Asn1Time::days_from_now(3650)?;
|
||||
x509_builder.set_not_before(¬_before)?;
|
||||
x509_builder.set_not_after(¬_after)?;
|
||||
x509_builder.sign(&private_key, MessageDigest::sha256())?;
|
||||
|
|
Loading…
Reference in New Issue