I am putting a self-signed certificate in front of an application I run on a box, and the browser and the health check both refuse to connect.
The symptom is a redirect loop. The browser says "too many redirects" and curl says the same, and the certificate error is separate: the check fails the TLS validation first, and then, when I tell it to ignore the certificate, it loops.
What I have:
openssl req -x509 -newkey rsa:4096 -nodes -keyout key.pem -out cert.pem -days 365 -subj "/CN=app.internal"
and a proxy in front of the app that redirects everything to https. The app itself listens on http://127.0.0.1:3000.
How do I get the certificate trusted and the loop stopped?