簡體   English   中英

如何驗證c#中是否支持TLS 1.2

[英]How can I verify if TLS 1.2 is supported in c#

在我的c#項目中我想從我的客戶端檢查TLS版本是否為1.2。 有沒有辦法做到這一點?

不直接回答您的問題:您可以通過以下方式支持相關版本的tls:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM