Skip to content

Instantly share code, notes, and snippets.

@jjtroberts
Created October 12, 2022 22:05
Show Gist options
  • Save jjtroberts/3e500b66061168e6ceac02883c4304b3 to your computer and use it in GitHub Desktop.
Save jjtroberts/3e500b66061168e6ceac02883c4304b3 to your computer and use it in GitHub Desktop.
Verify SSL certificate expiration dates and sn
#!/usr/bin/env bash
DOMAIN=$1
echo | openssl s_client -servername $1 -connect $1:443 2>/dev/null | openssl x509 -noout -dates
echo | openssl s_client -servername $1 -connect $1:443 | grep $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment