Skip to content

Instantly share code, notes, and snippets.

@sokil
Last active April 25, 2017 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sokil/cbc328d8debad75a2633315d9b233a27 to your computer and use it in GitHub Desktop.
Save sokil/cbc328d8debad75a2633315d9b233a27 to your computer and use it in GitHub Desktop.
SSL expiration check
#!/bin/bash
echo | openssl s_client -servername server.com -connect server.com: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