diff options
Diffstat (limited to 'tools/josef_auditor.py')
-rwxr-xr-x | tools/josef_auditor.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/josef_auditor.py b/tools/josef_auditor.py index 0f12037..44eb5f8 100755 --- a/tools/josef_auditor.py +++ b/tools/josef_auditor.py @@ -278,14 +278,14 @@ def get_proof_by_index(baseurl, index, tree_size): def get_all_roots(base_url): result = urlopen(base_url + "ct/v1/get-roots").read() certs = json.loads(result)["certificates"] - print time.strftime('%H:%M:%S') + " Received " + str(len(certs)) + " certs from " + base_url - - for accepted_cert in certs: - subject = get_cert_info(base64.decodestring(accepted_cert))["subject"] - 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"] + print time.strftime('%H:%M:%S') + " Received " + str(len(certs)) + " roots from " + base_url + + # for accepted_cert in certs: + # subject = get_cert_info(base64.decodestring(accepted_cert))["subject"] + # 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"] def print_errors(errors): print "Encountered " + str(len(errors)) + " errors:" |