fix CSR domains diff
parent
3d975b1f17
commit
8503380d28
|
@ -283,7 +283,7 @@ class Domain(PrivateKey):
|
||||||
for subject_domain in subject_domains:
|
for subject_domain in subject_domains:
|
||||||
_, domain = str(subject_domain).split(':')
|
_, domain = str(subject_domain).split(':')
|
||||||
domain_names.add(domain)
|
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:
|
if len(domain_names_diff) > 0:
|
||||||
logging.warning(f"Differences found in CSR: {domain_names_diff}")
|
logging.warning(f"Differences found in CSR: {domain_names_diff}")
|
||||||
csr = self.create_csr()
|
csr = self.create_csr()
|
||||||
|
|
Loading…
Reference in New Issue