TLS: check certificate expiry with openssl

The browser does not always show the full chain conveniently; openssl is faster in a runbook.

echo | openssl s_client -servername example.com -connect example.com:443 2>/dev/null | openssl x509 -noout -subject -issuer -dates

Verify the result

notAfter should be expected, and issuer should be correct.