-
Notifications
You must be signed in to change notification settings - Fork 126
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
Set ServicePointManager.SecurityProtocol #795
Comments
Actually even if you set it, the library is going to change it back. This is one of the drawbacks of having a globally configurable variable for stuff like this -_-. I want to change it to 1.2 but I can't because SecurityProtocolType.Tls12 does not exist in .NET 3.5, and until very recently Mono only supported TLS 1.0. Have you confirmed that switching to SecurityProtocolType.Tls12 will solve the problem you are facing? |
Yeah, when I create and send an HTTPWebRequest manually with TLS 1.0 or 1.1 or SSL3, the request will be aborted. I did notice that when I switch to TLS1.2, the initial request will work, but subsequent calls will all fail. Any ideas for a workaround? |
No (sorry), but what I can do is change the library to only change it if it is set to SSL3 which will achieve the same thing for my purposes but leave it open to change by the user. |
That'd be beautiful. Thanks! |
Since the setting is marked as |
Hi borrrden, I need to know how to work around the same issue in 1.3.0 release? |
The only thing you can do is make a build with the above changes in it. 1.x is well past its end of life at this point (and 1.3 may have even reached the end of paid support) and no more work is being done on it. |
Is there a way to set the SecurityProtocol to SecurityProtocolType.Tls12 (or anything other than TLS?)
It looks like by default, it is set to SecurityProtocolType.Tls on Line 80:
https://github.com/couchbase/couchbase-lite-net/blob/7e82825a7082960884991ac6b7bd3dec7930acf2/src/Couchbase.Lite.Shared/Replication/CouchbaseLiteHttpClientFactory.cs
I'm getting this error:
Exception in HttpWebRequest#45592480:: - The request was aborted: Could not create SSL/TLS secure channel..
Sorry if there's a super obvious way to do this.
I've already attempted to set ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 after I create a new Manager.
The text was updated successfully, but these errors were encountered: