This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mongodb): support for mongodb secure connections with ssl certif…
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c0f6cb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using MEAN.JS but when I add this to config/env/secure.js
I have added the certification to mongod.conf and I am using Mongodb 3.2.x and mongoose 4.5.10.
mongod started with ssl enabled and the path to ssl certification is in place. Can you help?
c0f6cb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the individual
server
key options are deprecated per Automattic/mongoose#5442Can you update the configs, test, and send us a PR to fix it?
c0f6cb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using a customized fork and I wouldn't know how. I wish I could.
c0f6cb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I make a change on a specific PR branch will you be able to test that code and see if it works?
c0f6cb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c0f6cb3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My PR is here: #1809
Basically just clone that branch or copy&paste the changes - they are incredibly small, I just removed the server{} object that is wrapping the SSL settings and now they are placed as part of the entire options object to Mongoose connection.
Please comment on the PR to see if it fixes the problem for you.