Mozilla CA/intermediate: also match x509-fingerprint-*
parent
a1c0e83bd4
commit
da0dabc01b
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue