-
Notifications
You must be signed in to change notification settings - Fork 30
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
Implement SSL certificates in the iQueryable branch #8
Comments
Sure. Anything specific? Here's the official docs on how to configure SSL for the CouchDb server. If you use a certificate that passes the default validation (trusted cert, machine name matches, valid dates, etc), everything should just work over SSL. But if you're cert fails the default validation (self-signed cert like in their instructions, machine name doesn't match, expired, etc),
|
So, with this code it will always validate the certificate? |
Sorry stupid question, is up to the user use a valid certificate. |
Exactly, this code will always accept any cert presented, so it's not safe. As it sits in my above code snippet, the SSL would provide encryption, but not validate that the server is who you expect. It's up to the user to implement cert validation at that |
I'll add a "IgnoreCertificateValidation" and "ConfigureCertificateValidation(func)" so user can decide what to do. |
@borigas |
var client = new CouchClient(
"http://localhost:5984", s => s
.ConfigureCookieAuthentication("root", "relax")
.IgnoreCertificateValidation()
); |
Hi @borigas
if you have free time, can you help me with the SSL cert?
It's something I'm not familiar with so I don't know what to copy and how to test it.
Thank you :)
The text was updated successfully, but these errors were encountered: