Weird HTTPS problem

22 May 2012

Today, I got stuck because I couldn't connect to the Paypal's sandbox.

I was using Ruby's standard https library.

I could connect to ` ```, but NOT``.

The error looks like this: `Connection reset by peer - SSL_connect`

I had no friggin' idea why.

On other computers, e.g. my laptop and EC2 instance, I can connect to `` without any problem.

Whether or not I enforced the SSL certificate verification, the problem persisted.

I've googled a little bit. I believe, it's a bug of `openssl` library.

Ruby's standard https library utilizes `openssl`.

So, I've switched to `httpclientgem, and it works like a charm. (``httpclient``` writes its own SSL-certificate verification process.)

Give it a kudos