snippets/bash/certs.sh

7 lines
191 B
Bash
Raw Permalink Normal View History

2024-10-02 23:47:38 +00:00
#!/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 </dev/null | grep "NotAfter" | head -n 1
done