Last active
January 11, 2024 07:59
-
-
Save russau/292cde704767f164f3e141628719d144 to your computer and use it in GitHub Desktop.
Cert checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for domain in labsportal.net guacz-us-west-2.labsportal.net \ | |
guacz-ap-southeast-2.labsportal.net \ | |
guacz-eu-central-1.labsportal.net \ | |
guacz-ap-south-1.labsportal.net | |
do | |
echo "Domain: ${domain}" | |
echo | openssl s_client -connect sub.${domain}:443 2>&1 | openssl x509 -startdate -enddate -noout 2>&1 | grep -E 'notBefore|notAfter' | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment