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:23:33 +0200
commit265ba8cb5288a4a23606f2c15bd29c3c71ede87b (patch)
tree7c2c3e38f69ce26377441f93d362a385144f606d /tools/testcase1.py
parent5d02756b2daa779023e2df4d41dbbd06289e3ac9 (diff)
Repair tests to work with x509 validation code. Add intermediate certificates to test chains.external-merge2
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")