aboutsummaryrefslogtreecommitdiff
path: root/scripts/http-client.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-10-04 04:07:37 +0000
committerRob Austein <sra@hactrn.net>2007-10-04 04:07:37 +0000
commit5dd67f0e3c36d440c985879530c41e054e7d14ed (patch)
treec2cc9e61930223787cfe4cbc23dd05b97bbd98b5 /scripts/http-client.py
parent2ae55cb29667344e43ef58737680421d06d90e65 (diff)
URL handling
svn path=/scripts/http-client.py; revision=1089
Diffstat (limited to 'scripts/http-client.py')
-rw-r--r--scripts/http-client.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/scripts/http-client.py b/scripts/http-client.py
index 18fcbf9c..1df47dad 100644
--- a/scripts/http-client.py
+++ b/scripts/http-client.py
@@ -7,12 +7,8 @@ msg = "This is a test. This is only a test. Had this been real you would now b
cfg = rpki.config.parser("http-demo.conf")
section = "client"
-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"))
-
-print rpki.https.client(privateKey=privateKey, certChain=certChain, x509TrustList=x509TrustList, msg=msg)
+print rpki.https.client(privateKey = rpki.x509.RSA_Keypair(Auto_file = cfg.get( section, "https-key")),
+ certChain = rpki.x509.X509_chain(Auto_files = cfg.multiget(section, "https-cert")),
+ x509TrustList = rpki.x509.X509_chain(Auto_files = cfg.multiget(section, "https-ta")),
+ url = cfg.get(section, "https-url"),
+ msg = msg)