Issue Type: Bug Bug
Affects Versions: JRuby-OSSL 0.7.7
Assignee: Unassigned
Attachments: debug.key
Components: OpenSSL, Windows
Created: 02/Jun/12 4:30 PM
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

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]
Project: JRuby
Priority: Major Major
Reporter: John Weir
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