Skip to content

Commit

Permalink
req.set_version(0), close #377
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Apr 12, 2024
1 parent ce9d85d commit 465869d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidevice/_ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 465869d

Please sign in to comment.