echo | openssl s_client -connect example.org:443 -servername example.org 2>/dev/null | openssl x509 -noout -subject -issuer -dates -ext subjectAltName
openssl s_client -connect example.org:443 -servername example.org -showcerts </dev/null
echo | openssl s_client -connect example.org:443 -servername example.org 2>/dev/null | openssl x509 -noout -enddate
openssl x509 -in cert.pem -noout -text | less
Check three things: the names (subjectAltName) include the host you use, the dates are valid, and the chain is complete (the server must send intermediates). -servername matters because one IP may serve many sites (SNI). Automatic renewal (Caddy, certbot) should leave plenty of days; alert at 14 days left.