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.
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.