I have wrongly used the key . use instead of private.pem , what you have created key file using openssl . But it has been working fine . No problem at all . Above steps are useful for doing encryption in windows and decryption in Linux especially on UNIX based opearating systems . cheers, ashikali . -- Posted via http://www.ruby-forum.com/.