Skip to content

Commit

Permalink
Fix csr serialization issue in newer version of pyopenssl
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed Nov 30, 2023
1 parent 9d0bf9e commit d4ae2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme_nginx/Acme.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def create_csr(self):
key = fd.read()
pk = OpenSSL.crypto.load_privatekey(OpenSSL.crypto.FILETYPE_PEM, key)
req.set_pubkey(pk)
req.set_version(2)
req.set_version(0)
req.sign(pk, "sha256")
return OpenSSL.crypto.dump_certificate_request(OpenSSL.crypto.FILETYPE_ASN1, req)

Expand Down

0 comments on commit d4ae2a3

Please sign in to comment.