mongolab / mongoctl

Manage MongoDB servers and replica sets using JSON configurations!
MIT License
178 stars 25 forks source link

Use SSL Connection with configured clusters #28

Open duane-talentsonar opened 8 years ago

duane-talentsonar commented 8 years ago

mongoctl does not use community_ssl with configured clusters as there does not appear to be a way to specify that a clusters should use ssl.

A cluster is configured as preferSSL, when using mongoctl connect cluster-name, an error is returned:

Unable to find a compatible 'mongo' executable for version 3.0.8 (edition community). You may need to run 'mongoctl install-mongodb 3.0.8 ' to install it.

The installed versions were:

$ ./mongoctl list-versions

--------------------------------------------------------------------------------
VERSION              EDITION              LOCATION
--------------------------------------------------------------------------------
3.0.8                community_ssl        /usr

Considering that the server is configured with preferSSL and community_ssl was available, the community_ssl shell should have been used.