Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use SSL? #247

Open
lazercorn opened this issue Mar 8, 2022 · 2 comments
Open

How to use SSL? #247

lazercorn opened this issue Mar 8, 2022 · 2 comments

Comments

@lazercorn
Copy link

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

@lazercorn
Copy link
Author

lazercorn commented Mar 8, 2022

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
Copy link
Author

lazercorn commented Mar 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant