Migration guide
Enable the hybrid group X25519MLKEM768 on HAProxy
HAProxy Technologies documents hybrid post-quantum key exchange for HAProxy Enterprise 3.2+ and HAProxy Community 3.3+ in its own packages, which ship with AWS-LC. Put X25519MLKEM768 first in ssl-default-bind-curves, cover the server side too, and verify with our check. Other builds depend on the TLS library they are built with.
Documentation only
Applies to
- HAProxy Enterprise 3.2+ and HAProxy Community 3.3+ performance packages from HAProxy Technologies (built with AWS-LC)
- Other HAProxy builds only if their TLS library supports X25519MLKEM768, for example OpenSSL 3.5 or later (not documented by HAProxy Technologies, not tested here)
- TLS 1.3 connections on bind lines
Before you start
- Check the crypto library: haproxy -vv. HAProxy Technologies documents AWS-LC in its Enterprise and Community performance packages. Another build needs a library that knows X25519MLKEM768, such as OpenSSL 3.5 or later.
- TLS 1.3 allowed on the bind lines (hybrid groups are TLS 1.3 only).
- A copy of the current haproxy.cfg.
Steps
- Check the build
Look at the 'Built with ... SSL library' line.haproxy -vv | grep -i ssl - Set the client-facing curve list
In the global section. X25519MLKEM768 first, classical groups after it for fallback. You can also set curves on a single bind line.global ssl-default-bind-curves X25519MLKEM768:X25519:P-256 - Set the backend curve list too (if HAProxy re-encrypts to servers)
ssl-default-server-curves, listed in the HAProxy 3.2 configuration manual, sets the default for connections from HAProxy to your backend servers. Configuring only the front side leaves that leg as it was.global ssl-default-server-curves X25519MLKEM768:X25519:P-256 - Check and reload
Validate the config, then reload.haproxy -c -f /etc/haproxy/haproxy.cfg sudo systemctl reload haproxy
Verify
- Check with openssl s_client
From another machine.openssl s_client -connect example.com:443 -servername example.com -tls1_3 </dev/null 2>&1 | grep 'Negotiated TLS1.3 group'
Verify with our check
Run the public checker on your hostname at postquantumverified.com. It opens one TLS 1.3 handshake on port 443 and shows Verified (the server selected the hybrid group X25519MLKEM768), Not post-quantum (it selected a classical group) or Could not check. Each check gets a dated record at /verify/{hostname} that anyone can open again. If the result is not Verified, see Why did my check say Not post-quantum? and Why did my check say Could not check?.
Roll back
- Restore the saved haproxy.cfg and reload
Remove the curve lines you added or restore the saved file, check and reload.haproxy -c -f /etc/haproxy/haproxy.cfg sudo systemctl reload haproxy
What this guide does not cover
- A key-exchange result says nothing about authentication: the certificate and its signature are a separate question, and certificate signatures are not made post-quantum by this change.
- Only the connection between the client and this endpoint is covered. A CDN or load balancer in front of it terminates the client connection itself. See cdn-edge-and-origin.
- Clients that do not offer the hybrid group will use a classical group. That is expected.
- HAProxy Technologies says its post-quantum support requires the HAProxy Enterprise or HAProxy Community performance packages it builds. Distribution builds are not covered by that statement.