You asked the same question once before at
http://www.ruby-forum.com/topic/187912

I gave you some suggestions to try to narrow down the problem. You 
either ignored them, or didn't bother to post the results which would 
have helped identify the problem.

However you didn't say before that you were running Ubuntu. If you are 
using the stock Ubuntu ruby package, did you remember to install the 
libopenssl-ruby package? (Ubuntu breaks out this part of Ruby into a 
separate package)
-- 
Posted via http://www.ruby-forum.com/.