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 Last reviewed 2026-12-04

How this guide was validated. Drafted from HAProxy Technologies' post-quantum blog post (updated December 3, 2026) and the HAProxy 3.2 configuration manual. Not run on HAProxy here. Which library your build uses decides whether the group exists.

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

  1. Check the build
    Look at the 'Built with ... SSL library' line.
    haproxy -vv | grep -i ssl

    Expect: AWS-LC (HAProxy Technologies packages), or another library that supports X25519MLKEM768, such as OpenSSL 3.5 or later.

  2. 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
  3. 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
  4. Check and reload
    Validate the config, then reload.
    haproxy -c -f /etc/haproxy/haproxy.cfg
    sudo systemctl reload haproxy

    Expect: Configuration file is valid.

Verify

  1. 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'

    Expect: Negotiated TLS1.3 group: X25519MLKEM768

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?.

The checker tests the public HTTPS endpoint on port 443 of the exact hostname you enter. Mail (SMTP, IMAP) and other ports are not covered by it.

Roll back

  1. 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.

Sources

Only change systems you own or are authorized to change. Have a person approve each change and keep a rollback.