diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 61ecca3..d7a6ad3 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -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())?;