diff options
-rw-r--r-- | test/openssl/test_ssl.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index d1281c116a..6e9078dace 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -1181,7 +1181,12 @@ end start_server(OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => conf_proc) do |server, port| ciphers.each do |cipher, ephemeral| ctx = OpenSSL::SSL::SSLContext.new - ctx.ciphers = cipher + begin + ctx.ciphers = cipher + rescue OpenSSL::SSL::SSLError => e + next if /no cipher match/ =~ e.message + raise + end server_connect(port, ctx) do |ssl| if ephemeral assert_instance_of(ephemeral, ssl.tmp_key) |