Cert Expiry Dates – Quick CLI Method

I often need to quickly see if a cert is going to expire — I’ve got nice monitoring scripts too, but something that I can run from the command line right now

echo -n Q | openssl s_client -connect $HOST:$PORT | openssl x509 -noout -dates

Leave a Reply

Your email address will not be published. Required fields are marked *