Skip to content

Instantly share code, notes, and snippets.

@mrpatrick
Created December 18, 2012 19:02
Show Gist options
  • Save mrpatrick/4330894 to your computer and use it in GitHub Desktop.
Save mrpatrick/4330894 to your computer and use it in GitHub Desktop.
Get expiration date date of SSL Cert from website
# 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