Created
April 7, 2020 07:42
-
-
Save reilee/fc6743e87f4b9b136f288ef6b508604c to your computer and use it in GitHub Desktop.
CLI: check SSL expiration
This file contains 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
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