-
Notifications
You must be signed in to change notification settings - Fork 531
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
The request was aborted: Could not create SSL/TLS secure channel. #911
Comments
Possibly related: http://stackoverflow.com/questions/2859790 As it's a global setting, I'm not sure whether it's really appropriate for us to have that line in the client library code - on the other hand, I can see it being a common problem. One to ponder - so I'm assigning it to Chris... |
I'm not exactly clear what's going on here. So this might be a combination of code built for .NET4.5, which is trying to use SSL by default (rather than TLS) on Windows 2016 (which doesn't support SSL), although I'm not clear if this is really the case. I agree that the client library code shouldn't force Unfortunately I can't see a way to just enable TLS support for the HttpClient that we use. It appears to only be a global setting. |
@chrisdunelm - Thanks and I'm not quite sure what exactly is going on or why it was even trying to do SSL3 by default. All I know is that I had to add the code about using I know we recently started upgrading our systems as BrainTree told us they would only start accepting Server 2012 and above. I know our BrainTree code hasn't broke from this upgrade, so I was assuming they put the line of code in their code. I appreciate you looking into this and I assumed maybe it was going to be a bug going forward as Server 2016 is so new, I figured maybe people haven't had time to test the code against 2016 yet. Also, by opening up this ticket maybe it will help people find a solution. Thanks! |
Closing as stale. Please re-open if this is a still an issue. |
Can someone please let me know where i need to add this code or change and please specify the location of file in system. |
Do you mean the What file do you mean? |
somewhere i read the below one Add the below code in web application's Global.asax Application_Start() section like shown in the image. What file do you mean? |
|
@Eckee: It's hard to be more specific without knowing your context. gowthamb4's example is pretty specific if you're using ASP.NET. To be honest though, if you're running into this it suggest you're probably on a very old platform, and you should really look into updating to a more recent version of .NET. |
@jskeet I'm so sorry, I found the solution in another thread, I had to manually update to 1.24, that was the case. |
@Eckee can you share the solution please. |
@Eckee Same worked for me |
How did you manually update? |
Fixes googleapis#911 We should release this as a new patch of the support library, and release all libraries to depend on it - but only after September 1st.
Fixes #911 We should release this as a new patch of the support library, and release all libraries to depend on it - but only after September 1st.
We recently moved to a server 2016 machine and we had the following error:
"The request was aborted: Could not create SSL/TLS secure channel."
After some playing around and everything I found out that if I put in the following line of code before all cert calls it works fine:
When we were on Server 2008 this wasn't an issue. I've seen this as an error on other libraries as well and they ended up forcing Tls in the library. What was odd was I had no problem locally when testing, only when deployed to the server.
The text was updated successfully, but these errors were encountered: