From 89e4f6f99e4587ee0db42386672b142c277a26c6 Mon Sep 17 00:00:00 2001 From: James Edington Date: Sun, 30 May 2021 15:21:15 -0500 Subject: [PATCH] Filter CA DB based on Website trust bit --- src/js/constants.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/constants.js b/src/js/constants.js index c1493fa..3db2aa3 100644 --- a/src/js/constants.js +++ b/src/js/constants.js @@ -37,6 +37,7 @@ fp_host_alt.set('B1:07:B3:3F:45:3E:55:10:F6:8E:51:31:10:C6:F6:94:4B:AC:C2:63:DF: //Record the SHA-256 Fingerprint -> (reduced) hostname mappings //As well as non-idiopathic SHA-256 Fingerprint -> country mappings getAsset("db/IncludedCACertificateReport.json", "json") +.filter(ca => new Set(ca['Trust Bits'].split(';')).has('Websites')) .forEach(ca => { const fp = ca[fp_alg_key].replaceAll(/(\w{2})(?=\w)/g,'$1:'); //perforate the fingerprints with : every 2 characters