Skip to content

Instantly share code, notes, and snippets.

@danielscarvalho
Last active January 17, 2023 23:12
Show Gist options
  • Save danielscarvalho/03c74cc0623527ae436ffec4d8e0aaeb to your computer and use it in GitHub Desktop.
Save danielscarvalho/03c74cc0623527ae436ffec4d8e0aaeb to your computer and use it in GitHub Desktop.
Check website SSL/TLS cryptography key expiration date
#!/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