Skip to content
  • Dirk Sarpe @dirk-sarpe ·

    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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment