From f4e5ce3104ec3edeedba19b1afd8dbc129f4a827 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sun, 25 Oct 2015 19:15:36 +0100 Subject: [PATCH] =?UTF-8?q?[bind]=20Seul=20le=20selecteur=200=20est=20supp?= =?UTF-8?q?ort=C3=A9=20pour=20l'enregistrement=20TLSA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On rend aussi accessible le condensa du certificat --- gestion/gen_confs/bind.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gestion/gen_confs/bind.py b/gestion/gen_confs/bind.py index c25b8ee3..c8c80da5 100755 --- a/gestion/gen_confs/bind.py +++ b/gestion/gen_confs/bind.py @@ -73,6 +73,9 @@ class TLSA(ResourceRecord): if not r_format in ['pem', 'der']: raise ValueError("format should be pem or der") + if selector != 0: + raise NotImplementedError("selector different form 0 not implemented") + if cert is None and proto == 'tcp' and name[-1] == '.': try: cert = ssl.get_server_certificate((name[:-1], port), ca_certs='/etc/ssl/certs/ca-certificates.crt') @@ -90,6 +93,7 @@ class TLSA(ResourceRecord): raise ValueError("Impossible de convertir le certificat au format DER %s %s %s\n%s" % (name, port, proto, cert)) certhex = TLSA.hashCert(reftype, str(dercert)) + self.certhex = certhex if compat: super(TLSA, self).__init__( 'TYPE52',