Posts

Showing posts from April, 2019

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