HAProxy does not set a curve list unless you configure one, so it uses the default groups of the TLS library it was built with. Built against OpenSSL 3.5 or newer, it offers X25519MLKEM768 without changes. Built against an older OpenSSL, it cannot negotiate ML-KEM at all.
Enable it
To set the order explicitly, add this to the global section of haproxy.cfg:
global
ssl-default-bind-options ssl-min-ver TLSv1.2
ssl-default-bind-curves X25519MLKEM768:X25519:P-256
This puts the hybrid group first and keeps X25519 and P-256 for older clients. HAProxy's blog example also adds SecP256r1MLKEM768 after the X25519 hybrid.
To set it for one frontend only, use the curves keyword on the bind line:
frontend https
bind :443 ssl crt /etc/haproxy/certs/ curves X25519MLKEM768:X25519:P-256
For connections from HAProxy to your backends, ssl-default-server-curves in global (or curves on a server line) does the same job. Check the config with haproxy -c -f /etc/haproxy/haproxy.cfg, then reload.
Check it worked
From a machine with an OpenSSL 3.5 or newer client:
openssl s_client -connect example.com:443 -servername example.com \
-groups X25519MLKEM768 -tls1_3 </dev/null 2>/dev/null | grep -i "group"
You should see Negotiated TLS1.3 group: X25519MLKEM768. HAProxy's blog also shows a test with the bssl tool shipped in its AWS-LC packages.
Run a free check at https://isquantumsafe.net/ to see the negotiated group and your grade.