CCyberwiki

Certificates and TLS settings

A certificate carries a fixed end date, and after that date browsers refuse it. The allowed lifetime of a publicly trusted certificate is being cut from 398 days to 47 days in steps that began in March 2026 and end in March 2029.1 The CA/Browser Forum, which sets these rules, found that the services announcing revoked certificates (CRLs and OCSP) do not adequately protect visitors at the internet's current scale; a short lifetime limits how long a wrongly issued certificate keeps working without relying on them.1 Let's Encrypt advises against renewing by hand, since it has to be done more often as lifetimes shrink.2

The other half of the setup is which TLS versions and ciphers the server agrees to, and whether browsers are told to refuse plain HTTP through HSTS. The background is in TLS certificates, Encryption in transit and HTTP Strict Transport Security.

Table 1. Let's Encrypt lifetime changes, as announced on 2 December 2025
DateProfileCertificate lifetime
Before the changesclassic (default)90 days
13 May 2026tlsserver (opt-in)45 days
10 February 2027classic (default)64 days
16 February 2028classic (default)45 days

Steps

1. Renew certificates automatically, at a fraction of their lifetime

A renewal job that fires on a fixed day count breaks when lifetimes shrink: a job that waits 60 days lets a 45-day certificate expire. Let's Encrypt asks clients to renew at roughly two thirds of the current lifetime, or to use ACME Renewal Information (ARI), where the authority tells the client when to renew.2 Certbot has worked this way since version 4.0.0, renewing once less than a third of the lifetime is left.3 Most Certbot packages install a scheduled task that runs certbot renew; a test run against the Let's Encrypt staging server, which saves nothing, shows whether it can succeed:3

certbot renew --dry-run

A renewed file on disk changes nothing until the web server loads it. A command passed with --deploy-hook runs only after a renewal that succeeded, which makes it the place to reload nginx or the proxy.3

2. Watch the expiry date from outside the renewal job

Let's Encrypt stopped sending expiry warning emails on 4 June 2025,4 so a silent renewal failure now shows up first as the browser's warning page. Let's Encrypt advises a separate alert for certificates that were not renewed on time.2 On the server, OpenSSL prints the end date and exits with a non-zero status if the certificate expires within the given number of seconds (here 14 days):5

openssl x509 -in cert.pem -noout -enddate -checkend 1209600

3. Accept only TLS 1.2 and TLS 1.3

RFC 8996, published in March 2021, states that TLS 1.0 and TLS 1.1 must not be used or negotiated.6 Mozilla's "intermediate" profile allows TLS 1.2 and 1.3 and still serves clients as old as Chrome 49, Firefox 31.3.0 and Safari 9; its "modern" profile allows only TLS 1.3 and needs at least Chrome 70, Firefox 63 or Safari 12.1.7

In nginx the directive is below. It matches the current default, which has included TLS 1.3 since nginx 1.23.4, so an old line in the config that adds TLSv1 or TLSv1.1 is what turns the old versions back on:8

ssl_protocols TLSv1.2 TLSv1.3;

On Cloudflare, set Minimum TLS Version to TLS 1.2 on the Edge Certificates page, or set min_tls_version through the API. Pages hostnames have no such setting, and R2 custom domains have their own.9

4. Use the intermediate cipher list

For TLS 1.2 the intermediate profile keeps six suites. Each name starts with ECDHE, the key exchange that gives forward secrecy, and ends in AES-GCM or ChaCha20-Poly1305 encryption. The profile leaves the choice among them to the client, so server preference is off, which is also the nginx default.78

ssl_ciphers 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;
ssl_prefer_server_ciphers off;

5. Check that old versions are refused

A request capped at TLS 1.1 should fail at the handshake:9

curl https://www.example.com -svo /dev/null --tls-max 1.1

6. Encrypt the hop between the CDN and the server

Behind a CDN, the visitor's padlock covers only the connection to the CDN. Cloudflare's Full (strict) mode encrypts the second hop as well and accepts only an origin certificate that has not expired, comes from a public authority or Cloudflare's Origin CA, and names the requested host.10 Set up the server first: it must accept HTTPS on port 443 and present a certificate that passes these checks, or visitors get error 526. Then choose the mode on the SSL/TLS Overview page (API value strict).10 How an attacker on that path downgrades a connection is in SSL stripping.

7. Turn on HSTS in stages

Once a browser has seen HSTS, it rewrites every http:// address for the domain to HTTPS for the whole max-age, and with includeSubDomains it does the same for every subdomain, internal ones included. A subdomain that works only over plain HTTP then fails to load in that browser until the max-age runs out, so check every subdomain first and raise the max-age in stages, waiting out each one:11

Strict-Transport-Security: max-age=300; includeSubDomains
Strict-Transport-Security: max-age=604800; includeSubDomains
Strict-Transport-Security: max-age=2592000; includeSubDomains

Mozilla's minimum for the final value is two years, max-age=63072000.7 The header can be set at the host, the proxy or the app; Adding security headers on each host lists where.

8. Leave preloading for last, or skip it

The preload list builds a domain's HSTS rule into the browser. The list's maintainers call its benefit small next to HSTS itself and do not recommend it, partly because Chrome and Safari already upgrade navigations to HTTPS.11 Entry needs a max-age of at least one year (31536000) with includeSubDomains and preload; new entries take months to reach stable Chrome, and getting off the list is slow.11

Prompt for a coding agent

Review the TLS setup of this project. Find every web server, proxy and hosting config (nginx, Caddy, Docker Compose, vercel.json, netlify.toml, fly.toml, Cloudflare settings in code). For each one: list the TLS versions it accepts and remove TLS 1.0 and 1.1; set the TLS 1.2 ciphers to Mozilla's intermediate list; find how certificates are renewed and whether the server is reloaded after renewal; find where the Strict-Transport-Security header is set and its max-age. Do not add the preload directive. Do not change a max-age above one week without asking me, and list every subdomain the config serves so I can check each works over HTTPS. Report each file and line you changed.

In SecFlash

On the Security page, SF-SEC-205 warns before a certificate expires, SF-SEC-204 reports one that browsers reject, and SF-SEC-203 reports TLS 1.0, TLS 1.1 or weak ciphers. SF-SEC-101 and SF-SEC-102 cover a missing HSTS header and a short max-age, and SF-SEC-201 and SF-SEC-202 a page on plain HTTP and a missing redirect. On the Cloud page, SF-CLD-301 reports a Cloudflare SSL mode that leaves the hop to the server unencrypted, SF-CLD-303 a zone that still accepts old TLS, and SF-CLD-311 a zone that sends no HSTS.

See also

References

  1. a b CA/Browser Forum (11 April 2025). "Ballot SC-081v3: Introduce Schedule of Reducing Validity and Data Reuse Periods". cabforum.org.
  2. a b c McPherrin, Matthew (2 December 2025). "Decreasing Certificate Lifetimes to 45 Days". Let's Encrypt blog.
  3. a b c Electronic Frontier Foundation (read 22 November 2026). "User Guide", Certbot 5.10.0. Certbot documentation.
  4. back Aas, Josh (22 January 2025). "Ending Support for Expiration Notification Emails". Let's Encrypt blog.
  5. back OpenSSL Project. "openssl-x509", OpenSSL 3.5 manual. OpenSSL documentation.
  6. back Moriarty, K. and Farrell, S. (March 2021). "Deprecating TLS 1.0 and TLS 1.1", RFC 8996. IETF.
  7. a b c Mozilla (read 22 November 2026). Server Side TLS guidelines, version 6.0 (JSON). ssl-config.mozilla.org.
  8. a b "Module ngx_http_ssl_module" (read 22 November 2026). nginx documentation.
  9. a b Cloudflare (read 22 November 2026). "Minimum TLS Version". Cloudflare SSL/TLS docs.
  10. a b Cloudflare (read 22 November 2026). "Full (strict)". Cloudflare SSL/TLS docs.
  11. a b c "HSTS Preload List Submission" (read 22 November 2026). hstspreload.org.