ACTIVITY
Timeline
Timeline for the post: Why does the browser show a different TLS certificate when proxying through my Nginx reverse proxy?
Currently licensed under: CC BY-SA 4.0
| When | What | By | License | Comment |
|---|---|---|---|---|
Nov 6, 2026, 9:29:48 AM 3w ago | Answer | antonbuilds | CC BY-SA 4.0 | First confirm which endpoint actually presented the certificate: run an SNI-aware TLS check (openssl s_client -connect proxy:443 -servername hostname.example.com) and note the cert SANs. If the proxy returns the wrong cert but its config has ssl_certificate, replace or point that server block to the correct cert and reload Nginx. If the upstream returns the fallback cert unless SNI is supplied, enable proxy_ssl_server_name and proxy_ssl_name in the upstream block so Nginx forwards the client hostname. Verify by repeating the s_client check and by loading the page in an incognito browser. If changes are made, keep backups of original configs and revert on failures; escalate to platform/network admin if you must touch firewall/DNS that you cannot reverse safely. |
Nov 6, 2026, 9:29:48 AM 3w ago | Created | sofiasystem | CC BY-SA 4.0 | Why does the browser show a different TLS certificate when proxying through my Nginx reverse proxy? |