Skip to content

Instantly share code, notes, and snippets.

@reilee
Created April 7, 2020 07:42
Show Gist options
  • Save reilee/fc6743e87f4b9b136f288ef6b508604c to your computer and use it in GitHub Desktop.
Save reilee/fc6743e87f4b9b136f288ef6b508604c to your computer and use it in GitHub Desktop.
CLI: check SSL expiration
TARGET_DOMAIN='www.example.com'
echo | openssl s_client -connect ${TARGET_DOMAIN}:443 2> /dev/null | openssl x509 -noout -enddate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment