Skip to content

Instantly share code, notes, and snippets.

@geotheory
Created August 22, 2019 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geotheory/56aa7c84c087c72b87ba3d97386b0419 to your computer and use it in GitHub Desktop.
Save geotheory/56aa7c84c087c72b87ba3d97386b0419 to your computer and use it in GitHub Desktop.
import http.server
import ssl
httpd = http.server.HTTPServer(('localhost', 9200), http.server.BaseHTTPRequestHandler)
httpd.socket = ssl.wrap_socket (httpd.socket, certfile='./server.pem', server_side=True)
httpd.serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment