#! /usr/bin/env python

import BaseHTTPServer, SimpleHTTPServer
import ssl
import os

httpd = BaseHTTPServer.HTTPServer(('localhost', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket (httpd.socket, certfile=os.environ['HOME'] + '/share/certs/insecure_server.pem', server_side=True)
httpd.serve_forever()
