Skip to content

Instantly share code, notes, and snippets.

@ryuta-ito
Created July 10, 2016 09:25
Show Gist options
  • Save ryuta-ito/35084199e99c19ed930880d64c552fc2 to your computer and use it in GitHub Desktop.
Save ryuta-ito/35084199e99c19ed930880d64c552fc2 to your computer and use it in GitHub Desktop.
require 'test/unit'
class TestEditControl < Test::Unit::TestCase
server = '172.17.0.2'
cipher_list = ['RC4-MD5', 'ECDHE-RSA-AES128-GCM-SHA256']
cipher_list.each do |cipher|
test cipher do
result = `openssl s_client -connect #{server}:443 -cipher #{cipher} < /dev/null`
assert_not_match /New, \(NONE\), Cipher is \(NONE\)/m, result
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment