ACME Certificate Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=6272
Answer
ACME (RFC 8555) is the protocol a client uses to prove control of a domain to a certificate authority and obtain and renew TLS certificates automatically. Let's Encrypt is the best-known ACME CA; certbot, acme.sh and Caddy are common clients.
Remember
HTTP-01 needs port 80 and no wildcards; DNS-01 supports wildcards and private servers but needs DNS API credentials; TLS-ALPN-01 works on 443. Renew automatically, reload the web server after renewal, and monitor expiry yourself — Let's Encrypt no longer sends expiry emails.
First checks
certbot certificates— managed certificates, domains, expiry.certbot renew --dry-run— renewal works against the staging CA.systemctl list-timers | grep -i certbot— renewal timer exists.echo | openssl s_client -connect <host>:443 -servername <host> 2>/dev/null | openssl x509 -noout -dates -issuer— what is actually served.dig +short CAA <domain>— which CAs may issue.
Commands
openssl s_client
Verify in this order
ACME account → new order for names → authorization per name → challenge (HTTP-01 / DNS-01 / TLS-ALPN-01) validated by the CA → finalize with CSR → certificate download → install + reload → renew before expiry
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6272