.net - .NET 4.5 和 Authorize.net 升级到 TLS 1.2 的过程

标签 .net azure authorize.net tls1.2

我使用 .NET 4.5 开发了我的网站。我使用authorize.net 进行付款。 最近我收到一封来自 Authorize.net 的邮件,他们已经禁用了对 TLS 1.0 和 1.1,并且需要 TLS 1.2。我不知道 TLS 以及如何升级它。 请告诉我升级到 TLS 1.2 的过程,Azure 也将支持该功能。

最佳答案

您只需使用以下代码即可解决此问题:

 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
                                   | SecurityProtocolType.Tls11
                                   | SecurityProtocolType.Tls12; 

关于.net - .NET 4.5 和 Authorize.net 升级到 TLS 1.2 的过程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43847631/

相关文章:

.net - 从辅助角色运行 azure 启动任务时,%TEMP% 文件夹是什么?

c# - Azure 部署运行时异常

azure - 无法查询可用的提供商包

php - 如何使用 PHP 中的 Authorize.net 以编程方式退款?

c# - ReRegisterForFinalize SuppressFinalize 现实生活中的例子

c# - 加载大型 XML 文件时如何解决 System.OutOfMemoryException

c# - 将消息移至 azure servicebus 中的 'deadletter '

ssl - authorize.net 生产证书升级

security - 支付网关 API 登录名和交易 key 会造成什么样的损害?

.net - 使用 WCF 和 ASP.NET 下载大文件的最佳实践