我试图实现一个服务器设置,它只会提供与TLS 1.2协议的安全连接。WCF安全连接应该启动与TLS 1.2协议的连接
在服务器上,我禁用了SSL 2,SSL 3,TLS 1.0。通过注册using this way。 我有一个简单的ASP.NET应用程序和一个_AppStart.cshtml文件,我正在记录发生了什么。
这是代码和输出我现在有(mostly got it from here):
Log("SecurityProtocol: " + System.Net.ServicePointManager.SecurityProtocol.ToString());
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Log("SecurityProtocol: " + System.Net.ServicePointManager.SecurityProtocol.ToString());
输出:
-- Log: SecurityProtocol: Ssl3, Tls
-- Log: SecurityProtocol: Tls12
在开始莫名其妙的价值仍然是SSL3,TLS
有任何设置(可能在web.config/app.config文件中)最初开始连接强制TLS 1.2的方式?
一步就是通过浏览这个Web应用程序来实现这一目标,另一步就是让Web应用程序和应用程序服务器在WCF之间工作。 任何好的指针和想法如何做到这一点?我将不胜感激任何帮助!
谢谢!这看起来像我会感兴趣的,我会尝试。 – DDan