Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SSL check from list
#!/bin/bash
output="/path/to/log.file"
input="/path/to/websites.list"
while IFS= read -r website
do
echo "$website" >> $output
openssl s_client -servername $website -connect $website:443 2>/dev/null | openssl x509 -noout -dates | grep After | cut -d"=" -f2 >> $output
done < "$input"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.