- 首先Win10需要升级到最新版(20H2 OS Build 19042.804)方法:https://www.microsoft/zh-cn/software-download/windows10 立即更新,下载Win10更新助手
- 在控制面板中查找“Internet Options”, 打开后进入"Advanced"选项卡。如果有“Use TLS1.3(experimental)”选项,说明已经支持TLS1.3了
- 运行regedit,修改注册表
在“Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols”中增加下图所示的值
在Client和Server中都增加以下的值
-
重启电脑
-
在C#中,需要把 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;改成 ServicePointManager.SecurityProtocol = SecurityProtocolType.SystemDefault | SecurityProtocolType.Tls12;
- 首先Win10需要升级到最新版(20H2 OS Build 19042.804)方法:https://www.microsoft/zh-cn/software-download/windows10 立即更新,下载Win10更新助手
- 在控制面板中查找“Internet Options”, 打开后进入"Advanced"选项卡。如果有“Use TLS1.3(experimental)”选项,说明已经支持TLS1.3了
- 运行regedit,修改注册表
在“Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols”中增加下图所示的值
在Client和Server中都增加以下的值
-
重启电脑
-
在C#中,需要把 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;改成 ServicePointManager.SecurityProtocol = SecurityProtocolType.SystemDefault | SecurityProtocolType.Tls12;