Batch cert expiry scan troubleshooting

Loop many hosts to print notAfter dates; pipe to sort for soonest expiry

for h in $(cat hosts.txt); do echo -n "$h "; echo | openssl s_client -connect $h:443 -servername $h 2>/dev/null | openssl x509 -noout -enddate; done
more troubleshooting all 32 commands →