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
Title: Make http.server support SSL
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.10
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?
History
Date User Action Args
2022-04-11 14:59:32adminsetgithub: 85162
2021-10-27 11:31:35Fredsetmessages: + msg405087
2021-05-20 20:20:44ned.deilylinkissue44169 superseder
2021-05-20 12:19:12Fredsetnosy: + Fred
messages: + msg394021
2020-06-16 22:45:41remi.lapeyresetkeywords: + patch
stage: patch review
pull_requests: + pull_request20101
2020-06-16 12:51:47remi.lapeyrecreate