mongodb-erlang icon indicating copy to clipboard operation
mongodb-erlang copied to clipboard

How to use SSL?

Open lazercorn opened this issue 2 years ago • 2 comments

Can't find docs on how to use SSL in this library. How to?

lazercorn avatar Mar 08 '22 11:03 lazercorn

Ok I think I got it. passing arguments as a list of tuples using valid arguments located here: https://www.erlang.org/doc/man/ssl.html#type-client_option as value for ssl_opts key tuple in WorkerOptions list.

Correct?

lazercorn avatar Mar 08 '22 11:03 lazercorn

Based off of code from here: https://github.com/comtihon/mongodb-erlang/blob/master/src/mongoc/mc_monitor.erl Seems like I also need to set {ssl, true} as a key value tuple in WorkerOptions list

lazercorn avatar Mar 09 '22 03:03 lazercorn