Created
December 18, 2012 19:02
-
-
Save mrpatrick/4330894 to your computer and use it in GitHub Desktop.
Get expiration date date of SSL Cert from website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get expiration date date of SSL Cert from website | |
echo '' | openssl s_client -connect www.avatarnewyork.com:443 2>>/dev/null | openssl x509 -dates | grep "notAfter" | cut -d= -f 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment