]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTESTS: ssl: fix generate-certificates w/ LibreSSL
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 21 Jan 2026 15:40:21 +0000 (16:40 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 21 Jan 2026 15:50:16 +0000 (16:50 +0100)
commit21b192e7995ffac2ac741367632059039e8268af
treeed287febde1ef54809c1f11a5d035c0d3f924071
parentc7004be9640d6ccb0aa9e1fb15bfa38f6bff1ad3
REGTESTS: ssl: fix generate-certificates w/ LibreSSL

Since commit eb5279b15 ("BUG/MEDIUM: ssl: fix generate-certificates
option when SNI greater than 64bytes") the LibreSSL job does not seem to
work anymore.

Indeed the reg-tests was modified to add a SNI longer than 64 bytes,
without any concern about the DNS standard, which allows only 63 bytes
per label.

LibreSSL is stricter than the other libraries about that, and checks
that the SNI is compliant with the DNS RFC in the
tlsext_sni_is_valid_hostname() function
https://github.com/libressl/openbsd/blob/OPENBSD_7_8/src/lib/libssl/ssl_tlsext.c#L710

This patch fixes the issue by splitting the SNI with a second label to
reach more than 64 bytes.

Must be backported with eb5279b15 in every stable branches.
reg-tests/ssl/ssl_generate_certificate.vtc