Skip to content

Commit

Permalink
Fix generate req script
Browse files Browse the repository at this point in the history
because requests should have version=0
  • Loading branch information
Spindel committed Apr 18, 2024
1 parent d6f879f commit 7b10b60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion caramel/scripts/generate_ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
)
from caramel import config

REQ_VERSION = 0x00
VERSION = 0x2
CA_BITS = 4096
# Subject attribs, in order.
Expand Down Expand Up @@ -136,7 +137,7 @@ def create_ca_req(subject):
key.generate_key(_crypto.TYPE_RSA, CA_BITS)

req = _crypto.X509Req()
req.set_version(VERSION)
req.set_version(REQ_VERSION)
req.set_pubkey(key)

x509subject = req.get_subject()
Expand Down

0 comments on commit 7b10b60

Please sign in to comment.