因为我刚刚发现RFC5425需要使用TLS1.2,而.NET还不支持它,所以我想知道是否有RFC5246中定义的TLS1.2协议的实现,可能是开源的。
发布于 2012-06-26 15:21:41
我刚刚发现.Net Framework4.5现在支持TLSv1.2
http://msdn.microsoft.com/en-us/library/system.security.authentication.sslprotocols(v=vs.110).aspx
发布于 2015-03-24 06:51:53
可以,但您必须在System.Net.ServicePointManager.SecurityProtocol手动打开TLS1.2
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; // comparable to modern browsers
var response = WebRequest.Create("https://www.howsmyssl.com/").GetResponse();
var body = new StreamReader(response.GetResponseStream()).ReadToEnd();您的客户端使用的是TLS1.2,它是加密协议的最新版本
开箱即用,WebRequest will use TLS 1.0 or SSL 3。
您的客户端使用的是TLS1.0,它非常旧,可能容易受到野兽攻击,并且没有可用的最好的密码套件。像AES-GCM和SHA256这样替换MD5-SHA-1的附加功能对于TLS1.0客户端以及更现代的密码套件都是不可用的。
发布于 2015-10-02 01:01:00
您可以使用SchUseStrongCrypto注册表设置来要求所有.NET应用程序使用TLS1.2,而不是默认的1.0。
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001https://stackoverflow.com/questions/4137106
复制相似问题