Created
January 31, 2018 20:18
-
-
Save calebcase/d5664c8c399215058e419df92c942f13 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 | |
set -euo pipefail | |
domain=$1 | |
ciphers=$(openssl ciphers | tr ':' ' ') | |
for cipher in $ciphers; do | |
if openssl s_client -servername "$domain" -connect "$domain":443 -cipher "$cipher" <<<'' &>/dev/null; then | |
printf '%s ok\n' "$cipher" | |
else | |
printf '%s FAILURE\n' "$cipher" | |
fi | |
done | column -t -s ' ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment