Skip to main content
Feedback

MongoDB AWS DocumentDB with SSL

Connecting to AWS DocumentDB with SSL

To connect to AWS DocumentDB with SSL, add the following to your "Connection URI\SRV"

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

Mark only "Allow Invalid Certificates". Since the URI contains what is needed for the "Allow Invalid Host Names". image.png

On this Page