Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby-OpenSSL 0.6
-
Fix Version/s: JRuby-OpenSSL 0.7
-
Component/s: OpenSSL
-
Labels:None
-
Number of attachments :
Description
(Direct mail from an user)
I'm using XXX under ruby MRI but I can't do the same under jruby_openssl because it doesn't support DES3 cipher algorithm.
Example using jirb:
require "openssl"
=> true
OpenSSL::Cipher::Cipher::new("DES3")
LoadError: unsupported cipher algorithm (DES3/CBC/PKCS5Padding)
from (irb):3
Do you know if/how can I use XXX under jruby (using DES3 cipher algorithm ?)
Must be a bug of jruby-openssl.
And for a workaround, use "des-ede3-cbc" as an algorithm.
OpenSSL::Cipher::Cipher.new("des-ede3-cbc")
Let me know if it doesn't work. "DES3" is an alias of "DES-EDE3-CBC"
in OpenSSL world but the service you're using may use "DES3' as
another parameter combination.