aboutsummaryrefslogtreecommitdiff
path: root/scripts/irbe-cli.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-08-25 16:46:05 +0000
committerRob Austein <sra@hactrn.net>2007-08-25 16:46:05 +0000
commit57995ddafe5df6e78110263a5d421d9a6a9a3de9 (patch)
tree0e5869454e7ac6e7a7aa2d5533cc60857008ac73 /scripts/irbe-cli.py
parent7496e2285b84a84fbf5902b60096a5fbe1521b17 (diff)
Finally get rid of rpki.https.CertInfo kludge.
svn path=/scripts/http-client.py; revision=912
Diffstat (limited to 'scripts/irbe-cli.py')
-rwxr-xr-xscripts/irbe-cli.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/irbe-cli.py b/scripts/irbe-cli.py
index 7039cac9..a0afafa7 100755
--- a/scripts/irbe-cli.py
+++ b/scripts/irbe-cli.py
@@ -136,11 +136,13 @@ def main():
rng = rpki.relaxng.RelaxNG(cfg.get(section, "rng-schema"))
- print "rpki.https.CertInfo() needs rewriting!"
- #
- # ... but use it for now
- #
- httpsCerts = rpki.https.CertInfo(cfg, section)
+ privateKey = rpki.x509.RSA_Keypair(PEM_file = cfg.get(section, "https-key"))
+
+ certChain = rpki.x509.X509_chain()
+ certChain.load_from_PEM(cfg.multiget(section, "https-cert"))
+
+ x509TrustList = rpki.x509.X509_chain()
+ x509TrustList.load_from_PEM(cfg.multiget(section, "https-ta"))
q_msg = rpki.left_right.msg()
@@ -169,7 +171,8 @@ def main():
q_cms = rpki.cms.encode(q_xml, cfg.get(section, "cms-key"), cfg.multiget(section, "cms-cert"))
- r_cms = rpki.https.client(certInfo=httpsCerts, msg=q_cms, url="/left-right")
+ r_cms = rpki.https.client(privateKey=privateKey, certChain=certChain, x509TrustList=x509TrustList,
+ msg=q_cms, url="/left-right")
r_xml = rpki.cms.decode(r_cms, cfg.get(section, "cms-peer"))