|# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/|
|# generate server.xml with the following command:|
|# openssl req -new -x509 -keyout key.pem -out server.pem -days 365 -nodes|
|# run as follows:|
|# python simple-https-server.py|
|# then in your browser, visit:|
|server_address = ('localhost', 4443)|
|httpd = http.server.HTTPServer(server_address, http.server.SimpleHTTPRequestHandler)|
|httpd.socket = ssl.wrap_socket(httpd.socket,|
As a slight update, the Python docs recommend using the version-agnostic
@DannyHinshaw Yes, my phone is on the same network, and I’m trying to connect to <my computer’s IP>:4443
With the same setup, I’ve been able to connect my mobile devices to my machine with the built-in http server, ie.
I wonder if there’s a problem with the cert? Both my phones treated the site as if it didn’t exist instead of throwing any warning.
So I am new to Python and real computer languages and techniques. What is meant in the comment by generate an XML with "open...-nodes"?