Pcornel
Automation · Security Automation

Certificate Automation

Cheat sheet · https://pcornel.dk/topic.php?topic=5759

Back to the Topic

Answer

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.

Remember

  • ACME, certbot, cert-manager.
  • Track expiry.
  • Reload services after renewal.

First checks

  • certbot renew --dry-run — ACME renewal
  • kubectl get certificate -A — cert-manager
  • Expiry monitoring for all certificates — alerts

Verify in this order

expiry approaching → renew → deploy → reload → verify

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Security Automation → Certificate Automation · operational reference

LayerSecurity Automation → Certificate Automation operational reference
Runtime/ownershipACME/X.509 certificate lifecycle automation · the ACME client and certificate authority workflow managing account, order, authorization, challenge, issuance and deployment
Persistent intentcertificate policy containing identifiers/SANs, key algorithm, account/CA endpoint, challenge method, renewal window and deployment targets
VerificationRequest 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 interpretationAll 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 boundarypreserve 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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5759

Confirmation

Confirm action

Continue?