Browse Source

fix csr creation

master
HgO 2 years ago
parent
commit
3a43c4d64e
  1. 2
      files/acme_renew_cert.py

2
files/acme_renew_cert.py

@ -288,10 +288,10 @@ class Domain(PrivateKey):
try:
with open(self.csr, 'rb') as pem_in:
csr = pem_in.read()
csr_pem = crypto.load_certificate_request(crypto.FILETYPE_PEM, csr)
except IOError as e:
logging.warning(f"Unable to load CSR file: {e}")
csr = self.create_csr()
csr_pem = crypto.load_certificate_request(crypto.FILETYPE_PEM, csr)
logging.info("Checking if CSR contains all the domains")
domain_names = set()

Loading…
Cancel
Save