summaryrefslogtreecommitdiff
path: root/tools/fetchacert.py
diff options
context:
space:
mode:
authorJosef Gustafsson <josef.gson@gmail.com>2015-09-04 12:18:19 +0200
committerJosef Gustafsson <josef.gson@gmail.com>2015-09-04 12:18:19 +0200
commitd1a2f978fb626c904fb1278c792d992ec4563acf (patch)
treee0ae1a38f9d4fc4c14b433222bff70e64bb1ac83 /tools/fetchacert.py
parent4596485adffb636c014362bc982ee0b952c77f26 (diff)
stripping away everything except what is necessary for nagiosnagios
Diffstat (limited to 'tools/fetchacert.py')
-rwxr-xr-xtools/fetchacert.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/fetchacert.py b/tools/fetchacert.py
deleted file mode 100755
index 82ea7c1..0000000
--- a/tools/fetchacert.py
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-import argparse
-import base64
-from certtools import *
-
-parser = argparse.ArgumentParser(description='')
-parser.add_argument('baseurl', help="Base URL for CT server")
-parser.add_argument('index', type=int, help="Index for entry to fetch")
-args = parser.parse_args()
-
-rawentries = get_entries(args.baseurl, args.index, args.index)["entries"]
-entry = extract_original_entry(rawentries[0])
-(chain, _timestamp, _issuer_key_hash) = entry
-s = ""
-for cert in chain:
- s += "-----BEGIN CERTIFICATE-----\n"
- s += base64.encodestring(cert).rstrip() + "\n"
- s += "-----END CERTIFICATE-----\n"
- s += "\n"
-print s