No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
Declare the string array<br> | Declare the string array<br> | ||
<code> | <code> | ||
SitesArray=("www. | SitesArray=("www.domain_1.nl" "www.domain_2.nl" "www.domain_3.nl") | ||
</code> | </code> | ||
Revision as of 21:00, 15 May 2020
!/bin/bash
Declare the string array
SitesArray=("www.domain_1.nl" "www.domain_2.nl" "www.domain_3.nl")
Print array values in lines
echo "-----------------------------------------------------------------------------------------------------"
for val1 in ${SitesArray[*]}; do
echo "Information for $val1"
openssl s_client -showcerts -connect $val1:443 2>/dev/null < Q.txt| openssl x509 -noout -issuer -subject -dates
echo " "
done