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

Enable SSl Issue #141

Closed
iThink32 opened this issue Nov 12, 2018 · 8 comments

Comments

@iThink32
Copy link

commented Nov 12, 2018

I am currently using version 0.0.7 as I saw it in ur releases. I am able to connect and fetch a document from the mlab db but am not able to print the result or access it.

the error that I am getting is

DEBUG:      cluster: Authentication failed: The SCRAM_SHA_1 authentication mechanism requires libmongoc built with ENABLE_SSL
@mbroadst

This comment has been minimized.

Copy link
Member

commented Nov 12, 2018

Hi @iThink32, can you provide more information about where you are using the driver? Specifically, what operating system, how have you installed libmongoc, what version libmongoc is installed, etc. Thank you!

@iThink32

This comment has been minimized.

Copy link
Author

commented Nov 13, 2018

@mbroadst I'm using this driver on iOS , on a simulator having a version of 12.1. I did not have to install libmongoc as this version of pod internally adds a mongo-embedded-c-driver folder and links to it via framework search paths.This directory contains the mongoc framework having a version of 1.13.0.

To be even specific on Xcode 10 and Mac OS 10.14

@acmorrow

This comment has been minimized.

Copy link

commented Nov 13, 2018

The build of the C driver contained in mongo-embedded-c-driver has SSL disabled, because the C drivers native crypto layer doesn't currently build on iOS. Since mongo-embedded-c-driver was envisioned as primarily being used to talk to the embedded server, not a remote server, when deployed on iOS, this was not seen as a problem. In general, our expectation was that mobile applications would not be directly talking to remote databases, but instead to remote app servers that sat in front of a database. So it would be interesting if you could share some additional information on your use case.

We will attempt to get this issue addressed in an upcoming release. The ticket to track is https://jira.mongodb.org/browse/CDRIVER-2850.

@iThink32

This comment has been minimized.

Copy link
Author

commented Nov 14, 2018

@acmorrow I agree the recommended way would be for the application to communicate with a server which would internally communicate to mongodb, query it and return back results but as of now I'm working on a cost efficient solution so I have architected my components such there is no requirement of a backend server.Mlab was an excellent option for such a use case and it is the reason I chose it.
It would be helpful if you can give me an alternative approach if possible.

@acmorrow

This comment has been minimized.

Copy link

commented Nov 14, 2018

@iThink32 - Well, the fastest way to see this fixed is for https://jira.mongodb.org/browse/CDRIVER-2850 to get fixed, and then we can re-enable SSL in the mongo-embedded-c-driver cocoapod. I think you should definitely reach out on that JIRA ticket and vote for it along with an explanation of why you need it fixed. If C programming on iOS is something you are familiar with and you feel comfortable working with the C driver source, submitting a pull request against the C driver (https://github.com/mongodb/mongo-c-driver) with a fix for the issue is probably the fastest way to see it fixed.

If you are interested in knowing more about how to do a cross compile of the C driver for iOS, you can work from the MongoDB build automation, available here:

What you are looking to do is synthesize a CMake invocation from those flags, but where you are replacing {{-DENABLE_SSL=OFF}} with {{-DENABLE_SSL=DARWIN}} and then get the C driver build to work that way.

@iThink32

This comment has been minimized.

Copy link
Author

commented Nov 24, 2018

@acmorrow thanks for the feedback , I will comment on the ticket so that it gets picked up faster.

@iThink32 iThink32 closed this Nov 24, 2018

@iThink32

This comment has been minimized.

Copy link
Author

commented Nov 26, 2018

@acmorrow not able to add a comment in the link you specified , please pass on my use case.

@jmikola

This comment has been minimized.

Copy link
Member

commented Nov 26, 2018

@iThink32: This GitHub issue has been linked to CDRIVER-2850.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.