• Xavier Thompson's avatar
    simplehttpserver: Improve certificate handling · 2fa88d02
    Xavier Thompson authored
    Stop using deprecated ssl.wrap_socket, and let unset key-file mean
    the key is included in cert-file, as is done in python ssl module.
    Also let the server crash if specified cert-file or key-file does
    not exist, instead of silently falling back to non-TLS http.
    2fa88d02
simplehttpserver.py 4.21 KB