aboutsummaryrefslogtreecommitdiff
path: root/scripts/http-server.py
blob: e5e63dc66c3799f877fbfe247ccb75131d42c138 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# $Id$

import rpki.https, tlslite.api

certInfo = rpki.https.CertInfo("Carol")

def handler(self, query):
  return 200, "I got:\n" + query

rpki.https.server(certInfo=certInfo, handler=handler)