(Created page with "<code> #!/bin/bash #Declare the string array SitesArray=("www.pladder.nl" "www.lostlemon.nl" "www.nvsi.nl" "www.lostlemon.nl" "www.loketschuldhulpverlening.nl" "www.bereken...") |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Use this helpful bash script to check out information for multiple domains. | |||
!/bin/bash | |||
Declare the string array<br> | |||
<code> | |||
SitesArray=("www.domain_1.nl" "www.domain_2.nl" "www.domain_3.nl") | |||
</code> | |||
Print array values in lines<br> | |||
<code> | <code> | ||
echo "-----------------------------------------------------------------------------------------------------" | echo "-----------------------------------------------------------------------------------------------------" | ||
for val1 in ${SitesArray[*]}; do | for val1 in ${SitesArray[*]}; do | ||
Line 13: | Line 17: | ||
done | done | ||
</code> | </code> | ||
[[Category:Bash]] | [[Category:Bash]] | ||
[[Category:SSL]] | [[Category:SSL]] |
Latest revision as of 22:36, 16 October 2021
Use this helpful bash script to check out information for multiple domains.
!/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