jruby-openssl
jruby-openssl copied to clipboard
OpenSSL::SSL::SSLSocket#verify_result returns wrong result for self-signed certs
From http://jira.codehaus.org/browse/JRUBY-7049
See the following tests from Celluloid::IO https://github.com/celluloid/celluloid-io/blob/master/spec/celluloid/io/ssl_socket_spec.rb#L105 On MRI, these return OpenSSL::X509::V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT as expected. On JRuby, this returns 1, which does not seem to be even valid. (Note: this is not returning V_OK, so at least that much should be good)