Peer verification failing on net/https with "unknown bit string argument" -------------------------------------------------------------------------
Key: JRUBY-3521 URL: http://jira.codehaus.org/browse/JRUBY-3521 Project: JRuby Issue Type: Bug Components: OpenSSL Affects Versions: JRuby-OpenSSL 0.4 Environment: Linux (none) 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 (Ubuntu 8.04) java version "1.6.0_07" jruby 1.2.0 jruby-openssl 0.4 OpenSSL 0.9.8g 19 Oct 2007 Reporter: Michael Rykov Fix For: JRuby-OpenSSL 0.5 Attachments: cacert.pem, fetch.rb Making an https request with peer verification causes the following error: {code} $ jruby ./fetch.rb /home/mrykov/test/jruby-1.2.0/lib/ruby/gems/1.8/gems/jruby-openssl-0.4/lib/openssl/ssl.rb:69:in `post_connection_check': 2.5.29.15 =  : unknown bit string argument (OpenSSL::X509::ExtensionError) from /home/mrykov/test/jruby-1.2.0/lib/ruby/1.8/net/http.rb:593:in `connect' from /home/mrykov/test/jruby-1.2.0/lib/ruby/1.8/net/http.rb:557:in `do_start' from /home/mrykov/test/jruby-1.2.0/lib/ruby/1.8/net/http.rb:546:in `start' from ./fetch.rb:9 $ {code} The same code works with no problems using MRI on the problematic environment and using jRuby on the following system: MacOSX 10.5.6 java version "1.5.0_16" jruby 1.2.0 jruby-openssl 0.4 OpenSSL 0.9.7l 28 Sep 2006 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email