X-Git-Url: https://git.svenne.dk/?p=public%2Fdnssec-swede-utility.git;a=blobdiff_plain;f=swede;fp=swede;h=02ebd165eddf7c25e327c0215e3bdc1359dad100;hp=036071a3cb6cf72ac56e96037f61f8c82a4887bd;hb=7d20d367e4ce83b73285b4f0be1db0ac71b3425d;hpb=f1c877c34786e9a017a2075b6d77ab78967c14eb diff --git a/swede b/swede index 036071a..02ebd16 100755 --- a/swede +++ b/swede @@ -466,8 +466,7 @@ if __name__ == '__main__': # Good, now let's verify if record.usage == 1: # End-host cert - cert = chain[0] - if verifyCertMatch(record, cert): + if verifyCertMatch(record, chain[0]): if verify_result == 0: # The cert chains to a valid CA cert according to the system-certificates print 'SUCCESS (Usage 1): Certificate offered by the server matches the one mentioned in the TLSA record and chains to a valid CA certificate' else: