Changes between Initial Version and Version 1 of Ticket #12611, comment 2
- Timestamp:
- Oct 23, 2016, 1:37:56 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12611, comment 2
initial v1 1 1 Searching for `BaseHTTPServer python https` I found [https://www.piware.de/2011/01/creating-an-https-server-in-python/ this article] suggesting this would surprisingly(?) not be very difficult (anymore?), so I quickly tried [attachment:T12611_https_ssl_wrap_socket.diff the attached patch] without any obvious problems. 2 2 3 The suggested [https://docs.python.org/2/library/ssl.html#socket-creation ssl.wrap_socket s] has a bunch of additional optional parameters I haven't looked at, and after Python 2.7.9 `SSLContext.wrap_socket()` might be better.3 The suggested [https://docs.python.org/2/library/ssl.html#socket-creation ssl.wrap_socket] has a bunch of additional optional parameters I haven't looked at, and after Python 2.7.9 `SSLContext.wrap_socket()` might be better. 4 4 5 5 A PEM certificate is required for HTTPS servers. I guess this would have to be specified with a new parameter. I only tested with [https://docs.python.org/2/library/ssl.html#self-signed-certificates a self-signed certificate].