#!/bin/bash DOMAINS="domain.com example.com pepe.com" for domain in $DOMAINS; do echo $domain openssl s_client -connect $domain:443 2>/dev/null