Created
February 27, 2020 17:56
-
-
Save agustik/e8104875c29170f2bd88300cba53c0e4 to your computer and use it in GitHub Desktop.
test ssl/tls version on server
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 | |
server=$1 | |
for version in ssl1 tls1 tls1_1 tls1_2 tls1_3; do | |
echo "Testing $version on $server"; | |
echo | openssl s_client -connect $server:443 -$version > /dev/null 2> /dev/null; | |
o=$? | |
if [[ "$o" == "0" ]]; then | |
echo "$version is supported"; | |
else | |
echo "$version is NOT supported"; | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment