Kexwatch

Fix guides

Enable post-quantum key exchange on HAProxy

HAProxy can offer hybrid post-quantum key exchange (X25519MLKEM768) when its crypto library supports it: OpenSSL 3.5 or newer, or AWS-LC. On older OpenSSL there is nothing to switch on, and adding the setting can stop HAProxy from loading its config.

Based on HAProxy's documentation. Test the config before you reload, then run the Kexwatch check to confirm.

1. Check the crypto library

haproxy -vv | grep -i -E "openssl|aws-lc"
You seeWhat to do
OpenSSL 3.5 or newerGo to step 3
AWS-LCGo to step 3
OpenSSL 3.4 or olderGo to step 2 first

2. Get a build with support

HAProxy uses whatever library it was built with, so upgrading OpenSSL alone is not enough. Either:

  • Move to an operating system release that ships OpenSSL 3.5, such as Debian 13 or Ubuntu 26.04, and use its HAProxy package.
  • Use HAProxy's own packages built with AWS-LC (Community Performance Packages for HAProxy 3.3 and newer, or HAProxy Enterprise 3.2 and newer).

3. Set the groups

In the global section of /etc/haproxy/haproxy.cfg:

ssl-default-bind-curves X25519MLKEM768:X25519:P-256

Keep X25519 and P-256 in the list so older clients can still connect. Also look for curves on individual bind lines. Those override the global setting, so add X25519MLKEM768 to the front of each one.

Hybrid key exchange only works over TLS 1.3. If you have ssl-max-ver TLSv1.2 anywhere, remove it.

4. Test, then reload

sudo haproxy -c -f /etc/haproxy/haproxy.cfg && sudo systemctl reload haproxy

The reload only runs if the check passes. If either step fails with an error about curves, your build does not support the hybrid group: remove the line and go back to step 2.

5. Check the result

Run the free check again. A pass means HAProxy negotiates hybrid post-quantum key exchange with a modern client.