Check certificate details linux

Show cert expiry and subject for a live TLS endpoint

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