summaryrefslogtreecommitdiff
path: root/monitor/josef_experimental.py
diff options
context:
space:
mode:
authorjosef <josef.gson@gmail.com>2015-11-09 17:04:34 +0100
committerjosef <josef.gson@gmail.com>2015-11-09 17:04:34 +0100
commitffcd056438f907f27de46129c34026d786129245 (patch)
treed2aa947a65b18b61d770332352283dcc2e5b3ff6 /monitor/josef_experimental.py
parente7f179e5f3067ea47d1e34db7d220d1d3d534548 (diff)
re-adding code for looking for lets encrypt certs
Diffstat (limited to 'monitor/josef_experimental.py')
-rwxr-xr-xmonitor/josef_experimental.py18
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