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".
-2d39fe60077c1ec5bff3c39c6a98c6ea.png)