]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: Default-server configuration ignored by server
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 13 Jul 2021 16:28:22 +0000 (18:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Jul 2021 16:35:38 +0000 (18:35 +0200)
commit0498fa4059c545d9c066db094dff154174e15bca
tree0f8b1297145382e132826d07067785ab96a87247
parent4c6986a6bcc9b41c4888bda4ce791f935b979fe4
BUG/MINOR: ssl: Default-server configuration ignored by server

When a default-server line specified a client certificate to use, the
frontend would not take it into account and create an empty SSL context,
which would raise an error on the backend side ("peer did not return a
certificate").

This bug was introduced by d817dc733eacfd7cf5bb0bbc6128f44644db078e in
which the SSL contexts are created earlier than before (during the
default-server line parsing) without setting it in the corresponding
server structures. It then made the server create an empty SSL context
in ssl_sock_prepare_srv_ctx because it thought it needed one.

It was raised on redmine, in Bug #3906.

It can be backported to 2.4.
reg-tests/ssl/ssl_default_server.vtc [new file with mode: 0644]
src/server.c