MongoDB with SSL

We can connect to your MongoDB instances using SSL but it may require some changes to the agent if you are using certificate files.

This article is outdated and will eventually be removed.

If you are not using certificate files

You can just specify ?ssl=true in the connection string e.g. in step 2 of the installation instructions, then specify mongodb://hostname:port/?ssl=true as part of the config.

If you are using certificate files

If you are using cert files then you'll need to tell the agent where they are. Add these 2 lines to your agent config file:
mongodb_keyfile: /path/to/key.file
mongodb_certfile: /path/to/cert.file
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.