Created
June 25, 2018 20:25
-
-
Save philcryer/5ce6746b1ec8487196d7e897425ee526 to your computer and use it in GitHub Desktop.
Quickly query a domain's SSL configuration and describe what SSL Ciphers it accepts.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "No fqdn given to check, try again (ie- $0 yahoo.com)" | |
exit 1 | |
fi | |
for v in ssl2 ssl3 tls1 tls1_1 tls1_2; do | |
for c in $(openssl ciphers 'ALL:eNULL' | tr ':' ' '); do | |
openssl s_client -connect ${1}:443 \ | |
-cipher $c -$v < /dev/null > /dev/null 2>&1 && echo -e "$v:\t$c" | |
done | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment