Server certificates are getting shorter, and for web browsers that changes nothing visible. For devices in the field it changes a lot, because a device does not get a new browser every month. It trusts what was compiled into its first firmware. This article is part of the series “Production details”, after certificate expiry, one key for every device, time before TLS and the update channel.
What changed?
Public TLS certificates now live 200 days at most and will drop to 100 days in March 2027 and 47 days in March 2029. The CA/Browser Forum’s ballot SC-081 reduces the maximum lifetime in three steps: 200 days for certificates issued from 15 March 2026, 100 days from 15 March 2027 and 47 days from 15 March 2029 (DigiCert). A server with a public certificate will then change it about eight times a year, usually automatically and without anyone looking.
Why do devices care when browsers do not?
Devices care because their trust store is compiled into the firmware and a browser’s is not. A browser updates its root list with its regular releases and accepts any valid chain. Some embedded code goes further and pins the server’s own certificate, or its intermediate. That ties the device to one renewal cycle of the server: when the server changes its certificate, every pinned device stops at once. With 200, 100 and then 47 days, that happens several times a year.
What happened in 2021?
In 2021 a root expired, and it showed that trusting a public root only moves the problem. On 30 September 2021 the DST Root CA X3 expired. Devices whose trust store contained only that root, and not its successor, could no longer verify Let’s Encrypt server certificates and stopped connecting (Let’s Encrypt). The date had been printed in the root for 21 years. The devices that failed were the ones whose trust store could not be changed in the field.
What should a device trust instead?
For the connection to your own backend, a device should trust a long-lived private root that you control. The root is valid for longer than the devices live and is kept offline or in a hardware security module. Issuing CAs below it sign the server certificate of your device endpoint. Those can be renewed or replaced as often as needed, because the device checks the chain up to your root, not the leaf. For third-party HTTPS services, the ESP-IDF certificate bundle with the common public roots is the right tool (ESP-IDF certificate bundle). Keep the two cases apart:
#include "mqtt_client.h"#include "esp_http_client.h"#include "esp_crt_bundle.h"/* Your private roots, current and next, concatenated in one PEM string. */extern const char backend_roots_pem[];/* Your own device endpoint: trust only your private roots. */esp_mqtt_client_config_t mqtt_cfg = { .broker.address.uri = "mqtts://devices.example.com:8883", .broker.verification.certificate = backend_roots_pem, /* client certificate and key of this device */};/* A third-party HTTPS API: use the bundle of public roots. */esp_http_client_config_t http_cfg = { .url = "https://api.example.org/forecast", .crt_bundle_attach = esp_crt_bundle_attach,};Does my product need its own certificate authority?
A product needs a private CA for its device certificates, but it does not have to run that CA itself. Public CAs are removing client authentication from their certificates: Let’s Encrypt stopped issuing certificates with the TLS client authentication usage in 2026, after Chrome’s root program required server-only hierarchies (Let’s Encrypt). The choice between the options is about isolation and custody:
| Option | What it means | Fits |
|---|---|---|
| Shared CA of a service | Your devices chain to an issuing CA that also serves other customers, isolated by a project identifier in each certificate | Prototypes, pilots, small fleets |
| Project CA | A separate issuing CA, or root, for your product only | Products in series, customers with security reviews |
| Customer-owned CA | Device certificates chain to the customer’s own PKI | Utilities, industrial and enterprise buyers who require it |
Whoever operates it, the private keys of a CA belong in a hardware security module or a key service backed by one, so they can sign but never be exported. Decide who may use the key, how use is approved and logged, and how the root’s signing ceremony works. NIST’s key management recommendation is a good reference for key lifetimes and protection (NIST SP 800-57 Part 1).
How do I rotate a root before it expires?
Rotate a root by trusting two roots before you need the second. Ship every firmware with the current root and the next one in the trust store, as in backend_roots_pem above. Years before the current root ends, start issuing server certificates under the next root. Devices that trust both keep connecting through the switch. The trust store itself can be updated through the signed update channel, as long as that channel works with the root the device still trusts. Never let the only root a device trusts reach its end date with the device in the field.
Sources
- DigiCert, TLS certificate lifetimes will officially reduce to 47 days (CA/Browser Forum ballot SC-081): https://www.digicert.com/blog/tls-certificate-lifetimes-will-officially-reduce-to-47-days
- Let’s Encrypt, DST Root CA X3 expiration (September 2021): https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
- Espressif, ESP x509 certificate bundle: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/protocols/esp_crt_bundle.html
- NIST SP 800-57 Part 1 Rev. 5, Recommendation for Key Management: https://csrc.nist.gov/pubs/sp/800/57/pt1/r5/final
- Let’s Encrypt, ending TLS client authentication: https://letsencrypt.org/2025/05/14/ending-tls-client-authentication/
- RFC 5280, certification path validation: https://www.rfc-editor.org/rfc/rfc5280
Frequently asked questions
Does the ESP-IDF certificate bundle solve it?
For connections to third-party HTTPS services, yes, mostly: the bundle contains the common public roots and the server can renew its leaf as often as it wants. The bundle itself is compiled into the firmware, so new roots still need an update. For your own backend, a private root that you control is more predictable.
Is a private root safe?
As safe as its key custody. A root kept offline or in a hardware security module, used only to sign issuing CAs, is hard to steal. A root key in a file on a build server is not. The safety of a root comes from the process around its key.
How long should a root live?
Longer than the devices it anchors, so a device never outlives the only root it trusts. A product designed to run ten years needs a root valid well beyond that, with issuing CAs of a few years below it. A second root ships in the trust store before the first one is needed.
Can I use a public CA for device certificates?
No. Public CAs issue server certificates for domain names under browser rules, including the shrinking lifetimes, and they are removing client authentication: Let’s Encrypt no longer issues certificates with the TLS client authentication usage since 2026. Device certificates belong to a private CA, operated by you or by a service.
What is certificate pinning?
Pinning means the device accepts only one specific certificate or public key instead of any certificate signed by a trusted authority. Pinning a server’s leaf certificate or its intermediate ties the device to that certificate’s lifetime.