summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-02-19 19:14:13 +0100
committerMagnus Ahltorp <map@kth.se>2015-02-19 19:14:13 +0100
commitd01055be865c2f36100b123f66baf44c8a4d4557 (patch)
tree471e193894cfbbffb9f6bfc86cee516c197cfa1d /tools
parent16d405f4d696c3d01785b644678261acb0e9ad3a (diff)
Move public keys to separate fileconsproof
Diffstat (limited to 'tools')
-rw-r--r--tools/certkeys.py14
-rw-r--r--tools/certtools.py15
2 files changed, 15 insertions, 14 deletions
diff --git a/tools/certkeys.py b/tools/certkeys.py
new file mode 100644
index 0000000..3c459e9
--- /dev/null
+++ b/tools/certkeys.py
@@ -0,0 +1,14 @@
+
+publickeys = {
+ "https://ct.googleapis.com/pilot/":
+ "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEfahLEimAoz2t01p3uMziiLOl/fHTD"
+ "M0YDOhBRuiBARsV4UvxG2LdNgoIGLrtCzWE0J5APC2em4JlvR8EEEFMoA==",
+
+ "https://127.0.0.1:8080/":
+ "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE4qWq6afhBUi0OdcWUYhyJLNXTkGqQ9"
+ "PMS5lqoCgkV2h1ZvpNjBH2u8UbgcOQwqDo66z6BWQJGolozZYmNHE2kQ==",
+
+ "https://flimsy.ct.nordu.net/":
+ "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE4qWq6afhBUi0OdcWUYhyJLNXTkGqQ9"
+ "PMS5lqoCgkV2h1ZvpNjBH2u8UbgcOQwqDo66z6BWQJGolozZYmNHE2kQ==",
+}
diff --git a/tools/certtools.py b/tools/certtools.py
index 5b556cf..11e09bb 100644
--- a/tools/certtools.py
+++ b/tools/certtools.py
@@ -13,20 +13,7 @@ import ecdsa
import datetime
import cStringIO
import zipfile
-
-publickeys = {
- "https://ct.googleapis.com/pilot/":
- "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEfahLEimAoz2t01p3uMziiLOl/fHTD"
- "M0YDOhBRuiBARsV4UvxG2LdNgoIGLrtCzWE0J5APC2em4JlvR8EEEFMoA==",
-
- "https://127.0.0.1:8080/":
- "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE4qWq6afhBUi0OdcWUYhyJLNXTkGqQ9"
- "PMS5lqoCgkV2h1ZvpNjBH2u8UbgcOQwqDo66z6BWQJGolozZYmNHE2kQ==",
-
- "https://flimsy.ct.nordu.net/":
- "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE4qWq6afhBUi0OdcWUYhyJLNXTkGqQ9"
- "PMS5lqoCgkV2h1ZvpNjBH2u8UbgcOQwqDo66z6BWQJGolozZYmNHE2kQ==",
-}
+from certkeys import publickeys
def get_cert_info(s):
p = subprocess.Popen(