Post-quantum TLS on Apache httpd
Web server. Works with mod_ssl on OpenSSL 3.5+; on by default there unless the group list is overridden.
Checked 2026-12-05. Official docs: httpd.apache.org. JSON: /api/v1/fixes/apache
Turn on post-quantum key exchange
Run Apache on OpenSSL 3.5 or newer. This needs OpenSSL 3.5 or newer (check with openssl version, or nginx -V / httpd -V for what the server was built with). Debian 13, Ubuntu 25.10+, Alpine 3.22+ and Fedora 42+ ship it. Then make sure the group list includes the hybrid:
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1Fixes: KEX_CLASSICAL_ONLY
Prefer post-quantum over classical
Put the hybrid group first:
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1Fixes: KEX_PQ_NOT_PREFERRED
Enable TLS 1.3
Allow TLS 1.3:
SSLProtocol -all +TLSv1.2 +TLSv1.3Fixes: TLS13_MISSING
Turn off TLS 1.0 and 1.1
Allow only TLS 1.2 and 1.3:
SSLProtocol -all +TLSv1.2 +TLSv1.3Fixes: TLS10_11_ENABLED
Use strong TLS 1.2 cipher suites
Use strong TLS 1.2 suites:
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305SSLHonorCipherOrder offFixes: TLS12_WEAK_SUITE
Redirect HTTP to HTTPS
Redirect port 80 to HTTPS:
<VirtualHost *:80> ServerName example.com Redirect permanent / https://example.com/</VirtualHost>Fixes: HTTP_NO_REDIRECT
Send HSTS
Send HSTS (needs mod_headers):
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"Fixes: HSTS_MISSING, HSTS_SHORT