Use this when automating certificate issuance and renewal.
Certificate Automation
Certificate automation issues and renews TLS certificates automatically with ACME (Let's Encrypt, certbot, cert-manager) or internal PKI, tracking expiry so certificates never lapse.
1. Certificate automation: ACME, cert-manager, AD CS autoenrolment.
2. Inventory all certificates.
3. Renew early and reload services.
4. Alert on upcoming expiry.
5. Short lifetimes require automation.
expiry approaching → renew → deploy → reload → verify
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The primary procedure is: Request or renew a bounded test certificate, inspect order/authorization state, deploy it to one target, then establish a fresh TLS connection and compare SANs, issuer, validity and fingerprint. Exercise failure-oriented cases such as failed DNS/HTTP challenges, stale DNS propagation, clock skew, rate limits, wrong SAN set, renewed certificate not reloaded and key/certificate mismatch so the test covers failure cases, not only the happy path.
Step 2 Common mistakes Narrow the fault
- Certificates expiring without automation.
Step 3 Where it fails Narrow the fault
Failure analysis for Security Automation → Certificate Automation should follow the path through the components: desired certificate policy → ACME order → authorization/challenge → CA issuance → secret storage → service deployment/reload → endpoint presentation. Tests should include edge cases such as failed DNS/HTTP challenges, stale DNS propagation, clock skew, rate limits, wrong SAN set, renewed certificate not reloaded and key/certificate mismatch. Recovery should preserve order/challenge errors and existing valid certificate, repair the first failed authorization/deployment boundary, avoid needless key churn, then verify the live endpoint chain/fingerprint.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- ACME, certbot, cert-manager.
- Track expiry.
- Reload services after renewal.
certbot renew --dry-run— ACME renewalkubectl get certificate -A— cert-manager- Expiry monitoring for all certificates — alerts
ReferenceWhy it matters1 section · depth on demand
In depth
Certificate automation issues, deploys and renews TLS certificates without manual steps, typically with ACME (Let's Encrypt or an internal ACME CA) or with enterprise CA auto-enrolment. With public certificate lifetimes shrinking, manual renewal is no longer practical.
certbot certonly --webroot -w /var/www/html -d www.example.com --deploy-hook 'systemctl reload nginx'
systemctl list-timers | grep certbot
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Certificate Automation in Security Automation is owned at runtime by the ACME client and certificate authority workflow managing account, order, authorization, challenge, issuance and deployment. The durable intent is certificate policy containing identifiers/SANs, key algorithm, account/CA endpoint, challenge method, renewal window and deployment targets. Reliable automation must carry stable identity across the path: ACME account, order URL, authorization/challenge IDs, certificate serial/fingerprint and target service identity. The consumer-visible target is the certificate/key pair actually presented by each service endpoint after deployment. The key invariants are private keys remain protected, domain control is confirmed for every identifier, renewal happens before expiry, SANs match intent and deployment is atomically verified.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
Store and review certificate policy containing identifiers/SANs, key algorithm, account/CA endpoint, challenge method, renewal window and deployment targets; pin or at least record implementation/model versions and keep environment-specific identity outside reusable logic where possible. The stable identity contract is ACME account, order URL, authorization/challenge IDs, certificate serial/fingerprint and target service identity.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security Automation > Certificate Automation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/info/rfc8555/ · confidence 94%Quick lookup tables
Security Automation → Certificate Automation · operational reference
Context-specific ownership, verification, output and failure-boundary lookup for Security Automation → Certificate Automation.
| Layer | Security Automation → Certificate Automation operational reference |
|---|---|
| Runtime/ownership | ACME/X.509 certificate lifecycle automation · the ACME client and certificate authority workflow managing account, order, authorization, challenge, issuance and deployment |
| Persistent intent | certificate policy containing identifiers/SANs, key algorithm, account/CA endpoint, challenge method, renewal window and deployment targets |
| Verification | Request or renew a bounded test certificate, inspect order/authorization state, deploy it to one target, then establish a fresh TLS connection and compare SANs, issuer, validity and fingerprint. |
| Expected interpretation | All requested identifiers authorize, issuance succeeds with the intended key/policy, the target reloads the new certificate, and an independent TLS client observes the expected certificate before the renewal deadline. |
| Recovery boundary | preserve order/challenge errors and existing valid certificate, repair the first failed authorization/deployment boundary, avoid needless key churn, then verify the live endpoint chain/fingerprint |
Deep reference
Healthy vs suspicious evidence
Output interpretation
At minimum retain account/order IDs, authorization/challenge state, certificate serial/fingerprint, SANs, notBefore/notAfter, renewal attempt, deploy target and live endpoint fingerprint. The useful output makes ambiguity visible, links to the target identity from ACME account, order URL, authorization/challenge IDs, certificate serial/fingerprint and target service identity, and provides enough context to safely decide whether a retry is permitted.