Skip to content

Commit

Permalink
check all tlsa records during verification
Browse files Browse the repository at this point in the history
  • Loading branch information
plinss committed Nov 7, 2018
1 parent 75b8877 commit 80dfcf0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions acmebot
Original file line number Diff line number Diff line change
Expand Up @@ -2877,12 +2877,16 @@ class AcmeManager(object):
self._warn('ERROR: Certificate has OCSP Must-Staple but no OSCP staple found on ', host_desc, '\n')

if tlsa_records:
tlsa_match = False
for tlsa_record in tlsa_records:
if self._tlsa_record_matches(tlsa_record, installed_certificate, installed_chain, root_certificate):
self._info('TLSA record matches on ', host_desc, '\n', color='green')
self._detail(' ', tlsa_record, '\n')
break
else:
tlsa_match = True
else:
self._detail('TLSA record does not match on ', host_desc, '\n')
self._detail(' ', tlsa_record, '\n')
if not tlsa_match:
self._warn('ERROR: No TLSA records match ', key_type.upper(), ' certificate "',
installed_certificate.get_subject().commonName, '" on ', host_desc, '\n')

Expand Down

0 comments on commit 80dfcf0

Please sign in to comment.