Edgewall Software

Changes between Initial Version and Version 1 of Ticket #12611, comment 2


Ignore:
Timestamp:
Oct 23, 2016, 1:37:56 PM (7 years ago)
Author:
Peter Suter

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12611, comment 2

    initial v1  
    11Searching 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.
    22
    3 The suggested [https://docs.python.org/2/library/ssl.html#socket-creation ssl.wrap_sockets] has a bunch of additional optional parameters I haven't looked at, and after Python 2.7.9 `SSLContext.wrap_socket()` might be better.
     3The 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.
    44
    55A 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].