Migration guide

Enable the hybrid group X25519MLKEM768 on Apache httpd (mod_ssl)

Apache's mod_ssl uses the OpenSSL library it is linked with. On OpenSSL 3.5 or later the hybrid group X25519MLKEM768 is in the default group list; set it explicitly with SSLOpenSSLConfCmd if your config restricts groups, then verify with our check.

Documentation only Last reviewed 2026-12-04

How this guide was validated. Drafted from the Apache mod_ssl documentation and the OpenSSL 3.5 manuals. Not run on Apache here.

Applies to

  • Apache httpd 2.4 with mod_ssl (SSLOpenSSLConfCmd, 2.4.8 and later)
  • OpenSSL 3.5 or later

Before you start

  • Apache built against OpenSSL 3.5 or later. OpenSSL 3.0 to 3.4 do not know the name X25519MLKEM768. With them, an SSLOpenSSLConfCmd line naming it fails when mod_ssl starts: the error log shows AH02407 ("SSLOpenSSLConfCmd ... failed") and then "Fatal error initialising mod_ssl" (AH02311 or AH02312). apachectl configtest is a syntax test, so check the error log after reloading too.
  • TLS 1.3 enabled (the hybrid group is TLS 1.3 only).
  • A maintenance window and a copy of the current configuration.

Steps

  1. Check the OpenSSL version Apache uses
    Run apachectl -V or httpd -V and look at the running server's start-up line in the error log, which names the OpenSSL version mod_ssl loaded.
    apachectl -V
    openssl version

    Expect: OpenSSL 3.5 or later. If it is older, upgrade the OS or Apache build first.

  2. Check whether your config restricts groups
    Search for SSLOpenSSLConfCmd Curves or Groups, and for a Groups line in the OpenSSL config. If there is none, OpenSSL 3.5's default list applies and starts with X25519MLKEM768.
    grep -ri 'SSLOpenSSLConfCmd' /etc/apache2 /etc/httpd 2>/dev/null
  3. Put the hybrid group first (only if groups are set)
    In the global or virtual-host SSL config. Keep classical groups after it so older clients still connect.
    SSLOpenSSLConfCmd Curves X25519MLKEM768:X25519:prime256v1:secp384r1

    Expect: Apache starts and reloads without the AH02312 mod_ssl error.

  4. Test and reload
    On Debian/Ubuntu the service is apache2; on RHEL-family systems it is httpd.
    apachectl configtest
    sudo systemctl reload apache2

Verify

  1. Check with openssl s_client
    From another machine, with OpenSSL 3.5 or later.
    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 configuration and reload
    Remove the line you added or restore the saved file, test and reload.
    apachectl configtest
    sudo systemctl reload apache2

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.
  • If Apache proxies to a backend over TLS, that connection is configured separately (SSLProxy* directives).

Sources

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