Issue 40990: Make http.server support SSL - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Fred, remi.lapeyre
Priority: normal Keywords: patch

Created on 2020-06-16 12:51 by remi.lapeyre, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 20923 open remi.lapeyre, 2020-06-16 22:45
Messages (3)
msg371647 - (view) Author: Rémi Lapeyre (remi.lapeyre) * Date: 2020-06-16 12:51
It's a bit outside of its original scope but with more and more application requiring HTTPS it is sometime needed even when doing some simple tests or local development.

It's quite easy to have an SSL certificate, either auto-signed or using Let's Encrypt but configuring Nginx or HAProxy just to serve a local directory on localhost is tedious.

I think just wrapping the socket in SSLSocket and adding two flags on the command line would be enough?
msg394021 - (view) Author: Fred (Fred) Date: 2021-05-20 12:19
It could look for a existing certificate in a well-known location, and could fallback to an self-signed certificate that could be shipped with Python.
msg405087 - (view) Author: Fred (Fred) Date: 2021-10-27 11:31
How is this going? Any progress?