Skip to content

Instantly share code, notes, and snippets.

@ruanbekker
Created May 10, 2017 18:13
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 ruanbekker/aea30a51466e0515d6e38fcb6327c45c to your computer and use it in GitHub Desktop.
Save ruanbekker/aea30a51466e0515d6e38fcb6327c45c to your computer and use it in GitHub Desktop.
Checks SSL Expiry Date with OpenSSL
#!/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