diff options
author | Linus Nordberg <linus@nordu.net> | 2015-09-27 11:40:47 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-11-20 10:14:15 +0100 |
commit | c308b5eee38c58e122f6eebcca575ed6734bb3b7 (patch) | |
tree | 114974089bcf05de29d5d30141bcab9fa2ba834a /tools/fetchallcerts.py | |
parent | b87783cc3dc39d5b2aa1c170cf5afaefc289c85a (diff) |
make tests work(s)
Diffstat (limited to 'tools/fetchallcerts.py')
-rwxr-xr-x | tools/fetchallcerts.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tools/fetchallcerts.py b/tools/fetchallcerts.py index 66fde74..169764f 100755 --- a/tools/fetchallcerts.py +++ b/tools/fetchallcerts.py @@ -129,16 +129,10 @@ else: leaf_input = base64.decodestring(entry["leaf_input"]) leaf_hash = get_leaf_hash(leaf_input) s += "Leafhash: %s\n" % base64.b16encode(leaf_hash) - if issuer_key_hash: - s += "-----BEGIN PRECERTIFICATE-----\n" - s += base64.encodestring(chain[0]).rstrip() + "\n" - s += "-----END PRECERTIFICATE-----\n" - s += "\n" - chain = chain[1:] for cert in chain: - s += "-----BEGIN CERTIFICATE-----\n" + s += "-----BEGIN BLOB-----\n" s += base64.encodestring(cert).rstrip() + "\n" - s += "-----END CERTIFICATE-----\n" + s += "-----END BLOB-----\n" s += "\n" zf.writestr("%08d" % i, s) except AssertionError, e: |