fix csr creation

master
HgO 2021-03-26 17:53:50 +01:00
parent efab0cadf5
commit 3a43c4d64e
1 changed files with 1 additions and 1 deletions

View File

@ -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()