From af7e5a188c88455f335f3aa6d92b78592c2f7e8f Mon Sep 17 00:00:00 2001 From: Vincent Brillault Date: Fri, 29 Mar 2019 16:57:54 +0100 Subject: [PATCH] CAs: Fix final new line in json --- lists/mozilla-CA/list.json | 2 +- lists/mozilla-IntermediateCA/list.json | 2 +- tools/generate_mozilla_certificates.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lists/mozilla-CA/list.json b/lists/mozilla-CA/list.json index 6893834..cf88b12 100644 --- a/lists/mozilla-CA/list.json +++ b/lists/mozilla-CA/list.json @@ -481,4 +481,4 @@ "name": "Fingerprint of trusted CA certificates", "type": "string", "version": 20190329 -} \ No newline at end of file +} diff --git a/lists/mozilla-IntermediateCA/list.json b/lists/mozilla-IntermediateCA/list.json index 7bdf9dd..fc36c44 100644 --- a/lists/mozilla-IntermediateCA/list.json +++ b/lists/mozilla-IntermediateCA/list.json @@ -9895,4 +9895,4 @@ "name": "Fingerprint of known intermedicate of trusted certificates", "type": "string", "version": 20190329 -} \ No newline at end of file +} diff --git a/tools/generate_mozilla_certificates.py b/tools/generate_mozilla_certificates.py index 90e792f..9d5b0bd 100755 --- a/tools/generate_mozilla_certificates.py +++ b/tools/generate_mozilla_certificates.py @@ -46,6 +46,7 @@ def process(file, dst, type): 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: json.dump(warninglist, data_file, indent=2, sort_keys=True) + data_file.write("\n") if __name__ == '__main__': download(Included_CA_url, Included_CA_file)