---
title: "Using short-lived certificates to protect TLS secrets"
description: "Meta now limits TLS private key exposure on its edge to 10 days by rotating short-lived certificates daily, after rejecting CRL/OCSP revocation (latency, failure modes), remote signing from datacenters (vulnerable to backbone and datacenter outages) and delegated credentials (insufficient browser support)."
url: "https://swe.quest/articles/using-short-lived-certificates-to-protect-tls-secrets-b95eb80ecde3a8e1"
canonical: "https://engineering.fb.com/2023/08/07/security/short-lived-certificates-protect-tls-secrets/"
source: "Meta Engineering"
published: "2023-08-07"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["cryptography","security","cdn-edge","deployment"]
---

# Using short-lived certificates to protect TLS secrets

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-08-07, 7 min read, Case study. Original: [https://engineering.fb.com/2023/08/07/security/short-lived-certificates-protect-tls-secrets/](https://engineering.fb.com/2023/08/07/security/short-lived-certificates-protect-tls-secrets/)

## Summary

Meta now limits TLS private key exposure on its edge to 10 days by rotating short-lived certificates daily, after rejecting CRL/OCSP revocation (latency, failure modes), remote signing from datacenters (vulnerable to backbone and datacenter outages) and delegated credentials (insufficient browser support). Certificates are issued months ahead from third-party CAs and moved from a locked-down secret store to an edge-only store just 10 days before expiry, which keeps CA issuance off the critical path and provides ready backup certs for emergency rotation. A ConfigBuilder groups certs into expiry-dated bundles, validates them, and rolls them out in stages: canary, then about 100 machines, then the full fleet after a day of baking. The OffloadService signs with both old and new keys during rotation, and caching plus staggered fetches keep daily rotation from overloading the secret store.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)
- [CDN & edge](https://swe.quest/tags/cdn-edge.md) (Infrastructure)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)

## Prerequisites

- TLS handshake basics ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))
- X.509 certificates and CAs
- L7 load balancers

## Keywords

TLS, short-lived certificates, Proxygen, OffloadService, OCSP, delegated credentials, Meta

## Related posts

- [How CDNs Generate Certificates](https://swe.quest/articles/how-cdns-generate-certificates-05707ebaaeaf2273.md): Fly.io · 2020-06-25 · Medium · 10 min read · Cryptography, CDN & edge, Networking, Security
  CDNs like Fly obtain Let's Encrypt certificates for customer domains using the ACME tls-alpn-01 challenge, which needs neither DNS access nor port 80.
- [How Meta enables de-identified authentication at scale](https://swe.quest/articles/how-meta-enables-de-identified-authentication-at-scale-aba1c4d5d1b717ac.md): Meta Engineering · 2022-03-30 · Medium · 8 min read · Privacy, Cryptography, Identity & auth, Multi-tenancy, Scaling
  Meta's Anonymous Credential Service (ACS) authenticates clients without user IDs by splitting authentication into token issuance over an authenticated channel and unlinkable token redemption over an anonymous channel, built on VOPRFs and blind signatures with an HMAC over business data keyed by a shared secret.
- [Our Response To The eMudhra Key Disclosure Incident](https://swe.quest/articles/our-response-to-the-emudhra-key-disclosure-incident-6a668fcaaa15ef20.md): The Go Blog · 2026-10-26 · Easy · 6 min read · Cryptography, Go, Incidents & postmortems, Security
  Weak private keys on eight eMudhra-issued intermediate certificates made them recoverable in microseconds, letting attackers mint trusted TLS certificates for any domain.
- [Enforcing encryption at scale](https://swe.quest/articles/enforcing-encryption-at-scale-123c858612356c4f.md): Meta Engineering · 2021-07-12 · Hard · 7 min read · Linux, Security, Cryptography, Networking
  Meta enforces TLS on internal service traffic with SSLWall, a host-level daemon plus eBPF programs that detect and cut off plaintext connections, chosen over L7 firewalls to keep the blast radius small and allow fine-grained rollout.
- [How Meta built large-scale cryptographic monitoring](https://swe.quest/articles/how-meta-built-large-scale-cryptographic-monitoring-007f3fb06e949eb9.md): Meta Engineering · 2024-11-12 · Medium · 10 min read · Cryptography, Observability, Scaling, C & C++
  Meta logs every operation in FBCrypto, its managed cryptographic library, without sampling by aggregating identical events into per-event counts in an in-process buffer and flushing them periodically to Scribe, with data landing in Scuba and Hive.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
