diff --git a/acme_nginx/Acme.py b/acme_nginx/Acme.py index cbcec9c..5f44588 100644 --- a/acme_nginx/Acme.py +++ b/acme_nginx/Acme.py @@ -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)