HAProxy needs a TLS library that knows the hybrid groups. HAProxy Technologies ships builds linked against AWS-LC that do. Set the group list explicitly so it does not depend on library defaults.
Requirements
- HAProxy Enterprise 3.2 or newer, or HAProxy Community 3.3 or newer from HAProxy's performance packages (built with AWS-LC). Builds against OpenSSL 3.5+ also work.
- TLS 1.3 enabled on the bind lines.
See which TLS library HAProxy uses:
haproxy -vv | grep -iE 'ssl|aws-lc'Turn it on
Set the groups for client-facing (bind) and, if you like, backend (server) connections:
haproxy.cfg (global section)
ssl-default-bind-curves X25519MLKEM768:SecP256r1MLKEM768:X25519:P-256:P-384
ssl-default-server-curves X25519MLKEM768:SecP256r1MLKEM768:X25519:P-256:P-384Check and reload:
haproxy -c -f /etc/haproxy/haproxy.cfg && systemctl reload haproxyCheck that it worked
Run the checker against your hostname. It reports X25519MLKEM768 as supported once the change is live.
From a terminal, with an OpenSSL 3.5+ client. Output that names X25519MLKEM768 means it works, a handshake failure alert means it does not:
openssl s_client -connect example.com:443 -servername example.com \
-tls1_3 -groups X25519MLKEM768 </dev/null 2>&1 | grep -iE 'group|alert'Common problems
- Distribution HAProxy packages linked against OpenSSL 3.0 reject these group names.
- A bind line with its own curves setting overrides the global default.