diff options
author | Rob Austein <sra@hactrn.net> | 2008-01-09 18:02:54 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-01-09 18:02:54 +0000 |
commit | 99acf075620c5c97872580ba7eaf60af90067468 (patch) | |
tree | 0a12cbea811068600c2b1999697e1f8bbd3a5215 /scripts/testpoke.py | |
parent | b64c4107c83af6c32f5707218190a3e29be17ede (diff) |
Clean up (most of) the mess of multiple trust anchors left over from
early experiments, because cleaning up the mess was easier than
documenting it.
svn path=/scripts/Makefile; revision=1458
Diffstat (limited to 'scripts/testpoke.py')
-rw-r--r-- | scripts/testpoke.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/testpoke.py b/scripts/testpoke.py index ca476ef8..1af03a72 100644 --- a/scripts/testpoke.py +++ b/scripts/testpoke.py @@ -74,7 +74,7 @@ def query_up_down(q_pdu): rpki.relaxng.up_down.assertValid(q_elt) q_cms = rpki.cms.xml_sign(q_elt, cms_key, cms_certs, encoding = "UTF-8") r_cms = rpki.https.client( - x509TrustList = https_tas, + x509TrustList = https_ta, privateKey = https_key, certChain = https_certs, msg = q_cms, @@ -114,8 +114,10 @@ https_key = get_PEM("ssl-key", rpki.x509.RSA) https_cert = get_PEM("ssl-cert", rpki.x509.X509) https_certs = get_PEM_chain("ssl-cert-chain", https_cert) -https_tas = rpki.x509.X509_chain() -if https_ta is not None: - https_tas.append(https_ta) +ta = https_ta +https_ta = rpki.x509.X509_chain() +if ta is not None: + https_ta.append(ta) +del ta dispatch[yaml_req["type"]]() |