Configure TLS properly: protocols, ciphers and certificates for Apache, nginx and IIS
A valid certificate alone is not enough: the server's TLS configuration also decides how secure the connection is. PHPCheck.net and the LAN check check these points.
1. Only TLS 1.2 and 1.3
TLS 1.0 and 1.1 have been officially deprecated since 2021 (RFC 8996) and are no longer supported by modern browsers. Allow only TLS 1.2 and 1.3.
# Apache (mod_ssl)
SSLProtocol -all +TLSv1.2 +TLSv1.3
# nginx
ssl_protocols TLSv1.2 TLSv1.3;
Windows/IIS: the protocols are controlled in the registry (SChannel). The easiest way is the free tool "IIS Crypto" by Nartac ("Best Practices" template) followed by a reboot. Check first whether older clients or applications (e.g. old .NET programs, scanners, printers) still need TLS 1.0.
2. Modern cipher suites
For TLS 1.2 use only cipher suites with forward secrecy (ECDHE) and AEAD (AES-GCM, ChaCha20-Poly1305). The Mozilla SSL Configuration Generator creates maintained templates for Apache, nginx, HAProxy and many others – the "Intermediate" profile suits most websites.
3. Complete certificate chain
The server must send the intermediate certificates. If they are missing, some browsers still work (they fetch missing certificates), but other clients such as
apps, curl or mail servers fail. With Let’s Encrypt use fullchain.pem, not cert.pem.
4. Renew certificates automatically
The lifetime of public certificates is being shortened step by step – manual renewal becomes impractical. Use ACME (e.g. certbot, acme.sh, win-acme for IIS) and monitor the expiry date. Internal servers are best served by an internal CA (e.g. Active Directory Certificate Services) with auto-enrollment.
5. HSTS and HTTP → HTTPS
Permanently redirect (301) all HTTP requests to HTTPS and set HSTS – details in the guide Set security headers.
6. Keep an eye on your certificate authority
As the eMudhra incident in October 2026 shows, certificate authorities can be compromised and blocked by browsers. With a CAA record (see DNS security) you define which CAs may issue certificates for your domain.
Check it
openssl s_client -connect example.com:443 -tls1_1 # should fail
openssl s_client -connect example.com:443 -tls1_3 # should work
Sources
- Mozilla SSL Configuration Generator
- RFC 8996 – Deprecating TLS 1.0 and TLS 1.1
- BSI TR-02102: cryptographic mechanisms (German)