Commercial password detection method, device, equipment and storage medium of certificate system

By detecting the establishment of TLS secure channels between communication nodes in the certificate system, the shortcomings of commercial password detection in the Internet of Vehicles system are solved, and the automated detection of the certificate system is realized, information security is improved, and human missed detection is avoided.

CN118524392BActive Publication Date: 2024-11-08DINGXUAN COMMERCIAL PASSWORD EVALUATION TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410979055.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-08
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

The existing Internet of Vehicle Certificate Inspection is limited to interactive process authentication, and there is no detection of commercial passwords, which leads to the Internet of Vehicles system having security risks in terms of information security and cannot fully guarantee the security of the system.

Method used

By detecting the device, whether the TLS secure channel can be successfully established between each communication node in the certificate system, verify whether the commercial password applied by the communication node is correct, and realize automatic detection of the commercial password of the certificate system, ensuring the security of the secure channel.

Benefits of technology

It improves the testing efficiency, avoids artificial occasional missed tests, ensures the accuracy and security of commercial password detection of the certificate system, and enhances the information security of the Internet of Vehicles system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118524392B_ABST
    Figure CN118524392B_ABST
Patent Text Reader

Abstract

The present application discloses a commercial password detection method, device, equipment and storage medium for a certificate system, and relates to the technical field of password detection. The method includes: if a secure channel establishment process is triggered, the device information of the node to be detected is obtained; a secure channel establishment instruction is generated according to the device information of the node to be detected, and the secure channel establishment instruction is sent to the environment node to control the environment node to start the TLS secure channel creation process based on the device information, and a first response message is generated according to the execution result of the secure channel creation process; the first response message sent by the detection environment node is received, and a first password detection result is generated according to the first response message. The present application can automatically detect the Internet of Vehicles certificate system, thereby improving the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of password detection, and in particular to a commercial password detection method, device, equipment and storage medium for a certificate system. Background Art

[0002] With the rapid development of the Internet of Things and intelligent transportation systems, Internet of Vehicles technology has become a key technology for realizing all-round information interaction between vehicles, vehicles and infrastructure, vehicles and pedestrians, etc. However, the widespread deployment and application of Internet of Vehicles also faces severe information security challenges.

[0003] In order to ensure the security, autonomy and controllability of the Internet of Vehicles system, a commercial cryptographic certificate management system based on the national secret algorithm has been generally established. This system is an important part of the key information infrastructure in the Internet of Vehicles system, and it needs to be subject to strict commercial cryptographic evaluation to ensure the compliance, correctness and effectiveness of commercial cryptographic applications, thereby ensuring the basic security of the Internet of Vehicles system. However, the current detection of Internet of Vehicles certificates only includes the interactive process authentication of the certificate system, and there is no commercial cryptographic detection for the certificate system. This limitation may cause security risks in the application of commercial cryptography in the Internet of Vehicles system, and it is impossible to fully guarantee the information security of the Internet of Vehicles system.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a commercial password detection method, device, equipment and storage medium for a certificate system, aiming to solve the technical problem of how to perform security detection on the certificate system.

[0006] To achieve the above purpose, the present application proposes a commercial password detection method for a certificate system, the method comprising:

[0007] If the secure channel establishment process is triggered, obtain the device information of the node to be detected;

[0008] Generate a secure channel establishment instruction according to the device information of the node to be detected, and send the secure channel establishment instruction to the environment node to control the environment node to start the TLS secure channel creation process based on the device information, and generate first response information according to the execution result of the secure channel creation process;

[0009] Receive first response information sent by the environment node, and generate a first password detection result according to the first response information.

[0010] In one embodiment, after the step of receiving the first response information sent by the environment node and generating the first password detection result according to the first response information, the method further includes:

[0011] If the first response information indicates that the secure channel is successfully established, obtaining environment node information of the successful secure channel establishment, and generating a communication instruction based on the environment node information of the successful secure channel establishment;

[0012] Sending the communication instruction to the environment node to control the environment node to start a message sending process based on the communication instruction and the successfully established secure channel, and generating second response information according to the execution result of the message sending process;

[0013] Receive second response information sent by the environment node, and generate a second password detection result according to the second response information.

[0014] In one embodiment, the method further comprises:

[0015] A commercial password detection result is generated based on the first password detection result and the second password detection result.

[0016] In one embodiment, the method further comprises:

[0017] If the certificate download detection process is triggered, obtain the device information of the environment node;

[0018] Generate a certificate download detection instruction according to the device information of the environment node, and send the certificate download detection instruction to the environment node to control the environment node to generate a certificate status query request based on the certificate download detection instruction, and send the certificate status query request to the certificate system to obtain the environment node certificate information;

[0019] Receive the environment node certificate information sent by the environment node, and generate a certificate download detection result according to the environment node certificate information.

[0020] In one embodiment, after the step of receiving the environment node certificate information sent by the environment node and generating a certificate download detection result according to the environment node certificate information, the method further includes:

[0021] If the certificate download detection result is that the environment node certificate has not been downloaded, obtaining the environment node information of the certificate that has not been downloaded, and generating a certificate download instruction based on the environment node information of the certificate that has not been downloaded;

[0022] A certificate download instruction is sent to the environment node that has not downloaded the certificate, so as to control the environment node that has not downloaded the certificate to request the certificate system to download the environment node certificate.

[0023] In one embodiment, after the step of receiving the environment node certificate information sent by the environment node and generating a certificate download detection result according to the environment node certificate information, the method further includes:

[0024] If the certificate download detection result is that the environment node certificate has been downloaded, obtaining the environment node information of the downloaded certificate, and generating a certificate detection instruction based on the environment node information of the downloaded certificate;

[0025] Sending the certificate detection instruction to the environment node that has downloaded the certificate, so as to control the environment node that has downloaded the certificate to load the environment node certificate;

[0026] Receiving and parsing the environment node certificate to obtain multiple fields of the environment node certificate;

[0027] Verify whether the multiple fields meet the requirements, and generate a certificate consistency test result based on the verification result.

[0028] In one embodiment, the method further comprises:

[0029] If the secure channel detection process is triggered, secure channel information between nodes to be detected is obtained;

[0030] Generate a secure channel detection instruction according to the secure channel information between the nodes to be detected, and send the secure channel detection instruction to the node to be detected to control the node to be detected to start a communication process based on the secure channel information between the nodes to be detected;

[0031] Using a packet capture tool to capture the communication messages in the communication process, and parsing and verifying the communication messages to generate a verification result;

[0032] A secure channel detection result is generated according to the verification result.

[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a commercial password detection device of a certificate system, the device comprising:

[0034] The information acquisition module is used to obtain the device information of the node to be detected when the secure channel establishment process is triggered;

[0035] An instruction sending module, used to generate a secure channel establishment instruction according to the device information of the node to be detected, and send the secure channel establishment instruction to the environment node to control the environment node to start the TLS secure channel creation process based on the device information, and generate a first response information according to the execution result of the secure channel creation process;

[0036] The result generating module is used to receive the first response information sent by the environment node and generate a first password detection result according to the first response information.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a commercial cryptographic detection device for a certificate system, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the commercial cryptographic method for the certificate system as described above.

[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the commercial password detection method of the certificate system as described above are implemented.

[0039] The present application proposes a commercial password detection method for a certificate system. If a secure channel establishment process is triggered, the device information of the node to be detected is obtained to determine the device information of the object for establishing the secure channel; a secure channel establishment instruction is generated according to the device information of the node to be detected, and the secure channel establishment instruction is sent to the environment node to control the environment node to start the TLS secure channel creation process based on the device information, and a first response message is generated according to the execution result of the secure channel creation process, and a secure channel establishment request is sent to the environment node through a detection device to control the establishment of a secure channel between the environment node and the node to be detected, thereby verifying the security of the secure channels between the various communication nodes of the certificate system; the first response message sent by the environment node is received, and a first password detection result is generated according to the first response message, and whether the commercial password applied by the environment node is correct is confirmed by the result of whether the secure channel is successfully established.

[0040] In summary, the present application verifies whether the commercial password applied by the communication node is correct by detecting whether the TLS secure channel can be successfully established between the communication nodes in the certificate system through a detection device, thereby realizing automatic detection of the commercial password of the certificate system, solving the technical problem of how to detect the commercial password of the certificate system, improving the testing efficiency, and avoiding occasional human omissions. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] Figure 1 A flowchart of the first embodiment of the commercial password detection method of the certificate application system is provided;

[0044] Figure 2 Interaction diagram provided for the commercial password detection method embodiment 1 and embodiment 2 of the present application certificate system;

[0045] Figure 3 A flowchart of the second embodiment of the commercial password detection method of the certificate application system is provided;

[0046] Figure 4 A flowchart of the fourth embodiment of the commercial password detection method of the certificate application system is provided;

[0047] Figure 5 Interaction diagrams provided for the fourth and sixth embodiments of the commercial password detection method for the application certificate system;

[0048] Figure 6 A flowchart of the sixth embodiment of the commercial password detection method for the application certificate system is provided;

[0049] Figure 7 A flowchart of the seventh embodiment of the commercial password detection method of the application certificate system is provided;

[0050] Figure 8 An interactive diagram provided for Embodiment 7 of the commercial password detection method for the application certificate system;

[0051] Fig. 9 A schematic diagram of the module structure of an embodiment of a commercial password detection device of the application certificate system;

[0052] Fig.10 This is a schematic diagram of the device structure of the hardware operating environment involved in a commercial password detection method for a certificate system in an embodiment of the present application.

[0053] Label:

[0054] Description of Figure Numbers:

[0055] 10. Information acquisition module; 20. Instruction sending module; 30. Result generation module; 1001. Processing device; 1002. Read-only memory; 1003. Storage device; 1004. Memory; 1005. Bus; 1006. I / O interface; 1007. Input device; 1008. Output device; 1009. Communication device.

[0056] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0057] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0058] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0059] The main solution of the embodiment of the present application is: if the secure channel establishment process is triggered, the device information of the node to be detected is obtained;

[0060] Generate a secure channel establishment instruction according to the device information of the node to be detected, and send the secure channel establishment instruction to the environment node to control the environment node to start the TLS secure channel creation process based on the device information, and generate first response information according to the execution result of the secure channel creation process;

[0061] Receive first response information sent by the environment node, and generate a first password detection result according to the first response information.

[0062] In the existing technology, the detection of Internet of Vehicles certificates only includes the interactive process authentication of the certificate system, and there is no commercial password detection for the certificate system. As a result, there may be security risks in the application of commercial passwords in the Internet of Vehicles system, and the information security of the Internet of Vehicles system cannot be fully guaranteed.

[0063] This application uses a detection device to verify whether the TLS secure channel can be successfully established between each communication node in the certificate system to verify whether the commercial password applied by the communication node is correct, thereby realizing automatic detection of the commercial password of the certificate system, solving the technical problem of how to detect the commercial password of the certificate system, improving the testing efficiency, and avoiding occasional human omissions.

[0064] This embodiment and the following embodiments are described by taking the detection device as the execution subject. The detection device includes a detection program to detect the correctness of the national encryption algorithm used by the certificate system, the correctness of the certificate, and the security of the secure channel between each node of the certificate system.

[0065] Based on this, the present application embodiment provides a commercial password detection method for a certificate system, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the commercial password detection method of the certificate application system.

[0066] In this embodiment, the commercial password detection method of the certificate system includes steps S10 to S30:

[0067] Step S10, if the secure channel establishment process is triggered, obtain the device information of the node to be detected;

[0068] It should be noted that the nodes to be tested include: the certificate system, the roadside equipment of the manufacturer to be tested, the supplier of the manufacturer to be tested, and the vehicle-mounted equipment of the manufacturer to be tested. After the secure channel establishment process is triggered, the detection device obtains the object information that needs to execute the TLS secure channel creation process.

[0069] Step S20, generating a secure channel establishment instruction according to the device information of the node to be detected, and sending the secure channel establishment instruction to the environment node to control the environment node to start the TLS secure channel creation process based on the device information, and generating a first response information according to the execution result of the secure channel creation process;

[0070] Step S30: receiving a first response message sent by the environment node, and generating a first password detection result according to the first response message.

[0071] It should be noted that a secure channel refers to an encrypted tunnel established in an unsafe network environment such as the Internet, which is used to protect the security of data transmission. The nodes to be tested include: the certificate system, the roadside equipment of the manufacturer to be tested, the supplier of the manufacturer to be tested, and the vehicle-mounted equipment of the manufacturer to be tested. The environmental nodes include: the vehicle-mounted equipment of the testing agency and the roadside equipment of the testing agency. The first response information contains information on the successful creation of the TLS secure channel or the failure of the TLS secure channel creation. The first cryptographic test result is that the SM2 algorithm and SM3 algorithm applied by the node to be tested have passed the test, or the application of the SM2 algorithm and SM3 algorithm applied by the node to be tested has failed the test.

[0072] In addition, it should be noted that the Certificate Authority (CA) is responsible for issuing various communication certificates or issuing Certificate Revocation Lists (CRL) to Internet of Vehicles devices (on-board devices, roadside devices, service providers), such as registered CA, pseudonymous CA, application CA, and Certificate Revocation Authority (CRA). The certificate system refers to a series of technical architectures and business processes established to support the daily operations and management of certificate authorities, and is responsible for functions such as issuing, storing, querying, and updating certificates. Through the certificate management system, the certificate authority can ensure the authenticity and validity of the certificate, and track and supervise the certificate holder or certificated organization. At the same time, the system can also provide online service functions for certificate holders or certificated organizations, such as certificate query and printing.

[0073] The on-board device (OBU) is actually installed on the vehicle and is the entity responsible for V2X communication (full name: Vehicle to Everything, i.e., wireless communication technology for vehicles). The on-board devices are divided into two categories: those sent by the inspection manufacturer and those sent by the inspection agency. When used as the inspection object, the on-board device of the inspection manufacturer is used; when used as part of the inspection environment to inspect other nodes of the certificate system, the on-board device of the inspection agency is used. The on-board device of the inspection agency supports three interfaces: OAuth, GBA's PKI architecture, and DCM. These three interfaces can be used to simulate the interaction with other nodes of the certificate system.

[0074] Roadside Unit (RSU) is actually installed in roadside traffic control equipment and traffic information release equipment, and is the entity responsible for V2X communication. Roadside equipment is divided into two categories: those sent by inspection manufacturers and those sent by inspection agencies. When used as a test object, the roadside equipment of the inspection manufacturer is used; when used as part of the test environment to detect other nodes of the certificate system, the roadside equipment of the inspection agency is used. The roadside equipment of the inspection agency supports three interfaces: OAuth, GBA's PKI architecture, and DCM. These three interfaces can be used to simulate interaction with other nodes of the certificate system.

[0075] The service provider (V2X Service Provider, VSP) is responsible for the management of road traffic and the service agency that provides certain commercial services in the Internet of Vehicles system, including: inspection manufacturer providers and testing agency simulation providers.

[0076] After triggering the secure channel establishment process, the detection device obtains the device information of the node to be detected to determine the object for establishing the secure channel. After receiving the secure channel establishment instruction, the environment node sends a handshake request to the corresponding node to be detected according to the device information of the node to be detected in the secure channel establishment instruction to establish a TLS secure channel between the node to be detected and the environment node. Figure 2 As shown, establishing a TLS secure channel includes: the testing agency roadside equipment establishes a TLS secure channel in the secure channel between the testing agency roadside equipment and the provider of the manufacturer to be inspected based on the secure channel establishment instruction sent by the testing equipment; the testing agency vehicle-mounted equipment establishes a TLS secure channel between the testing agency vehicle-mounted equipment and the certificate system based on the secure channel establishment instruction sent by the testing equipment; the testing agency vehicle-mounted equipment establishes a TLS secure channel between the testing agency vehicle-mounted equipment and the roadside equipment of the manufacturer to be inspected based on the secure channel establishment instruction sent by the testing equipment; the testing agency vehicle-mounted equipment establishes a TLS secure channel between the testing agency vehicle-mounted equipment and the provider of the manufacturer to be inspected based on the secure channel establishment instruction sent by the testing equipment.

[0077] Exemplarily, when the environmental node is a vehicle-mounted device of a testing organization and the node to be tested is a certificate system, first, the testing device sends a secure channel establishment instruction to the vehicle-mounted device of the testing organization. After receiving the secure channel establishment instruction, the vehicle-mounted device of the testing organization sends a handshake request to the certificate system to establish a TLS secure channel; secondly, the vehicle-mounted device of the testing organization and the certificate system use the SM2 algorithm and SM3 to exchange keys, record handshake messages and obtain session keys; thirdly, the vehicle-mounted device of the testing organization and the certificate system generate VerifyData based on the hash values ​​of all handshake messages, and include their respective VerifyData in the Finished message, encrypt it with the session key, and then send it to each other; finally, after receiving the Finished message, the vehicle-mounted device of the testing organization uses the same session key to decrypt it, extract the VerifyData, and then recalculate the VerifyData based on the handshake message recorded by itself using the same algorithm and key. If the calculated VerifyData is the same as the received VerifyData, a first response message indicating that the TLS secure channel is successfully established is generated, and the detection device generates a first cryptographic detection result indicating that the SM2 algorithm and SM3 algorithm applied by the certificate system pass the detection based on the first response message indicating that the TLS secure channel is successfully established; conversely, if the calculated VerifyData is different from the received VerifyData, a first response message indicating that the TLS secure channel fails to be established is generated, and the detection device generates a first cryptographic detection result indicating that the SM2 algorithm and SM3 algorithm applied by the certificate system fail the detection based on the first response message indicating that the TLS secure channel fails to be established.

[0078] The present application proposes a commercial password detection method for a certificate system. If a secure channel establishment process is triggered, the device information of the node to be detected is obtained to determine the device information of the object for establishing the secure channel; a secure channel establishment instruction is generated according to the device information of the node to be detected, and the secure channel establishment instruction is sent to the environment node to control the environment node to start the TLS secure channel creation process based on the device information, and a first response message is generated according to the execution result of the secure channel creation process, and a secure channel establishment request is sent to the environment node through a detection device to control the establishment of a secure channel between the environment node and the node to be detected, thereby verifying the security of the secure channels between the various communication nodes of the certificate system; the first response message sent by the environment node is received, and a first password detection result is generated according to the first response message, and whether the commercial password applied by the environment node is correct is confirmed by the result of whether the secure channel is successfully established.

[0079] In summary, the present application verifies whether the commercial password applied by the communication node is correct by detecting whether the TLS secure channel can be successfully established between the communication nodes in the certificate system through a detection device, thereby realizing automatic detection of the commercial password of the certificate system, solving the technical problem of how to detect the commercial password of the certificate system, improving the testing efficiency, and avoiding occasional human omissions.

[0080] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , after the step of receiving the first response information sent by the environment node and generating the first password detection result according to the first response information, the step also includes steps S40 to S60:

[0081] Step S40: if the first response information indicates that the secure channel is successfully established, then obtaining the environment node information of the successful secure channel establishment, and generating a communication instruction based on the environment node information of the successful secure channel establishment;

[0082] Step S50, sending the communication instruction to the environment node to control the environment node to start a message sending process based on the communication instruction and the successfully established secure channel, and generating a second response information according to the execution result of the message sending process;

[0083] Step S60: receiving a second response message sent by the environment node, and generating a second password detection result according to the second response message.

[0084] It should be noted that the second response information includes information on whether the communication message is successfully decrypted. The second password detection result is that the SM4 algorithm applied by the node to be detected passes the detection, or the SM4 algorithm applied by the node to be detected fails the detection.

[0085] In an embodiment of the present application, after the TLS secure channel is successfully established, since the environment node and the node to be detected use the SM4 algorithm for encrypted communication, if the node to be detected can normally decrypt the communication data sent by the environment node, it means that the SM4 algorithm applied by the node to be detected is correct; otherwise, the SM4 algorithm implementation of the node to be detected is incorrect.

[0086] For example, please refer to Figure 2 When the vehicle-mounted device of the testing organization and the certificate system successfully establish a TLS secure channel, the vehicle-mounted device of the testing organization sends a communication message encrypted using the SM4 algorithm to the certificate system based on the established TLS secure channel. If the certificate system can decrypt the communication message normally after receiving it, the message decryption is successful and the SM4 algorithm applied by the certificate system is correct. When the testing device receives the second response information indicating that the message is successfully decrypted, it generates a result indicating that the SM4 algorithm applied by the certificate system is correct; if the testing device receives the second response information indicating that the message decryption fails, it generates a result indicating that the SM4 algorithm applied by the certificate system is correct.

[0087] Based on the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the above-mentioned second embodiment can be referred to the above introduction, and will not be repeated in the following. On this basis, the method further includes step S70:

[0088] Step S70: Generate a commercial password detection result based on the first password detection result and the second password detection result.

[0089] It should be noted that the national secret algorithm is based on China's independently developed cryptographic technology. Compared with traditional or international encryption algorithms, it has higher security and more reliable encryption effects. Verifying the correctness of the national secret algorithm can ensure the effective implementation of the algorithm in the system, thereby improving the security of the entire system and preventing data leakage and illegal access.

[0090] When the first response information received by the detection device is that the secure channel is successfully established, and the second response information is that the communication message is successfully decrypted, it means that the SM2 algorithm, SM3 algorithm and SM3 algorithm applied at the inspection point to be inspected have all passed the inspection. At this time, the detection device generates a result that the commercial encryption test has passed. By performing commercial encryption testing, it can be verified whether the certificate system, the roadside equipment of the manufacturer to be inspected, the provider of the manufacturer to be inspected, and the vehicle-mounted equipment of the manufacturer to be inspected support and correctly implement the national encryption TLS protocol and related algorithms, which can ensure the communication security used in the Internet of Vehicles or other applications.

[0091] Based on the first embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 4 The commercial password detection method of the certificate system further includes steps A10 to A30:

[0092] Step A10, if the certificate download detection process is triggered, obtain the device information of the environment node;

[0093] Step A20, generating a certificate download detection instruction according to the device information of the environment node, and sending the certificate download detection instruction to the environment node to control the environment node to generate a certificate status query request based on the certificate download detection instruction, and sending the certificate status query request to the certificate system to obtain the environment node certificate information;

[0094] Step A30, receiving the environment node certificate information sent by the environment node, and generating a certificate download detection result according to the environment node certificate information.

[0095] like Figure 5 As shown, in an embodiment of the present application, the detection device sends a certificate download detection instruction to the detection agency vehicle-mounted equipment, the detection agency roadside equipment and the detection agency simulation supplier respectively. After receiving the certificate download detection instruction, the detection agency vehicle-mounted equipment, the detection agency roadside equipment and the detection agency simulation supplier each send a request to the certificate system to obtain the corresponding certificate information, and then send the corresponding certificate information to the detection device. After receiving the certificate information, the detection device determines the download status of the certificate from the certificate information and generates a corresponding certificate download detection result. Through the above steps, the detection device can accurately determine whether the certificate is successfully downloaded. If the certificate has been downloaded, it means that the environment node has obtained a valid digital certificate, which can be used for subsequent secure communication and data exchange; if the certificate of the environment node has not been downloaded, it is necessary to send a request to the certificate system to download the digital certificate.

[0096] In an embodiment of the present application, first, after receiving the certificate download detection instruction, the vehicle-mounted device of the testing agency calls the corresponding interface or API, and sends a certificate query request to the certificate system through a specified communication protocol (such as HTTPS, TCP / IP, etc.). The certificate query request contains the identity information, device information, certificate type and other necessary information of the requester. After receiving the request, the certificate system verifies the identity and authority of the requester. If the verification is successful, the certificate system will generate the corresponding certificate information and send the certificate information to the vehicle-mounted device of the testing agency through a secure communication channel. Secondly, the vehicle-mounted device of the testing agency sends its certificate information to the detection device, and after receiving the certificate information, the detection device stores it locally or in a specified storage location. If the certificate verification is successful and the certificate content meets expectations (such as containing correct device information, certificate type, etc.), the detection device will determine that the certificate download is successful. If any problems are found during the verification process (such as signature mismatch, certificate expired, etc.), the detection device will determine that the certificate download fails and may record corresponding error information or logs.

[0097] Based on the fourth embodiment of the present application, in the fifth embodiment of the present application, the same or similar content as the above-mentioned fourth embodiment can refer to the above introduction, and will not be repeated later. On this basis, after the step of receiving the environment node certificate information sent by the environment node and generating the certificate download detection result according to the environment node certificate information, it also includes:

[0098] If the certificate download detection result is that the environment node certificate has not been downloaded, obtaining the environment node information of the certificate that has not been downloaded, and generating a certificate download instruction based on the environment node information of the certificate that has not been downloaded;

[0099] A certificate download instruction is sent to the environment node that has not downloaded the certificate, so as to control the environment node that has not downloaded the certificate to request the certificate system to download the environment node certificate.

[0100] When the environment node does not have a downloaded certificate, the detection device sends a certificate download instruction to the environment node that has not downloaded the certificate to trigger the environment node that has not downloaded the certificate to send a request to the certificate system to download the certificate. In some embodiments of the present application, first, the environment node generates a pair of public keys and private keys. The public key is used to encrypt data or verify digital signatures, while the private key is used to decrypt data or generate digital signatures; then, the environment node uses its private key and related information (such as organization name, common name, email address, etc.) to create a certificate signing request and send the certificate signing request to the certificate system. Secondly, after receiving the certificate signing request, the certificate system verifies it to ensure the authenticity of the requester's identity and the legitimacy of the request. If the verification is passed, the certificate system will use its own private key to sign the information in the certificate and generate a digital certificate. Finally, the certificate is sent to the environment node.

[0101] Based on the fourth embodiment of the present application, in the sixth embodiment of the present application, the same or similar contents as those in the fourth embodiment can be referred to the above introduction, and will not be repeated in the following. Figure 6 , after the step of receiving the environment node certificate information sent by the environment node and generating the certificate download detection result according to the environment node certificate information, the step also includes steps A40 to A70:

[0102] Step A40: If the certificate download detection result is that the environment node certificate has been downloaded, then the environment node information of the downloaded certificate is obtained, and a certificate detection instruction is generated based on the environment node information of the downloaded certificate;

[0103] Step A50, sending the certificate detection instruction to the environment node that has downloaded the certificate, so as to control the environment node that has downloaded the certificate to load the environment node certificate;

[0104] Step A60, receiving and parsing the environment node certificate to obtain multiple fields of the environment node certificate;

[0105] Step A70, verifying whether the multiple fields meet the requirements, and generating a certificate consistency test result based on the verification result.

[0106] In an embodiment of the present application, the CertificateBase of the certificate includes fields such as version, type, issuer, toBeSigned, and signature. The version field specifies the version number of the certificate, and it is necessary to check whether it complies with the current or specified certificate format version requirements; the type field specifies the type of certificate (such as vehicle certificate, RSU certificate, etc.), and it will be checked whether the type is consistent with expectations; the issuer field identifies the issuer of the certificate, and it will verify whether the issuer is trustworthy and confirm whether it matches the certificate system (CA); the toBeSigned field contains the certificate information to be signed, and it will verify whether this part of the information is complete and has not been tampered with; the signature field contains the signature information of the certificate, and the signature is verified by using the issuer's public key to ensure its integrity and authenticity.

[0107] like Figure 5As shown, after the testing device receives the certificate sent from the testing agency's on-board equipment, the testing agency's roadside equipment, and the testing agency's simulated supplier, it parses the certificate to obtain each field of the certificate, and verifies the correctness of each field of the certificate one by one. If all fields meet the requirements, the certificate consistency test result is that the certificate consistency test passes; if any field is found to be non-compliant during the verification process, the certificate consistency test result is that the certificate consistency test fails, and the corresponding error message or log is recorded. If the certificate consistency test passes, it means that the certificate can be used for subsequent secure communications and data exchange; if the certificate consistency test fails, it is necessary to further troubleshoot the problem and take corresponding repair measures. By verifying the correctness of each field of the CertificateBase of the certificate, it helps to ensure the authenticity and validity of the certificate and prevent the forgery or tampering of the certificate.

[0108] Based on the first or sixth embodiment of the present application, in the seventh embodiment of the present application, the same or similar contents as those in the first or sixth embodiment can be referred to the above description, and will not be described in detail later. Figure 7 , the method further comprises steps B10 to B40:

[0109] Step B10, if the secure channel detection process is triggered, secure channel information between the nodes to be detected is obtained;

[0110] Step B20, generating a secure channel detection instruction according to the secure channel information between the nodes to be detected, and sending the secure channel detection instruction to the nodes to be detected, so as to control the nodes to be detected to start a communication process based on the secure channel information between the nodes to be detected;

[0111] Step B30, using a packet capture tool to capture the communication message in the communication process, and parsing and verifying the communication message to generate a verification result;

[0112] Step B40, generating a secure channel detection result according to the verification result.

[0113] like Figure 8As shown, in an embodiment of the present application, communication is performed through a secure channel between the vehicle-mounted device of the manufacturer to be inspected and the certificate system, between the roadside device of the manufacturer to be inspected and the certificate system, between the supplier of the manufacturer to be inspected and the certificate system, between the vehicle-mounted device of the manufacturer to be inspected and the roadside device of the manufacturer to be inspected, between the roadside device of the manufacturer to be inspected and the supplier of the manufacturer to be inspected, and between the vehicle-mounted device of the manufacturer to be inspected and the supplier of the manufacturer to be inspected. During the communication process, a packet capture tool (such as Wireshark) is used to capture the communication message, and the captured communication message is parsed. After parsing the communication message, verify whether the parsed communication message complies with the TLS (Transport Layer Security Protocol) specification, including checking whether the TLS handshake process is correct, whether the encryption suite is supported, whether the certificate is correctly exchanged and verified, etc. If all communication messages comply with the TLS protocol specification, the detection program will determine that the secure channel detection is passed; if any situation that does not comply with the TLS protocol specification is found during the verification process, the detection program will determine that the secure channel detection fails, and may record corresponding error information or logs.

[0114] It should be noted that the full name of TLS is Transport Layer Security, which is a widely used network security protocol used to provide confidentiality, data integrity and authenticity between two communicating applications. Packet capture tools are software used to intercept and view the contents of network data packets. Their main function is to obtain useful information by capturing and analyzing data packets in the network. Common packet capture tools include: Wireshark, Tcpdump, Sniffer, Charles, etc.

[0115] Through the above steps, the secure channel communication between the vehicle-mounted equipment, roadside equipment and suppliers of the inspection factory and the certificate system, as well as between the vehicle-mounted equipment, roadside equipment and suppliers of the inspection factory can be fully tested. Verifying whether the communication message complies with the TLS protocol specification ensures the security of the communication process and prevents security risks such as data leakage and tampering.

[0116] This application also provides a commercial password detection device for a certificate system, please refer to Fig. 9 , the commercial password detection device of the certificate system comprises:

[0117] The information acquisition module 10 is used to obtain the device information of the node to be detected when the secure channel establishment process is triggered;

[0118] An instruction sending module 20, configured to generate a secure channel establishment instruction according to the device information of the node to be detected, and send the secure channel establishment instruction to the environment node to control the environment node to start the TLS secure channel creation process based on the device information, and generate a first response information according to the execution result of the secure channel creation process;

[0119] The result generating module 30 is configured to receive the first response information sent by the environment node and generate a first password detection result according to the first response information.

[0120] The commercial password detection device of a certificate system provided by the present application adopts the commercial password detection method of the certificate system in the above embodiment, which can solve the technical problem of how to detect the commercial password of the certificate system. Compared with the prior art, the beneficial effects of the commercial password detection device of a certificate system provided by the present application are the same as the beneficial effects of the commercial password detection method of the certificate system provided by the above embodiment, and the other technical features of the commercial password detection device of the certificate system are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0121] The present application provides a commercial password detection device for a certificate system, the commercial password detection device for a certificate system comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the commercial password detection method for the certificate system in the above-mentioned embodiment one.

[0122] Reference below Fig.10 , which shows a schematic diagram of the structure of a commercial password detection device suitable for implementing the certificate system of the embodiment of the present application. The commercial password detection device of the certificate system in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The commercial password detection device of the certificate system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0123] like Fig.10As shown, the commercial password detection device of the certificate system may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the commercial password detection device of the certificate system are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the commercial password detection device of the certificate system to communicate wirelessly or wired with other devices to exchange data. Although the commercial password detection device of the certificate system with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0124] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0125] The commercial password detection device of the certificate system provided by the present application adopts the commercial password detection method of the certificate system in the above embodiment, which can solve the technical problem of how to detect the commercial password of the certificate system. Compared with the prior art, the beneficial effects of the commercial password detection device of the certificate system provided by the present application are the same as the beneficial effects of the commercial password detection method of the certificate system provided by the above embodiment, and the other technical features of the commercial password detection device of the certificate system are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0126] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0127] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0128] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the commercial password detection method of the certificate system in the above-mentioned embodiment.

[0129] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0130] The computer-readable storage medium may be included in the commercial password detection device of the certificate system; or may exist independently without being assembled into the commercial password detection device of the certificate system.

[0131] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the commercial password detection device of the certificate system, the commercial password detection device of the certificate system: if the secure channel establishment process is triggered, obtain the device information of the node to be detected; generate a secure channel establishment instruction according to the device information of the node to be detected, and send the secure channel establishment instruction to the environment node to control the environment node to start the TLS secure channel creation process based on the device information, and generate a first response information according to the execution result of the secure channel creation process;

[0132] Receive first response information sent by the environment node, and generate a first password detection result according to the first response information.

[0133] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0134] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0135] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0136] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the commercial password detection method of the above-mentioned certificate system, and can solve the technical problem of how to perform commercial password detection on the certificate system. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the commercial password detection method of the certificate system provided in the above-mentioned embodiment, and will not be repeated here.

[0137] The present application also provides a computer program product, including a computer program, which implements the steps of the commercial password detection method of the certificate system as described above when the computer program is executed by a processor.

[0138] The computer program product provided by this application can solve the technical problem of how to detect commercial passwords in a certificate system. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the commercial password detection method of the certificate system provided by the above embodiment, which will not be repeated here.

[0139] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A commercial password detection method for a vehicle networking certificate system, It is characterized in that Applied to a detection device, the detection device is communicatively connected with an environment node and a node to be detected; The nodes to be tested include: a certificate system, roadside equipment of the manufacturer to be tested, a supplier of the manufacturer to be tested, and an on-board equipment of the manufacturer to be tested; the environmental nodes include: on-board equipment of the testing organization and roadside equipment of the testing organization, and the method includes: If the secure channel establishment process is triggered, obtain the device information of the node to be detected; Generate a secure channel establishment instruction according to the device information of the node to be detected, and send the secure channel establishment instruction to the environment node to control the environment node to start the TLS secure channel creation process based on the device information, and generate first response information according to the execution result of the secure channel creation process; receiving a first response message sent by the environment node, and generating a first password detection result according to the first response message, wherein the first password detection result is that the SM2 algorithm and the SM3 algorithm applied by the node to be detected pass the detection, or the SM2 algorithm and the SM3 algorithm applied by the node to be detected fail the detection; The TLS secure channel includes: a TLS secure channel between the roadside equipment of the testing agency and the supplier of the manufacturer submitting the inspection, a TLS secure channel between the vehicle-mounted equipment of the testing agency and the certificate system, a TLS secure channel between the vehicle-mounted equipment of the testing agency and the roadside equipment of the manufacturer submitting the inspection, and a TLS secure channel between the vehicle-mounted equipment of the testing agency and the supplier of the manufacturer submitting the inspection.

2. The method according to claim 1, It is characterized in that Applied to a detection device, the detection device is in communication connection with an environment node and a node to be detected, and after the step of receiving a first response message sent by the environment node and generating a first password detection result according to the first response message, the method further includes: If the first response information indicates that the secure channel is successfully established, obtaining environment node information of the successful secure channel establishment, and generating a communication instruction based on the environment node information of the successful secure channel establishment; Sending the communication instruction to the environment node to control the environment node to start a message sending process based on the communication instruction and the successfully established secure channel, and generating second response information according to the execution result of the message sending process; Receive second response information sent by the environment node, and generate a second password detection result according to the second response information.

3. The method according to claim 2, It is characterized in that Applied to a detection device, the detection device is communicatively connected with an environment node and a node to be detected, and the method further comprises: A commercial password detection result is generated based on the first password detection result and the second password detection result.

4. The method according to claim 1, It is characterized in that Applied to a detection device, the detection device is communicatively connected with an environment node and a node to be detected, and the method further comprises: If the certificate download detection process is triggered, obtain the device information of the environment node; Generate a certificate download detection instruction according to the device information of the environment node, and send the certificate download detection instruction to the environment node to control the environment node to generate a certificate status query request based on the certificate download detection instruction, and send the certificate status query request to the certificate system to obtain the environment node certificate information; The environment node certificate information sent by the environment node is received, and a certificate download detection result is generated according to the environment node certificate information.

5. The method according to claim 4, It is characterized in that Applied to a detection device, the detection device is in communication connection with an environment node and a node to be detected, and after the step of receiving the environment node certificate information sent by the environment node and generating a certificate download detection result according to the environment node certificate information, it also includes: If the certificate download detection result is that the environment node certificate has not been downloaded, obtaining the environment node information of the certificate that has not been downloaded, and generating a certificate download instruction based on the environment node information of the certificate that has not been downloaded; A certificate download instruction is sent to the environment node that has not downloaded the certificate, so as to control the environment node that has not downloaded the certificate to request the certificate system to download the environment node certificate.

6. The method according to claim 4, It is characterized in that Applied to a detection device, the detection device is in communication connection with an environment node and a node to be detected, and after the step of receiving the environment node certificate information sent by the environment node and generating a certificate download detection result according to the environment node certificate information, it also includes: If the certificate download detection result is that the environment node certificate has been downloaded, obtaining the environment node information of the downloaded certificate, and generating a certificate detection instruction based on the environment node information of the downloaded certificate; Sending the certificate detection instruction to the environment node that has downloaded the certificate, so as to control the environment node that has downloaded the certificate to load the environment node certificate; Receiving and parsing the environment node certificate to obtain multiple fields of the environment node certificate; Verify whether the multiple fields meet the requirements, and generate a certificate consistency test result based on the verification result.

7. The method according to any one of claims 1 or 6, It is characterized in that Applied to a detection device, the detection device is communicatively connected with an environment node and a node to be detected, and the method further comprises: If the secure channel detection process is triggered, secure channel information between nodes to be detected is obtained; Generate a secure channel detection instruction according to the secure channel information between the nodes to be detected, and send the secure channel detection instruction to the node to be detected to control the node to be detected to start a communication process based on the secure channel information between the nodes to be detected; Using a packet capture tool to capture the communication messages in the communication process, and parsing and verifying the communication messages to generate a verification result; A secure channel detection result is generated according to the verification result.

8. A commercial password detection device for a certificate system, It is characterized in that The detection device is connected to the environment node and the node to be detected in communication, the node to be detected includes: a certificate system, a roadside device of the manufacturer to be inspected, a supplier of the manufacturer to be inspected, and a vehicle-mounted device of the manufacturer to be inspected; the environment node includes: a vehicle-mounted device of the detection organization and a roadside device of the detection organization, and the device includes: The information acquisition module is used to obtain the device information of the node to be detected when the secure channel establishment process is triggered; An instruction sending module is used to generate a secure channel establishment instruction according to the device information of the node to be detected, and send the secure channel establishment instruction to the environment node to control the environment node to start a TLS secure channel creation process based on the device information, and generate a first response information according to the execution result of the secure channel creation process, wherein the TLS secure channel includes: a TLS secure channel between the roadside equipment of the detection agency and the supplier of the manufacturer to be inspected, a TLS secure channel between the vehicle-mounted equipment of the detection agency and the certificate system, a TLS secure channel between the vehicle-mounted equipment of the detection agency and the roadside equipment of the manufacturer to be inspected, and a TLS secure channel between the vehicle-mounted equipment of the detection agency and the supplier of the manufacturer to be inspected; A result generation module is used to receive a first response message sent by the environment node, and generate a first password detection result based on the first response message, wherein the first password detection result is that the SM2 algorithm and the SM3 algorithm applied by the node to be detected pass the detection, or the SM2 algorithm and the SM3 algorithm applied by the node to be detected fail the detection.

9. A commercial password detection device for a certificate system, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the commercial password detection method of the certificate system according to any one of claims 1 to 7.

10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the commercial password detection method of the certificate system according to any one of claims 1 to 7 are implemented.