ScaleGrid MongoDB clusters are available with and without SSL enabled. In either case, you can easily connect to them using your connection string provided on your Cluster Details page.
Click the copy button next to the connection string box to copy the connection string. Please note that you still need to fill in the password placeholder field that you can find above in the Credentials area.
Click the Show button to show your cluster credentials
Here's where you find your connection string on the Cluster Details page
The connection string is built in the following format:
For more details on connection strings in MongoDB, check out their official documentation.
Here is an example of a connection string for a replica set without SSL enabled.
ScaleGrid MongoDB SSL enabled clusters can be identified by the SSL icon on the overview tab of the cluster details page:
Our MongoDB clusters are configured with self-signed certificates by default. The SSL CA certificate is available for download on the overview page.
Most MongoDB drivers will provide an option to specify a CA certificate file. You can download the file from the ScaleGrid console and store it on your application servers. If your driver doesn't provide an option to specify the CA cert file, attempts to establish SSL connections to a MongoDB server with self signed certificates might fail. In order to fix this look for an option that lets you disable certificate validation on your driver/platform.
SSL Connection Examples: