Skip to content

Instantly share code, notes, and snippets.

@doofusdavid
Created June 25, 2020 18:32
Show Gist options
  • Save doofusdavid/2c9eb9f73fa097b0ed29ee0fe746ed68 to your computer and use it in GitHub Desktop.
Save doofusdavid/2c9eb9f73fa097b0ed29ee0fe746ed68 to your computer and use it in GitHub Desktop.
Check SSL Cert Expiration Date (usage sh checkCertExpire.sh domain.colostate.edu)
DOMAIN=$1
echo | openssl s_client -servername $DOMAIN -connect $DOMAIN:443 2>/dev/null|openssl x509 -noout -dates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment