Lesson 4 of 9 · 18m
Certificate Lifecycle and Inventory
Certificates are production assets with owners, dependencies, renewal windows, and blast radius — treat expiration as an operations failure, not a surprise.
Every experienced operator has a certificate expiration story. Mine involves a payment queue, a load balancer nobody owned, and a certificate monitored by three systems that each assumed another system was watching the right endpoint. The certificate did exactly what it was designed to do. Our inventory did not.
A certificate is an asset, not a file
The useful inventory record is operational metadata, not a copy of the PEM:
name: api.payments.sudosecurity.org
issuer: SudoSecurity Services CA G2
consumer: envoy-edge
owner: payments-platform
renewal_system: cert-manager
renewal_window_days: 30
deploy_mechanism: kubernetes-secret
dependencies:
- edge ingress
- mobile api clients
- partner webhook validatorsIf you cannot answer where is this certificate consumed and what breaks if it changes, you do not have an inventory — you have a directory of files.
Lifecycle stages
A production certificate moves through request, issuance, deployment, validation in service, renewal or rotation, and retirement. Skipping validation after deployment is how teams discover that the secret updated but the server never reloaded it. Skipping retirement is how abandoned certificates stay trusted after the service owner leaves.
Expiration monitoring is necessary and insufficient
Monitor three signals: days until expiry, renewal job health, and the certificate actually presented on the wire. The third one matters. Automation can renew into a secret the ingress controller cannot read while production keeps serving the old certificate.
echo | openssl s_client -connect api.example:443 -servername api.example 2>/dev/null | openssl x509 -noout -enddate -subject -issuerOwnership beats central heroics
A central security team can operate the CA and standards, but every certificate needs a service owner with paging responsibility. Ownership means renewal automation, deployment permission, rollback access, and authority to deprecate old names.
Rotation should happen often enough that it is boring. If rotating a certificate requires a maintenance window, your architecture is telling you that reloads, trust distribution, or client behavior are not understood.
Field notes
- Expiry alerts should page the service owner, not a shared security inbox.
- Track issuance and deployment separately; they fail in different ways.
- Never let renewal depend on a human remembering DNS validation steps.
- Certificates embedded in mobile apps, devices, or partner systems have a much longer blast radius than web endpoints.
Was this lesson helpful?