Created
October 15, 2014 19:54
-
-
Save scuderiaf1/c5be0e6745d8b9834b12 to your computer and use it in GitHub Desktop.
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 | |
ret=$(echo Q | timeout 5 openssl s_client -connect "${1-`hostname`}:${2-443}" -ssl3 2> /dev/null) | |
if echo "${ret}" | grep -q 'Protocol.*SSLv3'; then | |
if echo "${ret}" | grep -q 'Cipher.*0000'; then | |
echo "SSL 3.0 disabled" | |
else | |
echo "SSL 3.0 enabled" | |
fi | |
else | |
echo "SSL disabled or other error" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://access.redhat.com/articles/1232123