aboutsummaryrefslogtreecommitdiff
path: root/scripts/http-server.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-01-09 15:15:36 +0000
committerRob Austein <sra@hactrn.net>2008-01-09 15:15:36 +0000
commitdf4fd57fe409c4642dd98f202c9493bab02bd856 (patch)
tree4ba13eb03d8e3fde84f00bd4ca3688d673fc59e2 /scripts/http-server.py
parenta7b93e9f09a428c4d5d90353ddd79044e304686e (diff)
Renaming http-client.py to cronjob.py is easier than explaining why
the name is wrong. svn path=/scripts/Old/http-client.py; revision=1453
Diffstat (limited to 'scripts/http-server.py')
-rw-r--r--scripts/http-server.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/scripts/http-server.py b/scripts/http-server.py
deleted file mode 100644
index a966f6fa..00000000
--- a/scripts/http-server.py
+++ /dev/null
@@ -1,15 +0,0 @@
-# $Id$
-
-import rpki.https, tlslite.api, rpki.config
-
-cfg = rpki.config.parser("http-demo.conf", "server")
-
-privateKey = rpki.x509.RSA(PEM_file = cfg.get("https-key"))
-
-certChain = rpki.x509.X509_chain()
-certChain.load_from_PEM(cfg.multiget("https-cert"))
-
-def handler(query, path):
- return 200, "Path: %s\nQuery: %s" % (path, query)
-
-rpki.https.server(privateKey = privateKey, certChain = certChain, handlers = handler)