fix CSR domains diff

5-trigger-hooks-after-certificate-renewal
HgO 2020-12-25 23:39:00 +01:00
parent 3d975b1f17
commit 8503380d28
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ class Domain(PrivateKey):
for subject_domain in subject_domains:
_, domain = str(subject_domain).split(':')
domain_names.add(domain)
domain_names_diff = domain_names & set([self.name] + self.alt_names)
domain_names_diff = domain_names ^ set([self.name] + self.alt_names)
if len(domain_names_diff) > 0:
logging.warning(f"Differences found in CSR: {domain_names_diff}")
csr = self.create_csr()