OpenSSL and SU
-
Has anyone successfully loaded OpenSSL in SU?
I tried everything I could already.
Copying ruby's msvcrt-ruby18.dll.
Installing and loading ruby itself, by setting $LOAD_PATH.The funny thing is, sometimes it works, and sometimes it doesn't.
In fact, in my computer it fails at the first run and then it always works, but on my virtual machines it doesn't.
The error I am getting is:
specified module not found (OpenSSL)The line it fails is:
aes = OpenSSL::Cipher::Cipher.new("AES-256-ECB")I have traced the error already, and it seems openssl is failing to load.
Do you guys have any suggestions?
-
Just for the record.
I found this: http://www.rubyonrailsftw.com/lessons/28, after posting.
@unknownuser said:
If you get this error, you need to install 2 openSSL .dlls:
Get openssl
Download openssl windows binary from
http://gnuwin32.sourceforge.net/packages/openssl.htm- Unzip “libeay32.dll” to ruby\bin.
- Unzip “libssl32.dll” to ruby\bin and rename it to ssleay32.dll
In some systems, you need to put those dlls by force on windows/system32, or on ruby/bin, if you are not running SU's ruby interpreter.
Advertisement