简体   繁体   中英

.NET Disable inbound that are not TLS1.2

I developed an WCF that can only be consumed with SecurityProtocol = SecurityProtocolType.Tls12 for clients PCI requirement.

My question is, how can i check the security protocol used by the inbound (code in each method)? How to reject inbound without TLS1.2?

Regards.

Edit: i know how to force the inbound to be TLS12. And i know how to configure server to only allow TLS12. But in testing server i can not do that, so i need to check this on the WCF configuration insted on server conf.

要限制协议,请尝试设置全局ServicePointManager

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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