From 317c2040a7d9c2215f95e55d75d07e75723b5277 Mon Sep 17 00:00:00 2001 From: zaeyee Date: Fri, 27 Sep 2024 16:02:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=81=E4=B9=A6=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=94=B9=E4=B8=BA10=E5=B9=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())?;