From: Jamis Buck Date: 2005-08-13T09:10:41+09:00 Subject: Re: "Unsupported cipher algorithm" in OpenSSL A few more questions to see if we can narrow the scope of the problem: 1) What does the output of "openssl --help" tell you? There should be a section at the bottom of the output listing all available cipher commands. Are the ones you were requesting available? 2) Are you using a stock build of ruby, or a custom build? 3) What version of OpenSSL do you have installed? - Jamis On Aug 12, 2005, at 4:56 PM, Forrest wrote: > Hello everyone, > > Currently, I'm doing my darndest to implement SSL file transfers. > Using Net::SSH, I get "`initialize': Unsupported cipher algorithm > (aes-128-cbc). (RuntimeError)" At first I thought this was a > problem with the Net::SSH module, but it turns out that my SSL > module seems to support no ciphers: > irb(main):004:0> c=OpenSSL::Cipher::Cipher.new("des-ede-cbc") > RuntimeError: Unsupported cipher algorithm (des-ede-cbc). > from (irb):4:in `initialize' > from (irb):4:in `new' > from (irb):4 > from :0 > > I've tried this with multiple ciphers, to no avail. > > Looking at the openssl/cipher.rb, it seems that a few classes are > automatically made, but they don't work either: > > irb(main):013:0> c=OpenSSL::Cipher::DES.new() > RuntimeError: Unsupported cipher algorithm (DES). > from (eval):5:in `initialize' > from (eval):5:in `initialize' > from (irb):13:in `new' > from (irb):13 > from :0 > > For reference: > > forrest@apok-2 ~/testcode $ ruby -v > ruby 1.8.2 (2004-12-25) [x86_64-linux] > > forrest@apok-2 ~/testcode $ uname -a > Linux apok-2 2.6.9-gentoo-r14 #1 SMP Wed Mar 23 09:00:03 EST 2005 > x86_64 AMD Opteron(tm) Processor 244 AuthenticAMD GNU/Linux > > GCC version: gcc version 3.4.3 20041125 (Gentoo 3.4.3-r1, > ssp-3.4.3-0, pie-8.7.7) > > I've searched high and low; the only remotely informative thing I > found was in a thread in May of 2004. I used the example provided > within ( c=OpenSSL::Cipher::Cipher.new("DES") ) and got the same > problems. > > Does anyone know what's going on here, and/or how to fix it? > > > Thanks, > -- > Forrest > >