Skip to content

Instantly share code, notes, and snippets.

@Splat
Created January 5, 2018 20:26
Show Gist options
  • Save Splat/07a2e784ecff8b08475d9720db568e55 to your computer and use it in GitHub Desktop.
Save Splat/07a2e784ecff8b08475d9720db568e55 to your computer and use it in GitHub Desktop.
SSL Begin and End Dates

This script enables checking of dates on a certificate. Usually tied together with some form of alerting when within a month ot week of renewal needs.

echo | openssl s_client -connect HOSTNAME:PORT 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