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
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
- 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 - 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 - 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 - Test and reload
On Debian/Ubuntu the service is apache2; on RHEL-family systems it is httpd.apachectl configtest sudo systemctl reload apache2
Verify
- 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'
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 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
- Apache module mod_ssl: SSLOpenSSLConfCmd
- OpenSSL 3.5 SSL_CONF_cmd / SSL_CTX_set1_groups_list (group list syntax; X25519MLKEM768 first in the 3.5 default list)
- OpenSSL 3.5 openssl-s_client manual
- RFC 10024 (Proposed Standard, August 2026): Post-Quantum Traditional (PQ/T) Hybrid Key Agreement Mechanisms for TLS 1.3
- OpenSSL 3.5 source: default TLS group list (X25519MLKEM768 first)
- Apache httpd 2.4 mod_ssl source: AH02407 (SSLOpenSSLConfCmd failed)
- Apache httpd 2.4 mod_ssl source: AH02311/AH02312 (fatal error initialising mod_ssl)