@marinbernard-pep06hi.Quoteupstream SSL certificate does not match "upstream5959918e46f84fbb8bbf02dc24f2bbc5"since nginx plugin uses upstreams with uniform names, for verification to work you need specify the name in the "TLS: Servername override" field so that nginx compares the name in the certificate with this name, not with the name of the upstream with UID ("upstream5959918e46f84fbb8bbf02dc24f2bbc5" in your case). should work then.this is not a bug, this is how it should work imho
upstream SSL certificate does not match "upstream5959918e46f84fbb8bbf02dc24f2bbc5"
I don't think so: our config used to work before the update
Our upstream references several upstream servers, each of them using an individual certificate matching its real host name. Forcing the use of a single SNI would mean re-issuing certificates for all those hosts. This is a no-go for us.
yep, and if you want to verify upstreams or your upstreams strictly checks SNI headers (like WAP\ADFS do) you will have to make separate upstreams for each.
With nginx, the validated SNI is the one set on the upstream, not on the upstream server.
HAProxy does exactly the contrary
Quote from: Fright on January 20, 2021, 02:24:43 pm@Tubshave you tried not to select CAs in TLS:Trusted Certificate in Upstream config page?should work if upstream cert issued CAs is in trusted store on OPN and nginx is happy on cert checkI could not reproduce anymore.One day after I went back to to nginx 1.19 opnsense automatically updated again to version 1.20. But it is running now. I guess the fix already was implemented.
@Tubshave you tried not to select CAs in TLS:Trusted Certificate in Upstream config page?should work if upstream cert issued CAs is in trusted store on OPN and nginx is happy on cert check
made a PR for quck fixhttps://github.com/opnsense/plugins/pull/2198works well on test VM
with and without "TLS: Trusted Certificate".
hiyes. not ready yetno need to revert. you can uncheck all CAs in "TLS: Trusted Certificate" for Upstreams or uncheck "TLS: Verify Certificate" temporary