[gen_conf/bind] Pas d'enregistrement TLSA si le certificat est marqué comme révoqué
This commit is contained in:
parent
182597ca35
commit
e4a36fb702
1 changed files with 8 additions and 7 deletions
|
@ -398,6 +398,7 @@ class Zone(ZoneBase):
|
||||||
def add_tlsa_record(self, cert):
|
def add_tlsa_record(self, cert):
|
||||||
"""Ajout d'un certif dans le DNS"""
|
"""Ajout d'un certif dans le DNS"""
|
||||||
if 'TLSACert' in cert['objectClass']:
|
if 'TLSACert' in cert['objectClass']:
|
||||||
|
if not cert.get('revocked', [False])[0]:
|
||||||
for host in cert['hostCert']:
|
for host in cert['hostCert']:
|
||||||
nom = self.get_name(host)
|
nom = self.get_name(host)
|
||||||
if nom is None: continue
|
if nom is None: continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue