What MONGO_URL to connect to MongoDB Server with SSL?


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


this is should be sufficent for the environment variable


Thank You Garrilla.


I tried this but got error, self signed certificate failed