# python's http.server is plaintext (no TLS until 3.14) — wrap it with ssl for real HTTPS
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 7 -nodes -subj "/CN=lab"
python3 -c 'import http.server,ssl;h=http.server.HTTPServer(("0.0.0.0",443),http.server.SimpleHTTPRequestHandler);c=ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER);c.load_cert_chain("cert.pem","key.pem");h.socket=c.wrap_socket(h.socket,server_side=True);h.serve_forever()'