Open Vidioleola opened 4 months ago
Hi Vidioleola,
thanks for reporting. This is a fundamental issue for a TLS network connection regarding the Erlang's ssl module. The documentation can be found here: https://www.erlang.org/doc/apps/ssl/ssl.html
There are already some examples in the README https://www.erlang.org/doc/apps/ssl/ssl.html.
Hi,
I just spent a few hours trying to connect, using version 1.4.1 and OTP 26, to my DB hosted on Mongodb Atlas. I finally found the problem and, even if the solution does exist in another issue it would have been much easier if there just was a code example of how to connect to a db hosted on Atlas (which I believe is something I won't be the only person to try to accomplish).
More precisely, the following snippet shows how to load the OS certificates and to make the hostname check work using the customize_hostname_check.
Something like this :
Thank you!