Create a new article
Write your page title here:
We currently have 28 articles on PhenixOps. Type your article name above or click on one of the titles below and start writing!


Running a for loop over an array

Use this helpful bash script to check out information for multiple domains.


Declare the string array
SitesArray=("" "" "")

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