-
Example to check a list of certs where each line gives connection, from which the servername can be extracted:
services.txt
geomar.de:389 ldap geomar.de:636 mail.geomar.de:143 imap mail.geomar.de:465 mail.geomar.de:587 smtp mail.geomar.de:993 auv-store.geomar.de:443 dm-apps-node0.geomar.de:443 dm-apps-node1.geomar.de:443 dm-handle-node1.geomar.de:8000 dm-mediacube.geomar.de:443 dm-mediacube-xl.geomar.de:443 dm-medialib-tapes.geomar.de:443 git.geomar.de:443 git.geomar.de:11411 mattermost.geomar.de:443 pages.geomar.de:443 database.geomar.de:5432 postgres dm-pgsql-node1.geomar.de:5432 postgres
scriptlet to check expiration date for each of the services:
while read -r line; do echo -n "${line%:*} " && ssl_check_expire.sh ${line%:*} $line done < services.txt
Edited by Dirk Sarpe
Please register or sign in to comment