How can I perform a mongoimport to a host that requires an SSL Certificate? I am trying to load some sample JSON data into a MongoDB database (hosted on IBM Bluemix). 

The connection requires SSL, and a SSL Certificate has been provided, but I keep getting an error when I run mongoimport from the terminal (OS X).

Here is the command I am running (with sensitive data removed, of course):

mongoimport --ssl --sslAllowInvalidCertificates --host=&lt;host_address&gt;:&lt;port&gt;/admin -u &lt;username&gt; -p &lt;password&gt; --drop --file ./sample-dataset.json --db test --collection testColl --sslPEMKeyFile ./SSLCert.pem

And the error I receive:

Failed: error connecting to db server: no reachable servers, openssl error: dial tcp &lt;host&gt;:&lt;port&gt; getsockopt: connection refused

I'm new to SSL, especially when it comes to MongoDB. Am I just not using the right options/config for mongoimport?
With mongoimport you must separate host address and authentication DB


  --host host_address:port --authenticationDatabase admin