New answers tagged


Generate a self-signed certificate compounded of a certificate and a private key for the server. Command used is openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes Create an index.html file. Start a python https server using the below code in the same directory where the index.html file is. import BaseHTTPServer, SimpleHTTPServer ...


The error message indicates that the server expected a HTTP request but got a HTTPS request: \x16\x03\x01\ is the start of an TLS record. This probably means that your server configuration is wrong, i.e. that the server expects HTTP on port 443 and not HTTPS.

Top 50 recent answers are included