From fe68ae581343c5f46d3a5b6ea0517f7828fa62b4 Mon Sep 17 00:00:00 2001 From: Amir Omidi Date: Wed, 6 Jul 2022 16:31:34 -0400 Subject: [PATCH] Change generated CSR version to 0 --- simp_le.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/simp_le.py b/simp_le.py index 07e0cff..0e75b67 100755 --- a/simp_le.py +++ b/simp_le.py @@ -154,10 +154,7 @@ def gen_csr(pkey, domains, sig_hash='sha256'): ]) req.set_pubkey(pkey) - # pre-1.0.2 version of OpenSSL the generated CSR will contain a - # zero-length Version field which will cause some strict parsers - # (e.g. the one in Golang, used by Boulder) to fail. - req.set_version(2) + req.set_version(0) req.sign(pkey, sig_hash) return req