Issue Type: Bug Bug
Assignee: Thomas E Enebo
Created: 08/Aug/12 1:02 AM
Description:

Matrix:

  • JRuby 1.6.7 + Java 1.7.0_05 == success
  • JRuby 1.7.0pre1 + Java 1.7.0_05 == failure
  • JRuby 1.7.0pre2 + Java 1.7.0_05 == failure
  • JRuby 1.7.0pre1 + Java 1.6.0_24 == failure
  • JRuby 1.7.0pre2 + Java 1.6.0_24 == success

Choice examples follow:

% java -version                                 
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (rhel-1.48.1.11.3.el6_2-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

% rvm jruby-1.7.0.preview2 do ruby --1.9 test.rb
OK

And with java 7:

% PATH=$HOME/build/jdk1.7.0_05/bin:$PATH java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)

% PATH=$HOME/build/jdk1.7.0_05/bin:$PATH rvm jruby-1.7.0.preview2 do ruby --1.9 test.rb
OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key:
  initialize at org/jruby/ext/openssl/PKeyRSA.java:278
      (root) at test.rb:6

Code:

#!/usr/bin/ruby

require "openssl"
OpenSSL::X509::Certificate.new(File.read("/tmp/server.crt"))
OpenSSL::SSL::SSLContext.new
OpenSSL::PKey::RSA.new(File.read("/tmp/server.key"), "asdf")
puts "OK"
Project: JRuby
Priority: Major Major
Reporter: Jordan Sissel
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to