echo | openssl s_client -connect $DOMAIN:443 2>/dev/null | openssl x509 -noout -enddate