"Request was aborted: Failed to create secure SSL / TLS channel" in Braintree

My local Braintree PC displays the error "Request was aborted: Failed to create secure SSL / TLS channel" when executing:

var clientToken = gateway.ClientToken.generate(); 

I am using "Braintree-2.33.0.dll" and my target .net version is 4.5.1. I have included TLS 1.2.

It worked beautifully three days ago. But suddenly he began to show an error. Many people faced the same error, and most of them changed SecurityProtocol . I find no way to change this from braintree. Is there any way to change

ServicePointManager.SecurityProtocol

for braintree? or something else that I am missing or need to do? Thank you in advance.

+5
source share
1 answer

Full disclosure: I work at Braintree. If you have further questions, feel free to contact support .

You need to update the .NET Braintree SDK , which you are using at least version 3.1.0 , the minimum version supporting TLS 1.2. After compilation, you can confirm your setup using the steps here .

On December 13, 2016 , the redesigned Braintree sandbox to accept applications only using TLS 1.2+. After June 30, 2017, Braintree will no longer officially support any requests in a production environment below TLS 1.2.

+11
source

Source: https://habr.com/ru/post/1261311/


All Articles