On 2017-07-28 10:02 AM, Willy Tarreau wrote:
On Fri, Jul 28, 2017 at 09:46:12AM -0700, Kevin McArthur wrote:
I think somethings missing here; the check system doesn't seem to be sending
the SNI or validating the result.
If I do a backend line like:
server app2 internal.app2.example.ca:443 ssl verify required sni ssl_fc_sni
ca-file /etc/ssl/certs/ca-certificates.crt check check-ssl
This works fine, but my server has no tls cert for internal.app2.example.ca
and the checks still pass verify.
That's normal and matches the documentation :-) You have no "verifyhost"
directive. So the check doesn't have any name to check against. Just
add "verifyhost internal.app2.example.ca" and the check will match only
this one.
If I add a verifyhost directive, all the normal connections identified
by SNI break. Per the new patch leaving out verifyhost is not supposed
to be no hostname check, but rather check based on SNI/hostname?
The server side of things tells me the SNI
never gets sent on the check connection, hits the default cert (app2, no
internal).
We never send SNI with checks since there's no front connection to extract
it from. That's exactly why we wanted to have the ability to use verifyhost
for checks even when sni is enabled.
The SNI in this case should come from the server line.
Willy
--
Kevin