Created
May 10, 2017 18:13
-
-
Save ruanbekker/aea30a51466e0515d6e38fcb6327c45c to your computer and use it in GitHub Desktop.
Checks SSL Expiry Date with OpenSSL
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
#!/bin/bash | |
SERVER_NAME="" | |
echo | openssl s_client -servername $SERVER_NAME -connect $SERVER_NAME: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