969f1306461a0420ad872004e5b36aefe0edb8ef
lrnassar
  Tue Jul 5 16:53:38 2022 -0700
Adding servername to make sure domains running on same machine are properly caught, this fixed cells.edu not being read as genome.ucsc.edu. Refs email 'Site Certificates expiring in < 30 days'

diff --git src/utils/qa/checkHTTPS src/utils/qa/checkHTTPS
index 316f84a..c9cfae2 100755
--- src/utils/qa/checkHTTPS
+++ src/utils/qa/checkHTTPS
@@ -25,27 +25,27 @@
 hgdownload-test.gi.ucsc.edu \
 redmine.soe.ucsc.edu \
 gi.ucsc.edu \
 hgwdev.gi.ucsc.edu \
 hgwalpha.soe.ucsc.edu \
 hgwbeta.soe.ucsc.edu \
 hgwbeta.cse.ucsc.edu \
 hgwbeta-public.soe.ucsc.edu \
 api.genome.ucsc.edu \
 apibeta.soe.ucsc.edu \
 hgw0.soe.ucsc.edu \
 hgw1.soe.ucsc.edu \
 hgw2.soe.ucsc.edu \
 redmine.soe.ucsc.edu
 do 
-	expiryDate=$(echo -n | openssl s_client -servername app.domain.com -connect $site:443 2>/dev/null | openssl x509 -noout -dates | grep After | sed -e "s/23:59:59\|\=\|notAfter\|GMT\|//g")
+       expiryDate=$(echo -n | openssl s_client -servername $site -connect $site:443 2>/dev/null | openssl x509 -noout -dates | grep After | sed -e "s/23:59:59\|\=\|notAfter\|GMT\|//g")
        expiryEpoch=$(date -d"$expiryDate" +%s)
         if (("$wiggleRoom" > "$expiryEpoch"))
         then
             output="$output$site certificate expires on $expiryDate\n"
         fi
 done
 
 if [ -n "$output" ]
 then
     echo -e "$output" | mail -s "Site Certificates expiring in < 30 days" -S 'from=Reply All Includes All QA <browser-qa@soe.ucsc.edu>' "$recipients"
 fi