Skip to content

Instantly share code, notes, and snippets.

@russau
Last active Nov 29, 2020
Embed
What would you like to do?
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 | openssl x509 -startdate -noout | grep notBefore
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment