What MONGO_URL to connect to MongoDB Server with SSL?

Hi,

I have installed successfully my MongoDB Server with SSL. When I try to connect my Meteor App to my MongoDB server. I got an error message: /built_app/programs/server/node_modules/fibers/future.js:278 throw(ex); ^ Error: connection closed

I use the following MONGO_URL=mongodb://user:password@ip:port/mydb?ssl=true,ssl_certfile=/data/cert/adalidda.net.pem,ssl_cert_reqs=ssl.CERT_REQUIRED,ssl_ca_certs=/data/cert/a40e35d8fb8b0c02.crt

What is wrong ?

I used SSL certificate from GoDaddy and installed it successfully on my website and MongoDB server.

Thank You in advance

Kosona

this is should be sufficent for the environment variable

MONGO_URL=mongodb://user:password@ip:port/mydb?ssl=true

Thank You Garrilla.

Kosona

I tried this but got error, self signed certificate failed