No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
!/bin/bash | !/bin/bash | ||
Declare the string array<br> | |||
<code> | |||
SitesArray=("www.pladder.nl" "www.lostlemon.nl" "www.nvsi.nl" "www.lostlemon.nl" "www.loketschuldhulpverlening.nl" "www.berekenuwrechtplus.nl" "www.e-kracht.nl" "www.erow.nl" "prod.jongerencentraal.nl" "lldorado.lostlemon.nl" "www.e-inwoner.nl" "www.toolkiteformulieren.nl" "www1.nvsi.nl" "www2.nvsi.nl" "yasmin.pladder.nl" "vpn01.lostlemon.nl") | SitesArray=("www.pladder.nl" "www.lostlemon.nl" "www.nvsi.nl" "www.lostlemon.nl" "www.loketschuldhulpverlening.nl" "www.berekenuwrechtplus.nl" "www.e-kracht.nl" "www.erow.nl" "prod.jongerencentraal.nl" "lldorado.lostlemon.nl" "www.e-inwoner.nl" "www.toolkiteformulieren.nl" "www1.nvsi.nl" "www2.nvsi.nl" "yasmin.pladder.nl" "vpn01.lostlemon.nl") | ||
</code> | |||
Print array values in lines<br> | |||
<code> | |||
echo "-----------------------------------------------------------------------------------------------------" | echo "-----------------------------------------------------------------------------------------------------" | ||
for val1 in ${SitesArray[*]}; do | for val1 in ${SitesArray[*]}; do | ||
Line 11: | Line 14: | ||
echo " " | echo " " | ||
done | done | ||
</code> | |||
[[Category:Bash]] | [[Category:Bash]] | ||
[[Category:SSL]] | [[Category:SSL]] |
Revision as of 20:58, 15 May 2020
!/bin/bash
Declare the string array
SitesArray=("www.pladder.nl" "www.lostlemon.nl" "www.nvsi.nl" "www.lostlemon.nl" "www.loketschuldhulpverlening.nl" "www.berekenuwrechtplus.nl" "www.e-kracht.nl" "www.erow.nl" "prod.jongerencentraal.nl" "lldorado.lostlemon.nl" "www.e-inwoner.nl" "www.toolkiteformulieren.nl" "www1.nvsi.nl" "www2.nvsi.nl" "yasmin.pladder.nl" "vpn01.lostlemon.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