From: Brian Candler Date: 2010-09-01T22:38:05+09:00 Subject: Re: rsa sign and verify with openssl on windows > As soon as i started using the #sign method with OpenSSL::Digest::SHA1 > everything started to work :) Excellent news :-) To be honest, I had to dig into the C source code to find out what the arguments were to RSA#sign (Ruby told me it needed 2 arguments, but not what they were) But in general, the rule for getting Ruby and OpenSSL to work is: 1. Make it work using the OpenSSL command line tools 2. Translate those commands into the equivalent Ruby OpenSSL API calls Regards, Brian. -- Posted via http://www.ruby-forum.com/.