Expanding on pythons Simple HTTP Server to include HTTPS
From PyPI
pip install quick-https
After installation, running the HTTPS server is as simple as:
python3 -m https.server
When the server is run for the first time, it will ask if you would like to
generate a certificate to be used. If you say yes, a self-signed certificate
will be generated and stored in the https/certs/ directory. This certificate
will be be used every time the server is started after that.
If you ever want to regenerate certificate, start the server with the
--generate switch. This will automatically generate a new certificate and
replace the old one in https/certs/.