This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3795|Reply: 7

[Source] The HTTPS security protocol version supports the detection tool

[Copy link]
Posted on 2023-10-22 22:07:28 | | | |
Requirements: I made a gadget for a friend, the main purpose of which is to check the LAN (Check online website does not have access to the intranet) to provide interface documentation to third parties that describe the security protocols used by https sites.

I believe that during the development process, you may encounter"The request was aborted: Could not create SSL/TLS secure channel"Abnormality, the reason for the abnormality may be that the security protocol version set by the other party is too high, and at the same time, the security protocol version configured by default in your program is too low, and then it cannot communicate normally.

SSL/TLS protocol

SSL stands for Secure Sockets Layer, which is a secure transmission protocol designed by Netscape for the web, with the aim of providing confidentiality, authentication and data integrity guarantee for network communication. Today, SSL has become the industry standard for secure communications on the Internet.

The first few versions of SSL (SSL 1.0, SSL 2.0, SSL 3.0) were designed and maintained by Netscape, and starting from version 3.1, the SSL protocol was officially taken over by the Internet Engineering Task Force (IETF) and renamed TLS (Transport Layer Security), and has developed to TLS 1.0, TLS1.1, and TLS1.2. At present, the mainstream is still TLS1.2, but TLS1.3 is about to become the general trend.

ProtocolPublishedStatus
SSL 1.0UnpublishedUnpublished
SSL 2.01995Deprecated in 2011 (RFCThe hyperlink login is visible.)
SSL 3.01996Deprecated in 2015 (RFCThe hyperlink login is visible.)
TLS 1.01999Deprecated in 2020 (RFCThe hyperlink login is visible.)
TLS 1.12006Deprecated in 2020 (RFCThe hyperlink login is visible.)
TLS 1.22008
TLS 1.32018


https check tool

Using .NET, we developed an HTTPS security protocol support detection tool, which actually publishes the console application to the nuget repository, which supports: netcoreapp3.1, net5.0, net6.0, and net7.0.

GitHub address:The hyperlink login is visible.

nuget address:The hyperlink login is visible.

The installation command is as follows:


Use the command as follows:



Very simple, the command is package name + space + URL.

(End)




Previous:Start with a GL-MT2500A router for your home network
Next:Follow the official account and get the "invitation code" for free
 Landlord| Posted on 2023-10-23 20:40:35 |
v1.0.1



 Landlord| Posted on 2023-11-13 19:32:04 |
//SecurityProtocolType.Tls1.0=0xC0; SecurityProtocolType.Tls1.1=0x300; SecurityProtocolType.Tls1.2=0xC00;
.NET 4.0/4.5 default: SecurityProtocolType.Tls | SecurityProtocolType.Ssl3
.NET 4.6/4.7 default: SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12
 Landlord| Posted on 2023-11-13 19:33:29 |
Client language
version
Class library
Whether it is supported or not
Compatible Schemes

JavaBefore 1.6.115 notThird-party support packages
After 1.6.115 beStart the jvm and add parameters - Dhttps.protocols=TLSv1.1, TLSv1.2
1.7 beStart the jvm and add parameters - Dhttps.protocols=TLSv1.1, TLSv1.2
1.8 beSupported by default
NodejsIndividual versions beSupported by default
c#,asp.net4.0-4.4 be
Add downlink code before sending HTTP requests
ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072;
4.5 be
If it is 4.5 or above, you can use it directly
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;
Python2.7-3 beSupported by default
curl7.19.7 beSupported by default
Golang1.7.4net/httpbeSupported by default
Ruby
phpphp5.6file_get_contentsbe
http\clientnot
curlbe
php5.3.29file_get_contentsbe
http\clientnot
curlbe




 Landlord| Posted on 2024-2-3 09:00:56 |
curl detects information such as the validity period of the https certificate
https://www.itsvse.com/thread-10669-1-1.html
 Landlord| Posted on 2024-5-28 13:23:01 |
Request aborted: Failed to create an SSL/TLS secure channel solution
https://www.itsvse.com/thread-7612-1-1.html
 Landlord| Posted on 2024-5-28 13:42:04 |
Ignore certificate validation

 Landlord| Posted on 2025-3-10 13:35:22 |
Transport Layer Security (TLS) best practices in the .NET Framework:The hyperlink login is visible.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com