Mongodb – Why has mongorestore stopped recognizing the –ssl option

mongodb

I've been using a mongorestore command to move data into our production db. But it's recently stopped working. The command is

mongorestore --db import --collection intent --host Cluster0-shard-0/cluster0-shard-00-00-wr3bj.mongodb.net:27017,cluster0-shard-00-01-wr3bj.mongodb.net:27017,cluster0-shard-00-02-wr3bj.mongodb.net:27017 --username usr --password pswd --ssl --authenticationDatabase admin intent.bson

And I'm getting a strange message saying

error parsing command line options: unknown option "ssl"

This doesn't make much sense as the option is listed in the docs

I think I may have upgraded from 3.2 to 3.4 since I last ran the command.

I'm running mongo on OS X and I installed using the instructions here (with curl not brew).

Ewen-Macbook:~ aidan$ mongorestore --version
mongorestore version: r3.4.2
git version: 3f76e40c105fc223b3e5aac3e20dcd026b83b38b
Go version: go1.7
   os: darwin
   arch: amd64
   compiler: gc

What am I missing?

Best Answer

The instructions for installing on OS X manually via curl currently use the non-SSL version as an example and do not actually link to the latest version (eg. 3.4.2 is included at the moment but 3.4.4 is the latest production release). I've raised DOCS-10176 to correct this information.

In the interim, if you visit the MongoDB Download Center which is referenced directly above the curl step you can find links for of the available packages to download. The OS X downloads for MongoDB 3.0+ should all default to a version with SSL support, or explicitly highlight if a selected distribution does not include SSL encryption.