Last active
January 17, 2023 23:12
-
-
Save danielscarvalho/03c74cc0623527ae436ffec4d8e0aaeb to your computer and use it in GitHub Desktop.
Check website SSL/TLS cryptography key expiration date
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
#!/usr/bin/bash | |
curl -vs https://www.google.com/ 2>&1 | grep "expire date" | cut -c17-50 | |
# Result sounds like: Apr 16 15:52:21 2023 GMT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment