jruby/jruby-ossl — Issue #16: exception for X509 signing
Author: jingweno
Created: 2012-02-14 00:46:08+00:00
State: open

Hi,

i am getting some problems with OpenSSL::X509 in #jruby, I have a X509 request and a RSA, I am trying to sign the cert with the RSA and got exceptions:
>> r.class
=> OpenSSL::X509::Request
>> k.class
=> OpenSSL::PKey::RSA
>> r.sign(k, OpenSSL::Digest::SHA256.new)
Java::JavaLang::NullPointerException:
from org.jruby.RubyNumeric.other2long(RubyNumeric.java:205)
from org.jruby.RubyNumeric.num2long(RubyNumeric.java:200)
from org.jruby.RubyNumeric.fix2int(RubyNumeric.java:269)
from org.jruby.ext.openssl.Request.sign(Request.java:276)
from org.jruby.ext.openssl.Request$i$2$0$sign.call(Request$i$2$0$sign.gen:65535)