Created
July 10, 2016 09:25
-
-
Save ryuta-ito/35084199e99c19ed930880d64c552fc2 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
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