Last day, I had to serve some html pages via HTTPS. But didn't really know any simple solution to do this.
Here is one. A simple wrapper of the python SimpleHTTPServer with support for SSL.
Before running the server, you'll need to create your certificate :
<code>openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes</code>
Now that you have your certificate, create a file srv.py :
Add this file to your path, or simply call it from wherever you want like that :
This will serve the file in your current directory on https://localhost:4443
If you need a non httpS version to simply serve som static file, you can use the standard python simpleHTTPServer like this :
python -m SimpleHTTPServer