echo | openssl s_client -connect example.org:443 -servername example.org 2>/dev/null | openssl x509 -noout -subject -issuer -dates -ext subjectAltName
curl -vI https://example.org 2>&1 | grep -iE 'subject|issuer|expire|verify|SSL'
- Expired: the date is past: renewal failed (read the renewer's logs).
- Name mismatch: the name you typed is not in the certificate's subjectAltName (wrong site on that IP, or SNI not sent).
- Unable to verify / unknown issuer: the server did not send the intermediate certificate, or the client lacks the root.
- Renewal failing with ACME: the name must resolve to this server and port 80 or 443 must be reachable from the internet; check firewalls and rate limits.
- Works in the browser but not in a script: old CA bundle, or a client without SNI.
- Wrong system clock also breaks TLS: check
timedatectl.