What version of TLS does my C# program use?

2019-04-24 18:09发布

I develop a C# program in Visual Studio 2013 which communicates with a SOAP webservice. How can I tell which version of TLS my program uses?

3条回答
祖国的老花朵
2楼-- · 2019-04-24 18:18

I got the answer by directing my program to make requests to https://www.howsmyssl.com/a/check.

查看更多
Root(大扎)
3楼-- · 2019-04-24 18:27

Another good way to check is to install WireShark (https://www.wireshark.org/download.html)

and to use it while running your application. within the TLS Packets you will be able to see versions and such:

Example for Wireshark View Of TLS traffic...

查看更多
We Are One
4楼-- · 2019-04-24 18:29

TLS 1.2 was added in .NET 4.5. The earliest supported .NET version is 4.5.2, so you won't have any issues if you use a supported version.

.NET 4.6 uses TLS 1.2 by default. Earlier versions need this line to enable it :

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

TLS 1.0 is being phased out and SSL v3 is considered broken so they shouldn't be added.

查看更多
登录 后发表回答