fix csr creation
parent
efab0cadf5
commit
3a43c4d64e
|
@ -288,10 +288,10 @@ class Domain(PrivateKey):
|
||||||
try:
|
try:
|
||||||
with open(self.csr, 'rb') as pem_in:
|
with open(self.csr, 'rb') as pem_in:
|
||||||
csr = pem_in.read()
|
csr = pem_in.read()
|
||||||
csr_pem = crypto.load_certificate_request(crypto.FILETYPE_PEM, csr)
|
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
logging.warning(f"Unable to load CSR file: {e}")
|
logging.warning(f"Unable to load CSR file: {e}")
|
||||||
csr = self.create_csr()
|
csr = self.create_csr()
|
||||||
|
csr_pem = crypto.load_certificate_request(crypto.FILETYPE_PEM, csr)
|
||||||
|
|
||||||
logging.info("Checking if CSR contains all the domains")
|
logging.info("Checking if CSR contains all the domains")
|
||||||
domain_names = set()
|
domain_names = set()
|
||||||
|
|
Loading…
Reference in New Issue