diff options
Diffstat (limited to 'scripts/http-server.py')
-rw-r--r-- | scripts/http-server.py | 15 |
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) |