Apache's mod_ssl also takes its groups from OpenSSL. With OpenSSL 3.5 underneath and no explicit group list, X25519MLKEM768 is offered automatically.
Requirements
- Apache httpd 2.4 with mod_ssl built against OpenSSL 3.5.0 or newer.
- TLS 1.3 allowed by SSLProtocol (for example SSLProtocol -all +TLSv1.2 +TLSv1.3).
The startup line in the error log names the OpenSSL version mod_ssl uses:
grep -i 'openssl/' /var/log/apache2/error.log | tail -n 1 # or /var/log/httpd/error_logTurn it on
Nothing to add if you never set curves or groups. If you did, put the hybrid group first:
ssl.conf or the VirtualHost
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1:secp384r1Check and reload:
apachectl configtest && apachectl gracefulCheck that it worked
Run the checker against your hostname. It reports X25519MLKEM768 as supported once the change is live.
From a terminal, with an OpenSSL 3.5+ client. Output that names X25519MLKEM768 means it works, a handshake failure alert means it does not:
openssl s_client -connect example.com:443 -servername example.com \
-tls1_3 -groups X25519MLKEM768 </dev/null 2>&1 | grep -iE 'group|alert'Common problems
- An existing SSLOpenSSLConfCmd Curves or Groups line without X25519MLKEM768 disables it.
- Some distributions build mod_ssl against their system OpenSSL, so upgrading Apache alone is not enough.