7 lines
191 B
Bash
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
|