Revoke a certificate that must be invalidated (e.g. due to key compromise) using certbot revoke, then cleanly remove its local lineage with certbot delete, understanding revoke and delete are separate, non-automatic steps.

domain: eff-certbot.readthedocs.io · 8 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Identify the certificate's name (often the primary domain) with: certbot certificates
  2. Revoke it by name: sudo certbot revoke --cert-name example.com — or by path: sudo certbot revoke --cert-path /etc/letsencrypt/live/example.com/cert.pem
  3. If the cert was originally obtained with --staging, --test-cert, or a non-default --server, you must pass that same flag to the revoke command, since ACME accounts/certs are scoped per environment.
  4. Optionally state why it's being revoked with --reason (values: unspecified [default], keycompromise, affiliationchanged, superseded, cessationofoperation): sudo certbot revoke --cert-name example.com --reason keycompromise
  5. If you have the certificate's private key but not the original ACME account key, revoke using it instead: certbot revoke --cert-path /etc/letsencrypt/live/example.com/cert.pem --key-path /etc/letsencrypt/live/example.com/privkey.pem
  6. After revocation, Certbot will (by default) interactively ask whether to also delete the certificate; if you decline or run non-interactively, the lineage stays on disk and 'certbot renew' will keep trying (and failing) to renew it, so clean it up.
  7. Before deleting, check nothing still references the live/ path in your web/mail server configs, e.g.: sudo bash -c 'grep -R live/example.com /etc/{nginx,httpd,apache2}' — remove those references and reload the affected service(s) first, then delete: sudo certbot delete --cert-name example.com
  8. Official docs: https://eff-certbot.readthedocs.io/en/stable/using.html

Known gotchas

Give your agent this knowledge — and 17,300+ more routes

One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans