CCyberwiki

TLS certificates

TLS certificate
TypeSigned data structure (X.509 version 3)
Also known asSSL certificate, server certificate
SpecificationsRFC 5280 (format and chain checks), RFC 9525 (name checks)
Issued byCertificate authorities trusted by browsers and operating systems
Maximum lifetimeCut from 398 days in steps from March 2026, to 47 days by March 2029
OWASP Top 10A04:2025 Cryptographic Failures
AffectsEvery site and API served over https, and every client that connects to one

When a browser opens https://example.com, the server answers the TLS handshake with a list of certificates: its own first, then the certificates that vouch for it.1 A TLS certificate is a signed document in the X.509 format that binds a public key to one or more domain names. The browser goes ahead only if the name it asked for is in the certificate, today's date falls inside the validity period, and a chain of signatures runs from the certificate to a root the browser already trusts.2

Contents of a certificate

A certificate names its domains in the subject alternative name extension and carries the public key, the issuer, a validity period and the issuer's signature. The validity period runs from the notBefore date through the notAfter date, both included. A basic constraints field marks whether the certificate belongs to a certificate authority; when it does not, its key must not be used to check signatures on other certificates, so a site's certificate cannot sign one for another domain.2

Clients compare the requested host with the DNS names in the subject alternative name extension and ignore the older Common Name field.3 A wildcard may appear once, as the whole left-most label, and stands for exactly one label: *.example.com covers shop.example.com but not a.shop.example.com.3

Chain of trust

Browsers and operating systems ship a trust store, a list of root certificates. A root is self-signed: its signature verifies against the key it carries, so it proves nothing on its own and is trusted because it was placed in the store.2 Let's Encrypt keeps its root keys offline and issues site certificates from intermediate CAs, whose own certificates a root has signed; as of November 2026 its default RSA chain ran from the site certificate to the intermediate YR1, then to Root YR, then to ISRG Root X1.4

In the handshake each certificate after the first should certify the one before it, and the root may be left out because the client is expected to hold it.1 The server therefore has to send its intermediates as well, and the bundle that comes with each new certificate should replace the old one every time.5 A cross-signature puts a newer CA's name and key in a second certificate signed by an older, more widely trusted root.42

Issuance and domain validation

A public CA issues a certificate only after checking control of every name in it. Let's Encrypt runs that check through ACME: the CA hands a token to a client program on the server, and the client publishes proof derived from the token and its account key.6

Table 1. ACME challenge types at Let's Encrypt
ChallengeWhere the proof goesLimits
HTTP-01A file at http://<domain>/.well-known/acme-challenge/<token>, fetched by the CA from several vantage pointsPort 80 only; no wildcard names
DNS-01A TXT record at _acme-challenge.<domain>Needs DNS changes for each validation; allows wildcards
TLS-ALPN-01A TLS handshake on port 443 that announces a special protocol name (ALPN), defined in RFC 8737Limited client support; no wildcards

With DNS-01, full DNS API credentials stored on the web server mean that a break-in there also hands over the domain's DNS. Narrowly scoped credentials, or a separate machine that validates and copies certificates across, keep the two apart.6

A domain owner can restrict issuance to named CAs with a CAA record. CAs must check it before issuing; browsers must not use it when they validate a certificate.7 The public logs described in Certificate Transparency show what was issued afterwards. The second line below forbids issuance by any CA for that name:

example.com.         CAA 0 issue "ca1.example.net"
nocerts.example.com. CAA 0 issue ";"

Lifetimes and renewal

Lifetimes are capped by the CA/Browser Forum's Baseline Requirements, which every publicly trusted CA follows.8 Ballot SC081 (April 2025) brings the maximum down from 398 days to 47 days in steps between March 2026 and March 2029, and shortens the time a CA may rely on an earlier domain check from 398 days to 10.9

Let's Encrypt's default profile moves from 90-day certificates to 64 days on 10 February 2027 and to 45 days on 16 February 2028. Over the same two steps, the time it reuses a domain check falls from 30 days to 10 days, then to 7 hours. Short lifetimes cap how long a compromised key stays usable. They also rule out renewal on a fixed 60-day count; the CA advises renewing at about two thirds of the lifetime and alerting when a renewal fails to arrive.8 Diagnosing website downtime covers an expired certificate in production.

Revocation

A CA can withdraw a certificate before its notAfter date and announce it through a certificate revocation list (CRL) or through OCSP, a live per-certificate lookup. OCSP has a privacy cost, because the CA answering each lookup sees which site a given IP address is visiting. Let's Encrypt added CRLs in 2022, dropped OCSP addresses from new certificates on 7 May 2025 and shut its OCSP responders on 6 August 2025.10

The 2021 root expiry

To be accepted on devices that did not yet carry ISRG Root X1, Let's Encrypt certificates also chained through a cross-signature from an older root, DST Root CA X3.11 That root expired at 14:01:15 UTC on 30 September 2021.5 Devices lacking ISRG Root X1 began rejecting Let's Encrypt sites (older Android phones were covered by a special cross-sign), and so did clients on OpenSSL 1.0.x, whose verifier failed on the default chain even with ISRG Root X1 installed.11 Google Cloud Monitoring reported every server with a Let's Encrypt certificate as down, and Azure Application Gateway stopped connecting to them. Most of the failures traced to outdated software, mainly OpenSSL, and the fixes ranged from a software update to new firmware for smart devices.5

Inspecting a certificate

OpenSSL's test client prints what a server sends:

openssl s_client -connect example.com:443 -servername example.com -showcerts

-servername sets Server Name Indication, the host name announced in the client's first message. -showcerts prints the certificates in the order the server sent them, which is not a verified chain. By default s_client reports verification errors and carries on; -verify_return_error makes it abort.12 An application or HTTP client that carries on the same way, with certificate checks switched off, is open to a manipulator-in-the-middle attack (see Encryption in transit).

In SecFlash

On the Security page, SecFlash reports a certificate that browsers would reject as SF-SEC-204 and one close to its end date as SF-SEC-205. It reports switched-off certificate checks as SF-SEC-708 and an app that accepts any server certificate as SF-SEC-786; a mobile build that trusts certificates added on the phone appears as SF-EXP-605 on the Exposure page. A domain with no CAA record is SF-EML-203 on the Email and domain page.

See also

References

  1. a b Rescorla, E. (August 2018). "RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3". IETF.
  2. a b c d Cooper, D. et al. (May 2008). "RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile". IETF.
  3. a b Saint-Andre, P. and Salz, R. (November 2023). "RFC 9525: Service Identity in TLS". IETF.
  4. a b Let's Encrypt (11 November 2026). "Chains of Trust". letsencrypt.org.
  5. a b c Helme, Scott (October 2021). "Let's Encrypt Root Expiration Post-Mortem". scotthelme.co.uk.
  6. a b Let's Encrypt (12 February 2026). "Challenge Types". letsencrypt.org.
  7. back Hallam-Baker, P., Stradling, R. and Hoffman-Andrews, J. (November 2019). "RFC 8659: DNS Certification Authority Authorization (CAA) Resource Record". IETF.
  8. a b McPherrin, Matthew (2 December 2025). "Decreasing Certificate Lifetimes to 45 Days". Let's Encrypt blog.
  9. back CA/Browser Forum (11 April 2025). "Ballot SC-081v3: Introduce Schedule of Reducing Validity and Data Reuse Periods". cabforum.org.
  10. back Aas, Josh (5 December 2024). "Ending OCSP Support in 2025". Let's Encrypt.
  11. a b Let's Encrypt (5 February 2024). "DST Root CA X3 Expiration (September 2021)". letsencrypt.org.
  12. back OpenSSL Project (read 22 November 2026). "openssl-s_client", OpenSSL 3.5 manual. OpenSSL Documentation.