Simple Script to check sha certificate expiration date

I came across this problem over the weekend. I needed to know quickly the expiry date for our new SHA-2 certificate. After some googleing I patched together this script. OPENSSL=”/usr/bin/openssl” HOST=$1 PORT=$2 if [ “$HOST” == “” ]; then echo ‘Usage: check.sh hostname.com fi if [ “$PORT” == “” ]; then PORT=”443″ fi CMD=`echo “”…
Read more