Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

exception for X509 signing #16

Open
jingweno opened this Issue · 0 comments

1 participant

@jingweno

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.