summaryrefslogtreecommitdiff
path: root/tools/testcase1.py
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2014-10-24 15:23:33 +0200
committerMagnus Ahltorp <map@kth.se>2014-10-24 15:25:16 +0200
commitbda18b837a255aeb20366c736272698fa3223c4f (patch)
tree09fd20e522e30b671386d39049c79df8dd2bfb2f /tools/testcase1.py
parent194c9aa3b8c463fa487dc9ef7e172332a8d94d72 (diff)
Repair tests to work with x509 validation code. Add intermediate certificates to test chains.
Diffstat (limited to 'tools/testcase1.py')
-rwxr-xr-xtools/testcase1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testcase1.py b/tools/testcase1.py
index 2d5e0e8..dd3597e 100755
--- a/tools/testcase1.py
+++ b/tools/testcase1.py
@@ -105,7 +105,7 @@ def get_and_check_entry(timestamp, chain, leaf_index):
assert_equal(fetchedcert, submittedcert, "cert %d in chain" % (i,))
if len(certchain) == len(submittedcertchain) + 1:
- last_issuer = get_cert_info(certs[-1])["issuer"]
+ last_issuer = get_cert_info(submittedcertchain[-1])["issuer"]
root_subject = get_cert_info(certchain[-1])["subject"]
if last_issuer == root_subject:
print_success("fetched chain has an appended root cert")