-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Can't connect to MongoDB via SSL and certificate #1026
Comments
#956 This should solve your issue |
Great! (and just commited 4 days ago. phew!) How can I specify the options? I tried to read through the commit code but I am not very familiar with node.js I know that the code goes into index.js at the root. I am just not sure how to call it.
Thank you! |
Just pass |
Hmm, it executes, but there is no difference,
|
@steven-supersolid ? Ideas? |
There is another level of option within options that you need to specify - server. I've successfully used this to modify the connection pool max size but have not tried SSL yet. I think it should be similar. E.g.
|
That seems to work, at least I am not getting any error messages anymore. :) The parse dashboard is empty though despite data in the DB. |
|
|
it depends where you mount your |
ah, ok! A cURL request (based on what to API console tells me) to http://localhost:1337/parse/users times out.
(xxxx and yyyy are valid values) |
@markuswinkler same problem here (can't connect to Compose.io with SSL). Tried databaseOptions, error message goes away, but the DB doesn't answer. |
That fixed it! Works now, thanks a lot! 👍 |
@steven-supersolid Could you please let me know, how did you change the poolSize using
or
|
This no longer works, a warning is thrown with
the error being:
Still no luck trying to solve this, I keep getting
|
that's an error thrown from the mongoDB nodejs client, you should probably check with them instead |
Also, given the error, you should basically move everything at the top level, as mentioned in the error:
|
Thanks for the direction @flovilmart. I moved all of this to the top level (ssl, sslCert, sslKey, sslCA) as mentioned in the docs. There's been a change in the options. This varies somewhat from the options mentioned in this tutorial. |
Yeah, you should probably report it to mongo :) |
I am trying to run a local parse-server for development that connects to the hosted mongoDB instance on compose.io via SSL.
Compose.io provides a custom SSL certificate. I can successfully connect via
mongo --ssl aws....com:10637/dbname -u <user> -p <password> --sslCAFile=compose_io.pem
However, if I specify the URL in the parse server config file with ssl=true I am getting the following error message at the console when an app (e.g. dashboard) tries to connect:
I found this article on compose.io regarding SSL connections:
https://www.compose.io/articles/one-missing-key-and-how-it-broke-node-js-and-mongodb/
I can't seem to find though options to specify the certificate in the parse-server config.
Trusting the certificate in the OSX keychain doesn't help either.
What am I missing?
The text was updated successfully, but these errors were encountered: