Forrest Fleming
2005-Aug-11 15:50 UTC
[Net-ssh-users] cipher-factory.rb raises RuntimeErrors
Hi,
I''m using version 1.0.0 of Net::SSH, which I installed via
Gentoo''s
emerge. Upon attempting to start a session, I get:
/usr/lib/ruby/site_ruby/1.8/net/ssh/transport/ossl/cipher-factory.rb:74:in
`initialize'': Unsupported cipher algorithm (aes-128-cbc).
(RuntimeError)
from
/usr/lib/ruby/site_ruby/1.8/net/ssh/transport/ossl/cipher-factory.rb:74:in
...
Many more lines follow, but this is the important bit, I believe.
I have tried using (well, suggesting) other ciphers with no luck. What
can I do to remedy the situation?
I am using ruby 1.8.2 (the version released on 2004-12-25). The version
of OpenSSL in use is 0.9.7g.
Thanks,
Forrest
James Stallings II
2005-Aug-11 17:58 UTC
[Net-ssh-users] cipher-factory.rb raises RuntimeErrors
Are the ciphers loaded as external libraries? if so, you may need to add the path to the libraries to /etc/ld.so.conf and then run (as root) ldconfig. I had a similar problem of late, albeit with different libraries. James On 8/11/05, Forrest Fleming <ffleming@purdue.edu> wrote:> Hi, > I''m using version 1.0.0 of Net::SSH, which I installed via Gentoo''s > emerge. Upon attempting to start a session, I get: > > /usr/lib/ruby/site_ruby/1.8/net/ssh/transport/ossl/cipher-factory.rb:74:in > `initialize'': Unsupported cipher algorithm (aes-128-cbc). (RuntimeError) > from > /usr/lib/ruby/site_ruby/1.8/net/ssh/transport/ossl/cipher-factory.rb:74:in > ... > > Many more lines follow, but this is the important bit, I believe. > > I have tried using (well, suggesting) other ciphers with no luck. What > can I do to remedy the situation? > > I am using ruby 1.8.2 (the version released on 2004-12-25). The version > of OpenSSL in use is 0.9.7g. > > Thanks, > Forrest > _______________________________________________ > Net-ssh-users mailing list > Net-ssh-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/net-ssh-users >-- ==================================Woulds''t thou so blame the fragrant blos''ms wilting as never to''ve had her bloom?
Forrest Fleming
2005-Aug-12 01:05 UTC
[Net-ssh-users] cipher-factory.rb raises RuntimeErrors
The only libraries I could think of that might need to be loaded are libssl, libcrypto, and libcrypt, which are all loaded. Looking further into this, it seems to be a problem with OpenSSL itself, and not Net::SSH. I can''t find a single alorithm that OpenSSL::Cipher::Cipher.new(alg) will work with, and even the sample code from the ruby tarball doesn''t work. ctx = OpenSSL::SSL::SSLContext.new() Throws me an SSLError, "Library has no ciphers." Oops! I''ll look elsewhere for help, sorry for cluttering up the list. Also, thanks for the prompt reply! Cheers, Forrest James Stallings II wrote:> Are the ciphers loaded as external libraries? if so, you may need to > add the path to the libraries to /etc/ld.so.conf and then run (as > root) ldconfig. I had a similar problem of late, albeit with different > libraries. > > James
James Stallings II
2005-Aug-12 07:37 UTC
[Net-ssh-users] cipher-factory.rb raises RuntimeErrors
Good Luck Forest, let me know how it turns out. Cheers, Twitch On 8/12/05, Forrest Fleming <ffleming@purdue.edu> wrote:> The only libraries I could think of that might need to be loaded are > libssl, libcrypto, and libcrypt, which are all loaded. > > Looking further into this, it seems to be a problem with OpenSSL itself, > and not Net::SSH. I can''t find a single alorithm that > OpenSSL::Cipher::Cipher.new(alg) will work with, and even the sample > code from the ruby tarball doesn''t work. > > ctx = OpenSSL::SSL::SSLContext.new() > > Throws me an SSLError, "Library has no ciphers." Oops! > > I''ll look elsewhere for help, sorry for cluttering up the list. Also, > thanks for the prompt reply! > > Cheers, > Forrest > > James Stallings II wrote: > > Are the ciphers loaded as external libraries? if so, you may need to > > add the path to the libraries to /etc/ld.so.conf and then run (as > > root) ldconfig. I had a similar problem of late, albeit with different > > libraries. > > > > James > _______________________________________________ > Net-ssh-users mailing list > Net-ssh-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/net-ssh-users >-- ==================================Woulds''t thou so blame the fragrant blos''ms wilting as never to''ve had her bloom?