]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: diagnostic warning when both 'default-crt' and 'strict-sni' are used
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 27 Aug 2025 13:44:24 +0000 (15:44 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 27 Aug 2025 14:22:12 +0000 (16:22 +0200)
commit18ebd81962e1f53b8f59bfee5b9795bff69ac16b
treee0ebfe26c72f720dbf77729bab2340cb43f1b170
parentd753f24096dafdef227fe66621513086c2c663c1
MINOR: ssl: diagnostic warning when both 'default-crt' and 'strict-sni' are used

It possible to use both 'strict-sni' and 'default-crt' on the same bind
line, which does not make much sense.

This patch implements a check which will look for default certificates
in the sni_w tree when strict-sni is used. (Referenced by their empty
sni ""). default-crt sets the CKCH_INST_EXPL_DEFAULT flag in
ckch_inst->is_default, so its possible to differenciate explicits
default from implicit default.

Could be backported as far as 3.0.

This was discussed in ticket #3082.
include/haproxy/ssl_ckch-t.h
src/cfgparse-ssl.c
src/ssl_ckch.c
src/ssl_sock.c