diff options
Diffstat (limited to 'monitor/josef_experimental.py')
-rwxr-xr-x | monitor/josef_experimental.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/monitor/josef_experimental.py b/monitor/josef_experimental.py index 5df124b..6c74db9 100755 --- a/monitor/josef_experimental.py +++ b/monitor/josef_experimental.py @@ -157,7 +157,23 @@ if __name__ == '__main__': - + # Find let's encrypt certs + if False: + CHUNK = 1000 + log = CTLOGS[1] + sth = get_sth(log["url"]) + size = int(sth["tree_size"]) + for i in range(0,100): + start = size - (i + 1) * CHUNK + end = size - i * CHUNK + print "Getting " + str(start) + " to " + str(end) + entries = get_entries(log["url"],start ,end - 1)["entries"] + + for entry in entries: + res = check_domain(entry) + issuer = res["issuer"] + if "Encrypt" in issuer: + print res # Data gathering for Niklas |