Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JRuby-OSSL 0.7.7
-
Fix Version/s: JRuby 1.7.4
-
Labels:None
-
Environment:jruby 1.6.7.2 (ruby-1.9.2-p312) (2012-05-01 26e08ba) (Java HotSpot(TM) Client VM 1.6.0_32) [Windows XP-x86-java]
-
Number of attachments :
Description
Decrypting a private x509 key always fails.
OpenSSL::PKey::RSA.new File.read('debug.key'), 'test'
errors with
OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key:
initialize at org/jruby/ext/openssl/PKeyRSA.java:278
The key decrypts successfully on OS X and Ubuntu 10.0.4
I've attached the sample key, created with
openssl genrsa -des3 -out debug.key 1024