]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ech: reject an ECH store with no usable private key
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 30 Jul 2026 15:56:37 +0000 (15:56 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 30 Jul 2026 16:13:27 +0000 (18:13 +0200)
commitceb896ab307153e51531bbee8d8a85d7734bca5e
tree2e0f4aa7a3e56a4265a95d14ecf5ad4d4b77dd6e
parent498dc1eceb44dfef22f6d5c0d1d2ca84b5745aca
BUG/MINOR: ech: reject an ECH store with no usable private key

OSSL_ECHSTORE_read_pem() accepts a PEM file containing only an
ECHConfig with no private key. OSSL_ECHSTORE_num_keys() returns 1
on success regardless of the count it writes back, so the existing
"!= 1" check only ever caught the call itself failing, never a
resulting count of zero: a directory containing only such
config-only ".ech" files loaded "successfully" and got installed via
SSL_CTX_set1_echstore(), while unable to decrypt a single
ECH-protected ClientHello, with nothing pointing at the cause.

This should be backported to 3.3 and 3.4.
src/ech.c