My proxy refuses to talk to a backend that has a self-signed certificate
A service behind my reverse proxy insists on HTTPS with its own self-signed certificate. The proxy terminates a proper certificate at the front and then fails when connecting to that backend, complaining about the certificate.
I could disable verification on the internal hop and it feels like the wrong instinct, since the whole point of this setup is that certificates are handled properly.
What is the correct arrangement for an internal service that will only speak HTTPS with a certificate nobody trusts?
@vram_vural · 5d ago
One thing worth checking before any of this: whether the backend actually requires HTTPS or merely defaults to it.
A surprising number of services have a setting for serving plain HTTP that is not on by default, or expect a header to tell them they are behind a proxy that terminated TLS. In the second case, forcing the internal hop to HTTPS is solving the wrong problem — the service was trying to redirect you to HTTPS because it did not know the front already was.
That is the same forwarded-protocol header that fixes CSRF failures behind proxies, and it is worth setting for the same reason.
Reply
Report