I built mongodb 2.6.4 with SSL enabled from source following the official build documentation, and got mongod running fine on a newly provisioned Linux server.
I used a self-signed certificate and configured mongod as described in the Configure SSL docs. The key post of my config is:
To test I tried running mongo client with --ssl and I got the client console. Also I tried without the --ssl argument and connection was declined.
Next was connecting with the Ruby Driver. I installed 'mongo' gem and the installed version was v1.11.1. I used the following program derived from SSL Configuration for Clients sample:
But when I run all I get is:
As an experiment I also tried connecting using the Python driver:
And that connected fine. Therefore I am reaching the conclusion that there is an issue specifically with the Ruby driver. Or the driver's documentation doesn't accurately describe how one should connect to mongod with ssl enabled.