Skip to content

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:

ssl.conf or the <VirtualHost *:443> block
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1

Fixes: KEX_CLASSICAL_ONLY

Prefer post-quantum over classical

Put the hybrid group first:

ssl.conf
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1

Fixes: KEX_PQ_NOT_PREFERRED

Enable TLS 1.3

Allow TLS 1.3:

ssl.conf
SSLProtocol -all +TLSv1.2 +TLSv1.3

Fixes: TLS13_MISSING

Turn off TLS 1.0 and 1.1

Allow only TLS 1.2 and 1.3:

ssl.conf
SSLProtocol -all +TLSv1.2 +TLSv1.3

Fixes: TLS10_11_ENABLED

Use strong TLS 1.2 cipher suites

Use strong TLS 1.2 suites:

ssl.conf
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-POLY1305
SSLHonorCipherOrder off

Fixes: TLS12_WEAK_SUITE

Redirect HTTP to HTTPS

Redirect port 80 to HTTPS:

site config
<VirtualHost *:80>
ServerName example.com
Redirect permanent / https://example.com/
</VirtualHost>

Fixes: HTTP_NO_REDIRECT

Send HSTS

Send HSTS (needs mod_headers):

<VirtualHost *:443> block
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

Fixes: HSTS_MISSING, HSTS_SHORT