MongoDB AWS DocumentDB with SSL
  • 1 Minute to read
  • Dark
    Light
  • PDF

MongoDB AWS DocumentDB with SSL

  • Dark
    Light
  • PDF

Article summary

Connecting to AWS DocumentDB with SSL

In order to connect to AWS DocumentDB with SSL please add the following to your "Connection URI\SRV"

mongodb://{username}:{password}@{host}:{port}/{database}?tlsAllowInvalidHostnames=true&tls=true&tlsAllowInvalidCertificates=true.

And unlike the normal SSL connection please only mark Allow Invalid Certificates
Since the URI contains what's needed for the Allow Invalid Host Names.
image.png

as shown in section


Was this article helpful?

What's Next