Skip to content
Discussion options

You must be logged in to vote

In case anyone comes back to this, HTTPS certificates are attached to a domain, that is what they certify, so there wouldn't be a straightforward way to have proper HTTPS certificates for localhost, there could be some tricks around it but not a "proper" thing. For example:

  • Creating a self-signed certificate and making the backend (or Traefik) use it. And making the client trust it (which it wouldn't by default).
  • Creating a domain that points to localhost, e.g. localhost.mysuperdomain.com pointing in the DNS records to 127.0.0.1, and then setting up the HTTPS certificates by doing a Let's Encrypt DNS challenge (writing stuff to the DNS records instead of using HTTP). And then using those…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
Converted from issue

This discussion was converted from issue #302 on January 22, 2026 20:48.