SSL domain expiry - bulk domain list

Hi,

This is where you need to check the SSL certificate validity for large number of domains.

domainlist.txt - The file which stores the list of domains that we need to check the SSL expiry. In this file, make sure that only one domain name is in each row.

i - The variable used here, for each iteration, each domain is checked.


for i in `cat domainlist.txt` ;
do echo "++++++++++++++++ $i ++++++++++++++++" ;
echo | openssl s_client -servername NAME -connect $i:443 2>/dev/null | openssl x509 -noout -dates ; echo --------------------------------------- ;
done


Comments

Popular posts from this blog

Logical volume vmxxxx_img is used by another device - Error on LVM removal

Open VZ cheat Sheet

Cheat sheet for Hardware RAID health check - Megaraid, Adaptec, 3wareraid and HPraid.