Skip to content

Instantly share code, notes, and snippets.

@bxm
bxm / ssl_dates.sh
Last active Sep 18, 2019
View SSL validity dates for a list of servers
View ssl_dates.sh
for SERVER in server{1..3}.example.com ; do
echo -e "\n${SERVER}\n"
echo | timeout 1s openssl s_client -connect ${SERVER}:443 2>/dev/null \
| openssl x509 -noout -dates 2>/dev/null
done
You can’t perform that action at this time.