Mozilla CA/intermediate: also match x509-fingerprint-*

pull/99/head
Vincent Brillault 2019-03-29 16:39:22 +01:00
parent a1c0e83bd4
commit da0dabc01b
No known key found for this signature in database
GPG Key ID: CFEA15DE034F0688
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def process(file, dst, type):
warninglist['description'] = "Fingerprint of {type} taken from Mozilla's lists at https://wiki.mozilla.org/CA".format(type=type) warninglist['description'] = "Fingerprint of {type} taken from Mozilla's lists at https://wiki.mozilla.org/CA".format(type=type)
warninglist['list'] = sorted(hashes) warninglist['list'] = sorted(hashes)
warninglist['type'] = 'string' warninglist['type'] = 'string'
warninglist['matching_attributes'] = ["md5", "sha1", "sha256", "filename|md5", "filename|sha1", "filename|sha256"] warninglist['matching_attributes'] = ["md5", "sha1", "sha256", "filename|md5", "filename|sha1", "filename|sha256", "x509-fingerprint-md5", "x509-fingerprint-sha1", "x509-fingerprint-sha256"]
with open('../lists/{dst}/list.json'.format(dst=dst), 'w') as data_file: with open('../lists/{dst}/list.json'.format(dst=dst), 'w') as data_file:
json.dump(warninglist, data_file, indent=4, sort_keys=True) json.dump(warninglist, data_file, indent=4, sort_keys=True)