I manage a lot of websites and I tend to lose track of when their various SSL certs expire. Here is a quick onliner that I use to connect to each site and grab the expiration date off its cert.
echo “” | openssl s_client -connect www.cyborgworkshop.org:443 2>/dev/null | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ |openssl x509 -text|grep ” After : ”