Simple HTTP(S?) server serving WebASM content

!!! WIP !!! I was surprised that running python3 -m http.server could serve WebASM.

But what about HTTPS? According to this could be possible using

from http.server import HTTPServer, BaseHTTPRequestHandler
import ssl

httpd = HTTPServer(('localhost', 4443), BaseHTTPRequestHandler)

httpd.socket = ssl.wrap_socket (httpd.socket, 
        certfile='path/to/cert.pem', server_side=True)


using certificate generated with

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365

Python 2

python2 -m SimpleHTTPServer 8000