Skip to content

Instantly share code, notes, and snippets.

@mhou1981
Last active January 4, 2018 19:16
Show Gist options
  • Save mhou1981/163f5ea3b6358d9d2a23f919e21e6c12 to your computer and use it in GitHub Desktop.
Save mhou1981/163f5ea3b6358d9d2a23f919e21e6c12 to your computer and use it in GitHub Desktop.
Check SSL Certificate Creation and Expiration Date
#!/bin/bash
echo | openssl s_client -servername ${NAME} -connect ${HOST:-localhost}:${PORT:-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