Skip to content

Instantly share code, notes, and snippets.

@Oneiroi
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Oneiroi/3533f5cd19d73adff3b2 to your computer and use it in GitHub Desktop.
Save Oneiroi/3533f5cd19d73adff3b2 to your computer and use it in GitHub Desktop.
mysql -se "SHOW STATUS LIKE 'Ssl_cipher_list'" | sed 's/:/\n/g' | sed 's/Ssl_cipher_list\s//g' | while read sspec; do SPEC=`openssl ciphers -v "$sspec" 2>/dev/null | grep -v SSLv3 | awk '{print $1}'`; [[ "$sspec" == "$SPEC" ]] && mysql --ssl-cipher=$sspec -e QUIT 2>/dev/null && echo "$sspec OK"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment