I\'ve got two MacBooks (one on Mavericks, the other on Yosemite) and the same thing happens on both.
After installing Ruby 2.2.3 with RVM, I get the following error:
Couldn't help myself otherwise than with brew install openssl on El Capitan. I've tried everything like updating certs using RVM, replacing SSL certs from haxx.se, or reinstalling ruby. Nothing else worked.