Notes on TLS certificates
Certificates are one of those things that work silently until they do not. A few notes I keep coming back to:
# issue
acme.sh --issue -d example.com --webroot /var/www/acme
# install and reload
acme.sh --install-cert -d example.com \
--key-file /etc/ssl/example/key.pem \
--fullchain-file /etc/ssl/example/fullchain.pem \
--reloadcmd "systemctl reload nginx"
Keep the ACME challenge directory served over plain HTTP. If the server answers HTTP with a redirect to HTTPS before the challenge is matched, renewals fail quietly weeks later.
Check expiry from a second machine, not the server itself — that catches clock drift and firewall mistakes in one go.