summaryrefslogtreecommitdiff
path: root/tools/josef_auditor.py
diff options
context:
space:
mode:
authorJosef Gustafsson <josef.gson@gmail.com>2015-09-18 16:21:46 +0200
committerJosef Gustafsson <josef.gson@gmail.com>2015-09-18 16:21:46 +0200
commit59f065ab412f5777017854ef9b6d41d3d3449e52 (patch)
tree0b7f2b1652c161da667a04b378bae8b196e561f1 /tools/josef_auditor.py
parentd8835ce4ac4a55ac2b03320bcc118d7d79b580bf (diff)
bugfix
Diffstat (limited to 'tools/josef_auditor.py')
-rwxr-xr-xtools/josef_auditor.py16
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:"