Skip to content

Instantly share code, notes, and snippets.

#!py -2
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# http://stackoverflow.com/questions/2455606/basichttpserver-simplehttpserver-and-concurrency
# http://stackoverflow.com/questions/10175812/how-to-create-a-self-signed-certificate-with-openssl
import SocketServer
import BaseHTTPServer
import SimpleHTTPServer
import ssl