Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.4
-
Fix Version/s: JRuby-OSSL 0.7.5
-
Component/s: OpenSSL
-
Labels:None
-
Environment:Win32, Java6 and Java7, JCE Unlimited Strength enabled
-
Number of attachments :
Description
Loading and creating RSA keys from JRuby OpenSSL fails on encrypted RSA pem with password. Works in CRuby.
Examples:
-
- Saving Encrypted PEM
pkeys = OpenSSL::PKey::RSA.generate(1024)
cipher = OpenSSL::Cipher::Cipher.new('aes-256-cbc')
pem = pkeys.to_pem(cipher, 'secretpassword') # Fails with OpenSSL::PKey::RSAError: unknown algorithm `aes/cbc/PKCS5Padding' in write_DSAPrivateKey
- Saving Encrypted PEM
-
- Reading Encrypted PEM
- pemstring loaded from previously created file)
OpenSSL::Pkey::RSA.new(pemstring, 'secretpassword') # Fails with not pub/priv key error. Works in CRuby.
Activity
Hiroshi Nakamura
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Hiroshi Nakamura [ nahi ] |
Hiroshi Nakamura
made changes -
| Priority | Minor [ 4 ] | Major [ 3 ] |
Hiroshi Nakamura
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | JRuby-OSSL 0.7.5 [ 17395 ] | |
| Fix Version/s | JRuby 1.x+ [ 13421 ] | |
| Resolution | Fixed [ 1 ] |
Mark as 'Major' not 'Minor', since I received the same report from another person.