diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-03-25 09:55:03 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-03-25 09:55:03 +0100 |
commit | 94282d502072f894f3168ef8c2c7527fe4a69e52 (patch) | |
tree | 0ae1b630221867acf3f56f08a042cbf94df3943a /tools/fetchallcerts.py | |
parent | 575d810afbcfcca99f701f3ea42de79bf6e283d1 (diff) |
Add tools/fetchacert.py, fetching exactly one chain from a log.
Also move a piece of common code from fetchallcerts.py to certtools.py.
Diffstat (limited to 'tools/fetchallcerts.py')
-rwxr-xr-x | tools/fetchallcerts.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/fetchallcerts.py b/tools/fetchallcerts.py index 398c563..e0ea92f 100755 --- a/tools/fetchallcerts.py +++ b/tools/fetchallcerts.py @@ -24,16 +24,6 @@ parser.add_argument('--store', default=None, metavar="dir", help='Store certific parser.add_argument('--write-sth', action='store_true', help='Write STH') args = parser.parse_args() -def extract_original_entry(entry): - leaf_input = base64.decodestring(entry["leaf_input"]) - (leaf_cert, timestamp, issuer_key_hash) = unpack_mtl(leaf_input) - extra_data = base64.decodestring(entry["extra_data"]) - if issuer_key_hash != None: - (precert, extra_data) = extract_precertificate(extra_data) - leaf_cert = precert - certchain = decode_certificate_chain(extra_data) - return ([leaf_cert] + certchain, timestamp, issuer_key_hash) - def get_entries_wrapper(baseurl, start, end): fetched_entries = 0 while start + fetched_entries < (end + 1): |