Skip to content

Instantly share code, notes, and snippets.

@russau
Last active January 11, 2024 07:59
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 russau/292cde704767f164f3e141628719d144 to your computer and use it in GitHub Desktop.
Save russau/292cde704767f164f3e141628719d144 to your computer and use it in GitHub Desktop.
Cert checker
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