summaryrefslogtreecommitdiff
path: root/tools/fetchallcerts.py
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2015-09-27 11:40:47 +0200
committerLinus Nordberg <linus@nordu.net>2016-02-01 11:40:25 +0100
commit162e3c626bedcbb782e2c556279f47bc563236d8 (patch)
treeca6c7b291f9190ada7a1b8400b816786ba7f7d97 /tools/fetchallcerts.py
parent1aa959b65818ca98855d7af1ba610528cc82fc25 (diff)
make tests work(s)
Diffstat (limited to 'tools/fetchallcerts.py')
-rwxr-xr-xtools/fetchallcerts.py10
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: