MongoDB PHP Exception: Can’t connect over SSL, is mongod running with SSL?

Error:Connect to MongoClient using SSL = true

$mc = new MongoClient("mongodb://server1", array("ssl" => true));

Cause: Your mongod instance is running but not properly configured with ssl.