简体   繁体   English

TLS 1.2支持是否仅依赖于.NET框架的版本?

[英]Does TLS 1.2 support depend only on the version of the .NET framework?

I want to globally enforce using TLS 1.2 in my WPF application in the following way: 我希望通过以下方式在我的WPF应用程序中全局强制使用TLS 1.2:

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;

From .NET 4.5 TLS 1.2 protocol is supported for secure communication over https. 从.NET 4.5 支持 TLS 1.2协议通过https进行安全通信。 My question is that will this always work if I ship the .NET 4.5 along side with my application. 我的问题是,如果我将.NET 4.5与我的应用程序一起发送,这将始终有效。 Does it depends on the OS version? 这取决于操作系统版本吗?

TLS is termintated in Windows by a component called SChannel. TLS在Windows中由名为SChannel的组件终止。 The supported ciphers are dependent on the version of SChannel, which is dependent on the OS, NOT on the .Net version. 支持的密码取决于SChannel的版本,该版本取决于操作系统,而不依赖于.Net版本。 Windows XP for instance, only supports up to TLS 1.0 例如,Windows XP仅支持TLS 1.0

This means that your host PC needs to be at least Windows 7 if you want to support TLS 1.2 这意味着如果要支持TLS 1.2,则主机PC必须至少为Windows 7

Details can be found here: http://blogs.msdn.com/b/kaushal/archive/2011/10/02/support-for-ssl-tls-protocols-on-windows.aspx 详情请访问: http//blogs.msdn.com/b/kaushal/archive/2011/10/02/support-for-ssl-tls-protocols-on-windows.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM