Skip to content

Instantly share code, notes, and snippets.

@calebcase
Created January 31, 2018 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebcase/d5664c8c399215058e419df92c942f13 to your computer and use it in GitHub Desktop.
Save calebcase/d5664c8c399215058e419df92c942f13 to your computer and use it in GitHub Desktop.
#!/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