]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ECC cert should work with TLS < v1.2 and openssl >= 1.1.1
authorEmmanuel Hocdet <manu@gandi.net>
Mon, 3 Sep 2018 14:29:16 +0000 (16:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 4 Sep 2018 15:47:10 +0000 (17:47 +0200)
commit9f9b0c6a7f34021ca8ce1e7e174f1fce33c5a703
tree8ca6d62abdd04d722d279e4ce201c21a4b523499
parent6d0f38f00dd7191f8502cfd0b6c96399370b786b
BUG/MEDIUM: ECC cert should work with TLS < v1.2 and openssl >= 1.1.1

With openssl >= 1.1.1 and boringssl multi-cert is natively supported.
ECDSA/RSA selection is done and work correctly with TLS >= v1.2.
TLS < v1.2 have no TLSEXT_TYPE_signature_algorithms extension: ECC
certificate can't be selected, and handshake fail if no RSA cert
is present. Safe ECC certificate selection without client announcement
can be very tricky (browser compatibilty). The safer approach is to
select ECDSA certificate if no other certificate matches, like it is
with openssl < 1.1.1: certificate selection is only done via the SNI.

Thanks to Lukas Tribus for reporting this and analysing the problem.

This patch should be backported to 1.8
src/ssl_sock.c