[gen_conf/bind] Pas d'enregistrement TLSA si le certificat est marqué comme révoqué

This commit is contained in:
Valentin Samir 2015-10-30 17:07:08 +01:00
parent 182597ca35
commit e4a36fb702

View file

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