Skip to content

Instantly share code, notes, and snippets.

View ldalorion's full-sized avatar

dalorion ldalorion

View GitHub Profile
@ldalorion
ldalorion / simple-https-server.py
Last active January 25, 2019 21:26 — forked from dergachev/simple-https-server.py
Added CORS request handler
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# 1. generate server.pem with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# 2. run as follows:
# python simple-https-server.py
# 3. then in your browser, visit:
# https://localhost:4443
# Other notes:
# (I actually created my own self-signed certifcation on my Mac instead of doing step 1 because I don't read instructions.)