![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.2 |
Assignee:
|
Unassigned |
Components:
|
OpenSSL |
Created:
|
06/Feb/13 10:04 AM
|
Description:
|
The following code snippet
priv = OpenSSL::PKey::RSA.new(2048)
pub = priv.public_key
pub.to_pem
generates a header/footer of
----BEGIN RSA PUBLIC KEY----
...
----END RSA PUBLIC KEY----
when run under JRuby while PEMs for public keys generated with MRI or openssl directly contain
----BEGIN PUBLIC KEY----
...
----END PUBLIC KEY----
This creates interoperability problems with mri - trying to instantiate a public key that initially was generated in JRuby results in the following exception:
OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key:: nested asn1 error
|
Environment:
|
Ubuntu 12.10, JRuby 1.7.2 via RVM
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Gerald Preissler
|
|
|
|
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