简体   繁体   English

如何验证c#中是否支持TLS 1.2

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

in my c# Project i want to check from my client if the TLS version is 1.2. 在我的c#项目中我想从我的客户端检查TLS版本是否为1.2。 Is there any way to do this? 有没有办法做到这一点?

不直接回答您的问题:您可以通过以下方式支持相关版本的tls:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用C#勾选“TLS 1.2”(Internet选项>高级设置>安全性> TLS 1.2) - How to tick “TLS 1.2”(Internet Option > Advanced setting > Security> TLS 1.2) using C# 如何在Xamarin Android应用程序C#中启用TLS 1.2支持 - How to enable TLS 1.2 support in an Xamarin Android application C# 在 HttpClient C# 中支持 TLS 1.2 - supporting TLS 1.2 in HttpClient C# 如何在运行时将安全协议更新为TLS 1.2 - How can I update Security Protocol to TLS 1.2 at run time 如何在Android上使用Xamarin启用NTLM和TLS 1.2? - How can I enable NTLM and TLS 1.2 with Xamarin on Android? 切换到TLS 1.2后,C#app再也无法访问网站 - GetResponse()失败 - C# app can no longer hit website after they switched to TLS 1.2 - failing on GetResponse() 无法在C#中使用SslStream接受.net框架4.6的TLS 1.2协议 - Can't get SslStream in C# to accept TLS 1.2 protocol with .net framework 4.6 如何验证函数是否已在C#中缓存? - How can I verify if a function has been cached in C#? c#:如何验证按特定顺序调用方法? - c#: How can I verify methods are called in a certain order? C#通过tls1.2交换Web服务 - c# exchange web services over tls1.2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM