【问题标题】:.NET framework security protocol.NET 框架安全协议
【发布时间】:2021-03-26 06:51:06
【问题描述】:

使用

ServicePointManager.SecurityProtocol

我得到的值是 Ssl3 | TLS System.Net.SecurityProtocolType。 我使用 .NET 4.8 Windows 10。 我希望看到可用 TLS 协议的完整列表,例如 TLS1、TLS1.1、TLS1.2 为什么我只能达到 TLS?这些信息从何而来?

【问题讨论】:

  • 你的项目/解决方案 目标 4.8?
  • 你应该得到:docs.microsoft.com/en-us/dotnet/api/…。您正在查看不同的枚举。右键单击类型并选择“定义”以查看它的定义位置。
  • 是的,我的目标是 4.8。我得到 SSL3 | Visual Studio 调试中的 TLS

标签: c# .net tls1.2


【解决方案1】:

我在这里找到了问题的答案 Why ServicePointManager.SecurityProtocol default value is different on different machines?

我错过了以下注册表项:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001 

【讨论】:

    猜你喜欢
    • 2017-03-08
    • 2017-07-18
    • 2013-03-03
    • 2017-10-23
    • 2015-04-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-28
    相关资源
    最近更新 更多