summaryrefslogtreecommitdiff
path: root/tools/josef_experimental_auditor.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/josef_experimental_auditor.py')
-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:"