"The request was aborted: Could not create SSL/TLS secure channel" 布伦特里错误

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

在我的本地 PC Braintree 中,执行时显示错误 "The request was aborted: Could not create SSL/TLS secure channel":

 var clientToken = gateway.ClientToken.generate();

我正在使用 "Braintree-2.33.0.dll",我的目标 .net 版本是 4.5.1。 我启用了 TLS 1.2。

三天前它运行良好。但突然开始显示错误。许多人遇到了同样的错误,并且大多数人都更改了 SecurityProtocol。我找不到任何方法从 braintree 改变它。有什么办法可以改变

ServicePointManager.SecurityProtocol

对于 braintree ?或者我缺少或需要做的任何其他事情? 提前致谢。

完全披露:我在 Braintree 工作。如果您有任何其他问题,请随时联系 support.

您需要更新 .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

December 13, 2016,Braintree 将沙箱转换为仅接受使用 TLS 1.2+ 发出的请求。 2017年6月30日之后,Braintree将不再正式支持TLS 1.2以下生产环境的任何请求。