snippets/bash/certs.sh
2024-10-03 01:47:38 +02:00

7 lines
191 B
Bash

#!/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