强制PresentationHost使用TLS 1.2 [英] Force PresentationHost to use TLS 1.2

查看:177
本文介绍了强制PresentationHost使用TLS 1.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

服务器已禁用TLS 1.0 / 1.1。客户端是在Internet Explorer中运行的XBAP应用程序。它看起来像PresentationHost尝试建立
TLS 1.0连接,但失败,因为服务器拒绝它。我可以以某种方式强制(例如以编程方式或配置文件)PresentationHost使用TLS 1.2吗?我知道可以相应地设置客户端的注册表(设置 
SchUseStrongCrypto  到
1)但我想避免用户配置任何东西。

推荐答案

Dunken,

Dunken,

我通常通过ServicePointManager将TLS添加到我的exe中。我只是'或',因为我认为默认是SSL3。如果需要,您可以专门设置为TLS 1.2。这是一个静态的电话。希望它适合你。

I usually add the TLS to my exe through ServicePointManager. I just 'OR' , since I think default is SSL3. You can set to be TLS 1.2 specifically if you need to. it is a static call. Hope it works for you.

ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;


这篇关于强制PresentationHost使用TLS 1.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆