]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: prevent multiple entries for the same certificate
authorThierry FOURNIER / OZON.IO <thierry.fournier@ozon.io>
Thu, 6 Oct 2016 08:56:48 +0000 (10:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Oct 2016 17:13:12 +0000 (19:13 +0200)
commit07c3d78c2c0693ee37db71c34723597638b6ab3f
tree4d8d1ba403b85d6d75f41f13d74b66aa163c6e01
parent7a3bd3b9dc43509bb1869389dcf91e35c0155f9b
BUG/MINOR: ssl: prevent multiple entries for the same certificate

Today, the certificate are indexed int he SNI tree using their CN and the
list of thier AltNames. So, Some certificates have the same names in the
CN and one of the AltNames entries.

Typically Let's Encrypt duplicate the the DNS name in the CN and the
AltName.

This patch prevents the creation of identical entries in the trees. It
checks the same DNS name and the same SSL context.

If the same certificate is registered two time it will be duplicated.

This patch should be backported in the 1.6 and 1.5 version.
src/ssl_sock.c