on 98d950d help sign in
bridge/bridge-https.py
7 lines 301 B history raw
1import BaseHTTPServer, SimpleHTTPServer
2import os
3import ssl
5httpd = BaseHTTPServer.HTTPServer(('localhost', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler)
6httpd.socket = ssl.wrap_socket (httpd.socket, certfile='localhost.pem', keyfile='localhost-key.pem', server_side=True)
7httpd.serve_forever()