“The request was aborted: Could not create SSL/TLS secure channel” error in Braintree

In my local PC Braintree showing error “The request was aborted: Could not create SSL/TLS secure 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 enabled TLS 1.2.

It was working nicely three days ago. But suddenly started showing error. Many people faced same error and most of then have changed the SecurityProtocol. I dont find any way to change that from braintree. Is there any way to change

ServicePointManager.SecurityProtocol

for braintree ? or anything else I am missing or need to do ?
Thanks in advance.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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

You need to update the .NET Braintree SDK you’re using to at least version 3.1.0, the minimum version that supports TLS 1.2. Once compelete, you can validate your setup using the steps here.

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


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x