tldrTLS
Colour theme

Example configs

Apache: TLS 1.3 only, ECDSA only, HSTS without subdomains

We have not run this one. It is built from the Apache documentation. Test it before you rely on it.

Needs Apache 2.4 with OpenSSL 3.5 or later, plus mod_ssl and mod_headers. Swap example.com and the paths for your own.

ServerTokens Prod

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

<VirtualHost *:443>
    ServerName example.com
    DocumentRoot /var/www/example.com

    SSLEngine on
    SSLCertificateFile    /etc/ssl/example.com/fullchain.pem
    SSLCertificateKeyFile /etc/ssl/example.com/privkey.pem

    SSLProtocol -all +TLSv1.3
    SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:secp384r1
    SSLSessionTickets off

    Header always set Strict-Transport-Security "max-age=63072000"
    Header always set X-Content-Type-Options "nosniff"
    Header always set Referrer-Policy "strict-origin-when-cross-origin"
</VirtualHost>

What it does

What it leaves out

  • OCSP stapling. See revocation.
  • A Content-Security-Policy. It depends on what your pages load.
  • HTTP/3. We haven't tested it.

Check what you deployed

openssl s_client -connect example.com:443 -groups X25519MLKEM768 -brief </dev/null
weeb probe example.com --fix

The first should print Negotiated TLS1.3 group: X25519MLKEM768. The second (get weeb) should show TLS 1.0 and 1.1 as unavailable, and TLS 1.2 too.