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

SSL #27

Closed
sennav opened this issue May 6, 2013 · 1 comment
Closed

SSL #27

sennav opened this issue May 6, 2013 · 1 comment

Comments

@sennav
Copy link

sennav commented May 6, 2013

I'm using nano to access couchdb, and my couchdb installation use https with a non-verified SSL. In "nano" I can change the request options through "request_defaults". I couldn't find how to do it in "follow", maybe I missed somewhere in documentation. I keep getting DEPTH_ZERO_SELF_SIGNED_CERT error.

I've tried to change line 111 follow.js to:

var req = request({'uri':self.db, 'headers':headers, 'strictSSL':false}, db_response)

But it still returns the same error. I guess there is another request object somewhere that I'm missing or I'm misunderstanding the error.

I dont know if post an issue for that is the best way to ask those questions. If not, I'm sorry please tell me the best way to do it. I couldnt find nothing on google.

Thanks

@sennav
Copy link
Author

sennav commented Dec 5, 2013

I didn't browse the code very well, or the code have changed. I find out that the requests parameters are supported. You only have to specify it at follow: (NOTE, I am using nano)

var feed = nanoDB.follow({feed:"continuous",since:"now",request:{strictSSL:false}});

Thanks anyway!

@sennav sennav closed this as completed Dec 5, 2013
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