From 465869d99f77c3325f9077bad61182f79a67dde2 Mon Sep 17 00:00:00 2001 From: codeskyblue Date: Fri, 12 Apr 2024 10:10:05 +0800 Subject: [PATCH] req.set_version(0), close #377 --- tidevice/_ca.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidevice/_ca.py b/tidevice/_ca.py index 7af94b8..e1568f4 100644 --- a/tidevice/_ca.py +++ b/tidevice/_ca.py @@ -68,7 +68,7 @@ def x509_time(**kwargs) -> bytes: def make_cert(req: X509Req, ca_pkey: PKey) -> X509: cert = X509() cert.set_serial_number(1) - cert.set_version(2) + cert.set_version(0) cert.set_subject(req.get_subject()) cert.set_pubkey(req.get_pubkey()) cert.set_notBefore(x509_time(minutes=-1))