summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJosef Gustafsson <josef.gson@gmail.com>2015-09-22 09:11:30 +0200
committerJosef Gustafsson <josef.gson@gmail.com>2015-09-22 09:11:30 +0200
commit95ff3d4fcd68e238667d12a9038af87d47d022b8 (patch)
treef8bde9086ae4d1b6af6618a32638a3d04b8d4075 /tools
parent4f3be5f797b16519c69fa2e34f999941bd6ce821 (diff)
adding issuer filter to reader
Diffstat (limited to 'tools')
-rwxr-xr-xtools/josef_experimental_auditor.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/josef_experimental_auditor.py b/tools/josef_experimental_auditor.py
index e40e77e..6bb8baa 100755
--- a/tools/josef_experimental_auditor.py
+++ b/tools/josef_experimental_auditor.py
@@ -20,12 +20,12 @@ DEFAULT_CERT_FILE = "cert_data.json"
base_urls = [
# "https://plausible.ct.nordu.net/",
# "https://ct1.digicert-ct.com/log/",
- "https://ct.izenpe.com/",
+ # "https://ct.izenpe.com/",
# "https://log.certly.io/",
# "https://ct.googleapis.com/aviator/",
# "https://ct.googleapis.com/pilot/",
# "https://ct.googleapis.com/rocketeer/",
- "https://ctlog.api.venafi.com/",
+ # "https://ctlog.api.venafi.com/",
"https://ct.ws.symantec.com/",
]
@@ -332,7 +332,11 @@ def get_all_roots(base_url):
issuer = get_cert_info(base64.decodestring(accepted_cert))["issuer"]
if subject == issuer:
root_cert = base64.decodestring(accepted_cert)
- print get_cert_info(root_cert)["subject"]
+ try:
+ print get_cert_info(root_cert)["subject"].split("CN=")[1]
+ except:
+ print get_cert_info(root_cert)["subject"]
+ return certs
def print_errors(errors):
print "Encountered " + str(len(errors)) + " errors:"