Off-line vehicle-mounted equipment digital certificate updating and logout method and device and computer equipment

Through the interaction between on-board equipment and surrounding V2X equipment, candidate equipment is determined and the certificate update or cancellation process is completed, which solves the problem of on-board equipment being unable to update or cancel digital certificates when the network is abnormal, ensuring the security and stability of V2X communications.

CN118714566APending Publication Date: 2024-09-27SHENZHEN GENVICT TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410859260.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In-vehicle equipment cannot update or cancel digital certificates in time when encountering network abnormalities, affecting the normal use of V2X secure communication and application functions.

Method used

Through the interaction between the main vehicle-mounted device and the surrounding V2X device, the device information and network status are obtained, the available candidate devices are determined, whether the digital certificate needs to be updated or canceled, and the corresponding request is sent to the candidate device. After verification, the candidate device communicates with the LTE-V2X certificate authority Establish a secure connection and complete the certificate update or logout process.

Benefits of technology

It solves the problem of in-vehicle equipment being unable to update or cancel digital certificates in time due to network abnormalities, ensuring the security and reliability of V2X communications, especially in mobile scenarios, providing continuous security and reducing communication interruptions caused by certificate issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714566A
    Figure CN118714566A
Patent Text Reader

Abstract

The embodiment of the invention discloses an offline vehicle-mounted equipment digital certificate updating and logout method and device and computer equipment. The method comprises the following steps: acquiring an information list and a device network state of peripheral V2X devices; determining a candidate device; judging whether the main vehicle-mounted equipment needs to update the digital certificate or not; if yes, a certificate updating request is sent to the candidate equipment, so that the candidate equipment verifies the certificate updating request, under the condition that the certificate updating request is qualified, the candidate equipment establishes secure connection with the certificate authority and forwards the certificate updating request, the certificate authority verifies the certificate updating request, and under the condition that the certificate updating request is qualified, the candidate equipment establishes secure connection with the certificate authority; returning the encrypted update certificate to the candidate device, and transmitting the update certificate by the candidate device; and receiving the encrypted update certificate from the candidate device, decrypting the update certificate and storing the decrypted update certificate. By implementing the method provided by the embodiment of the invention, the problem that the digital certificate cannot be updated or logged out in time when the vehicle-mounted equipment encounters network abnormality in the existing application can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a digital certificate processing method, and more specifically to an offline vehicle-mounted device digital certificate updating and cancellation method, device and computer equipment. Background Art

[0003] In the vehicle-road collaboration scenario, it is crucial to ensure the legitimacy of the data source and prevent counterfeit or forged data transmission. V2X (Vehicle to Everything) on-board devices must comply with strict authentication security requirements when accessing the certificate authority system and communicating between devices. Specifically, the certificate authority system authorizes digital certificates to on-board devices. These digital certificates ensure the integrity of information transmission and the non-repudiation of information interaction. In the certificate management process, confidentiality protection of interactive messages should also be supported as needed to ensure that information is not eavesdropped during transmission and to avoid leaking V2X device identity information and car owner's private information.

[0004] In order to obtain security credentials, the vehicle-mounted device needs to apply to the LTE-V2X certificate authority, which includes the registration certificate authority, the application certificate authority, and the pseudonym certificate authority. The pseudonym certificate authority regularly issues multiple pseudonym certificates with the same validity period to the vehicle-mounted device to protect the privacy of the vehicle's driving path. The vehicle-mounted device regularly replaces the pseudonym certificate used for message signing according to the usage policy. Due to the limited validity period of digital certificates, in order to ensure the reliability of V2X technology, the vehicle-mounted device must update the digital certificate in a timely manner. Usually, the vehicle-mounted device applies to the certificate issuance system for an update before the digital certificate is about to expire. At the same time, if the device is found to have abnormal behavior, the abnormal behavior should be reported to the Abnormal Behavior Management Agency (MA) in a timely manner, and the relevant certificates (such as pseudonym certificates, application certificates, and identity certificates) should be requested to be revoked, and a certificate revocation list (CRL) should be generated.

[0005] However, since the on-board equipment may move with the vehicle or encounter communication module abnormalities and fail to connect to the CA platform in time, the digital certificate cannot be updated or cancelled, which affects the normal use of V2X safety communication authentication and application functions.

[0006] Therefore, it is necessary to design a new method to solve the problem that the digital certificate cannot be updated or cancelled in time when the vehicle-mounted equipment encounters network anomalies in existing applications. Summary of the invention

[0008] The purpose of the present invention is to overcome the defects of the prior art and provide a method, device and computer equipment for updating and canceling the digital certificate of an offline vehicle-mounted device.

[0009] To achieve the above object, the present invention adopts the following technical solution: a method for updating and canceling a digital certificate of an offline vehicle-mounted device, comprising: When the main vehicle-mounted device exchanges information with surrounding V2X devices, it obtains the information list and device network status of surrounding V2X devices; Determine candidate devices based on the information list of surrounding V2X devices and the device network status; Determine whether the subject vehicle-mounted device needs to update the digital certificate; If the subject vehicle-mounted device needs to update the digital certificate, a certificate update request is sent to the candidate device, so that the candidate device verifies the certificate update request. If the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request. The LTE-V2X certificate authority verifies the certificate update request. If the certificate update request is qualified, the encrypted update certificate is returned to the candidate device, which is transmitted by the candidate device. The encrypted update certificate is received from the candidate device, and the encrypted update certificate is decrypted and stored.

[0010] A further technical solution is: after determining whether the subject vehicle-mounted device needs to update the digital certificate, it also includes: If the main vehicle-mounted device does not need to update the digital certificate and the main vehicle-mounted device needs to cancel the digital certificate, a digital certificate cancellation request is sent to the candidate device, so that the candidate device verifies the digital certificate cancellation request, and after the digital certificate cancellation request is a qualified request, the candidate device reports it to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

[0011] A further technical solution is as follows: determining the candidate device according to the information list of the surrounding V2X devices and the device network status includes: Filter out surrounding V2X devices with good network status to obtain a candidate set; One of the devices is selected from the candidate set as a candidate device according to the trust policy priority.

[0012] Its further technical solution is: if the subject vehicle-mounted device needs to update the digital certificate, a certificate update request is sent to the candidate device, and the candidate device verifies the certificate update request. If the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request. The LTE-V2X certificate authority verifies the certificate update request. If the certificate update request is qualified, the encrypted update certificate is returned to the candidate device, and the candidate device transmits it, including: Select the type of digital certificate that needs to be updated; Generate a certificate renewal request based on the selected digital certificate type; A certificate update request is sent to the candidate device, so that the candidate device verifies the validity and integrity of the certificate update request using the signature public key of the subject vehicle-mounted device. If the certificate update request is verified to be qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request. The LTE-V2X certificate authority decrypts and verifies the signature of the certificate update request and the validity of the original digital certificate. If the verification is qualified, a new digital certificate is returned and issued, and the new digital certificate is encrypted using the old information, and transmitted to the candidate device, which is then transmitted by the candidate device.

[0013] A further technical solution is: generating a certificate update request according to the selected digital certificate type includes: When the digital certificate type is EC, a new signature public-private key pair is generated, and an EC update request is generated. It is self-signed with the newly generated private key, and then signed with the existing, unexpired EC certificate private key. The update request is encrypted with the generated private key to obtain a certificate update request. When the digital certificate type is PC, the request is signed with the EC certificate private key and then encrypted with the generated private key to obtain a certificate update request.

[0014] The further technical solution is: if the subject vehicle-mounted device does not need to update the digital certificate, and the subject vehicle-mounted device needs to cancel the digital certificate, a digital certificate cancellation request is sent to the candidate device, so that the candidate device verifies the digital certificate cancellation request, and after the digital certificate cancellation request is a qualified request, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy, including: If the subject vehicle-mounted device does not need to update the digital certificate, and the subject vehicle-mounted device needs to cancel the digital certificate, an abnormal behavior report is generated and signed with a signature private key to obtain a digital certificate cancellation request; A digital certificate revocation request is sent to a candidate device, so that the candidate device verifies the validity and integrity of the digital certificate revocation request. After the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

[0015] A further technical solution is: the digital certificate revocation request is sent to the candidate device, so that the candidate device verifies the validity and integrity of the digital certificate revocation request, and after the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy, including: Send a digital certificate revocation request to the candidate device, so that the candidate device verifies the validity and integrity of the digital certificate revocation request, and after the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency determines whether the digital certificate needs to be revoked according to the abnormal behavior decision-making strategy. When revocation is required, the management agency publishes a certificate revocation list and sends it to the candidate device, which is forwarded by the candidate device to the main vehicle-mounted device; The certificate revocation list is received to revoke the digital certificate.

[0016] The present invention also provides an offline vehicle-mounted device digital certificate update and cancellation device, comprising: An acquisition unit is used to acquire information lists and device network status of surrounding V2X devices when the main vehicle-mounted device exchanges information with surrounding V2X devices; A candidate device determination unit, configured to determine a candidate device based on an information list of surrounding V2X devices and a device network status; A judging unit, used to judge whether the subject vehicle-mounted device needs to update the digital certificate; An updating unit, configured to send a certificate update request to the candidate device if the subject vehicle-mounted device needs to update the digital certificate, so that the candidate device verifies the certificate update request, and if the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request, and the LTE-V2X certificate authority verifies the certificate update request, and if the certificate update request is qualified, returns the encrypted update certificate to the candidate device, which is transmitted by the candidate device; The receiving unit is used to receive the encrypted update certificate from the candidate device, decrypt it and store it.

[0017] Its further technical solution is: also includes: The cancellation unit is used to generate a new signature public-private key pair and an EC update request when the digital certificate type is EC, self-sign with the newly generated private key, and then sign with the existing, unexpired EC certificate private key, and encrypt the update request with the generated private key to obtain a certificate update request; when the digital certificate type is PC, sign with the EC certificate private key and then encrypt the request with the generated private key to obtain a certificate update request.

[0018] The present invention further provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor implements the above method when executing the computer program.

[0019] Compared with the prior art, the present invention has the following beneficial effects: the present invention obtains device information and network status through the interaction between the main vehicle-mounted device and the surrounding V2X devices, and determines the available candidate devices; determines whether the main vehicle-mounted device needs to update the digital certificate, and if so, sends a certificate update request to the candidate device; after the candidate device verifies the request, it establishes a secure connection with the LTE-V2X certificate authority, forwards the certificate update request and obtains the encrypted update certificate, and transmits it to the main vehicle-mounted device; if the main vehicle-mounted device does not need to update the certificate but needs to be deregistered, it sends a deregistration request to the candidate device, and the candidate device reports to the abnormal behavior management agency after verification, and executes the certificate revocation process according to the policy; solves the problem that the digital certificate cannot be updated or deregistered in time when the vehicle-mounted device encounters network anomalies in existing applications.

[0020] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0023] Figure 1 A schematic diagram of an application scenario of the method for updating and canceling a digital certificate of an offline vehicle-mounted device provided in an embodiment of the present invention; Figure 2 A schematic diagram of a process for updating and canceling a digital certificate of an offline vehicle-mounted device provided by an embodiment of the present invention; Figure 3 A schematic diagram of a sub-process of a method for updating and canceling a digital certificate of an offline vehicle-mounted device provided in an embodiment of the present invention; Figure 4 A schematic diagram of a sub-process of a method for updating and canceling a digital certificate of an offline vehicle-mounted device provided in an embodiment of the present invention; Figure 5 A schematic diagram of a sub-process of a method for updating and canceling a digital certificate of an offline vehicle-mounted device provided in an embodiment of the present invention; Figure 6 A schematic diagram of a sub-process of a method for updating and canceling a digital certificate of an offline vehicle-mounted device provided in an embodiment of the present invention; Figure 7 A schematic block diagram of an offline vehicle-mounted device digital certificate update and cancellation device provided by an embodiment of the present invention; Figure 8 A schematic block diagram of a candidate device determination unit of an offline vehicle-mounted device digital certificate update and cancellation device provided by an embodiment of the present invention; Fig. 9A schematic block diagram of an updating unit of an offline vehicle-mounted device digital certificate updating and cancellation device provided by an embodiment of the present invention; Fig.10 A schematic block diagram of a cancellation unit of an offline vehicle-mounted device digital certificate update and cancellation device provided by an embodiment of the present invention; Fig.11 A schematic block diagram of a certificate cancellation subunit of an offline vehicle-mounted device digital certificate update and cancellation device provided by an embodiment of the present invention; Fig.12 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0027] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0028] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0029] See also Figure 1 and Figure 2 , Figure 1 A schematic diagram of an application scenario of the method for updating and canceling a digital certificate of an offline vehicle-mounted device provided in an embodiment of the present invention. Figure 2 A schematic flow chart of a method for updating and canceling a digital certificate of an offline vehicle-mounted device provided in an embodiment of the present invention. The method for updating and canceling a digital certificate of an offline vehicle-mounted device is applied to a main vehicle-mounted device, which can be Figure 2The first vehicle-mounted device in the communication system may also be the second vehicle-mounted device. The first vehicle-mounted device, the second vehicle-mounted device and the third V2X device interact with each other. They are installed on the vehicle and the road test device respectively and are responsible for the implementation of V2X communication. These devices rely on digital certificates to ensure the security and reliability of information during data transmission and reception. First, the vehicle-mounted device and the road test device each hold their own V2X certificates and corresponding private keys. When sending data, OBU and RSU use their own V2X certificates to digitally sign the information to ensure the integrity and authenticity of the information. In addition, they can also use the recipient's V2X certificate public key to encrypt the data to protect the confidentiality of the data. When receiving data, OBU and RSU verify and decrypt the message according to the sender's V2X certificate public key to ensure the security and credibility of the data. In order to effectively manage these certificates, there are special certificate authorities responsible for issuing various digital certificates and managing their lifecycles. These certificate authorities include certificate authorities, registration authorities, abnormal behavior management authorities and certification authorities. They interact with onboard devices and V2X devices by establishing secure connections, supporting the application, download, update and cancellation of digital certificates, thereby ensuring the security and reliability of the entire V2X communication system; through the use of multiple measures such as secure environment, application layer encryption and transport layer security protocol, the first onboard device, the second onboard device and the third V2X device can achieve secure information interaction between vehicles and vehicles (V2V) and vehicles and infrastructure (V2I), and also support secure communication between vehicles and pedestrians (V2P). These measures not only ensure the confidentiality and integrity of data, but also provide a solid security foundation for the development of intelligent transportation systems.

[0030] Figure 2 FIG. 1 is a flow chart of a method for updating and canceling a digital certificate of an offline vehicle-mounted device provided by an embodiment of the present invention. Figure 2 As shown, the method includes the following steps S110 to S160.

[0031] S110: When the main vehicle-mounted device exchanges information with surrounding V2X devices, the information list and device network status of the surrounding V2X devices are obtained.

[0032] In this embodiment, the vehicle-mounted device, as the main vehicle-mounted device, sends and receives safety messages through V2X communication, and exchanges information with surrounding V2X devices, including at least one or more of the vehicle-mounted device, roadside device, and service provider. The main vehicle-mounted device exchanges information with surrounding V2X devices through V2X communication. This includes requesting the surrounding devices to send their information list and the network status of the current device. The information list may include device ID, location, speed, direction, etc.

[0033] S120. Determine candidate devices according to the information list of surrounding V2X devices and the device network status.

[0034] In this embodiment, after receiving the information list of surrounding V2X devices, the subject vehicle device will analyze and process these devices. It can evaluate the availability and suitability of each device based on the network status of the device (such as accessibility, communication quality, etc.) and other information in the information list. Based on the above analysis, the subject vehicle device will determine a group of candidate devices that are most likely to be the objects of communication. This decision is usually based on factors such as the location, speed, distance, signal strength and reliability of the device.

[0035] By acquiring and analyzing the information of surrounding V2X devices, the main vehicle-mounted device can select the communication object more effectively. This intelligent selection can reduce interference and conflicts in communication, thereby improving the overall network efficiency; with the help of the network status information of the device, the main vehicle-mounted device can avoid selecting devices with poor communication quality or unreliable communication paths. This helps to improve the reliability and stability of communication, which is especially important in dynamic traffic environments; after determining the candidate devices, the main vehicle-mounted device can allocate communication resources such as bandwidth and processing power in a targeted manner to maximize the benefits and utilization of communication. This optimization can improve the performance and response speed of the overall system; by selecting trusted and appropriate communication objects, the main vehicle-mounted device can reduce the risk of malicious attacks or illegal interference. This helps to ensure the security and protection capabilities of the V2X communication system.

[0036] In summary, refining and optimizing the information interaction between the main vehicle-mounted equipment and the surrounding V2X devices and the candidate device determination process not only improves communication efficiency and reliability, but also optimizes resource utilization and enhances system security, which helps to achieve the smooth operation and sustainable development of the intelligent transportation system.

[0037] In one embodiment, see Figure 3 , the above-mentioned step S120 may include steps S121~S122.

[0038] S121. Filter out surrounding V2X devices with good network status to obtain a candidate set.

[0039] In this embodiment, the received information is analyzed to evaluate the network status of each peripheral device. The criteria for a good network status may include high communication quality, strong signal strength, high stability, etc.; preset screening conditions (such as minimum signal strength, maximum communication distance, etc.) are applied to select devices with a good network status. These conditions help ensure that the candidate device set contains reliable and stable communication objects; peripheral devices that meet the screening conditions are added to the candidate set as the basis for the next selection of communication objects.

[0040] S122: Select one of the devices from the candidate set as a candidate device according to the trust policy priority.

[0041] In this embodiment, trust policies for different devices are predefined, such as device-based authentication, credibility assessment, historical communication records, etc. These policies can be prioritized according to the requirements of security and communication reliability. Apply the trust policy to each device in the candidate device set to evaluate its compliance and credibility. This involves checking the digital certificate of the device, verifying the identity of the device, analyzing past communication performance, etc. Sort the devices in the candidate device set according to the preset trust policy priority. Generally, devices with high trust, strong security, and good historical communication are given priority; finally, the device with the highest priority is selected from the sorted candidate devices as the object of this communication. This selection should meet the requirements of security, stability, and efficiency to ensure reliable communication in a dynamic traffic environment.

[0042] By refining these steps, the main vehicle equipment can intelligently select the appropriate communication partner in V2X communication to improve the efficiency and safety of the system and ensure effective communication between vehicles and between vehicle infrastructure.

[0043] S130: Determine whether the subject vehicle-mounted device needs to update the digital certificate.

[0044] S140. If the main vehicle-mounted device needs to update the digital certificate, a certificate update request is sent to the candidate device, so that the candidate device verifies the certificate update request. If the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request. The LTE-V2X certificate authority verifies the certificate update request. If the certificate update request is qualified, the encrypted update certificate is returned to the candidate device, which is transmitted by the candidate device.

[0045] In one embodiment, see Figure 4 The above-mentioned step S140 may include steps S141~S143.

[0046] S141. Select the type of digital certificate that needs to be updated.

[0047] In this embodiment, the main vehicle-mounted device selects the certificates that need to be updated or reapplied for according to its needs. These certificates include the registration certificate EC (Enrolment Certificate), which is issued by the registration certificate authority and is valid for 3 years. The registration certificate must be renewed immediately after expiration, and there is no transition time. In addition, it also includes a pseudonym certificate PC (Pseudonym Certificate) applied for through the registration certificate, which is valid for 7 days. Within 1 hour after the end of the pseudonym certificate's validity period, a new pseudonym certificate needs to be downloaded again. The old pseudonym certificate remains valid during this period until it is automatically revoked after the end of its validity period.

[0048] S142: Generate a certificate update request according to the selected digital certificate type.

[0049] In this embodiment, when the digital certificate type is EC, a new signature public-private key pair is generated, and an EC update request is generated. The newly generated private key is used to self-sign, and then the existing, unexpired EC certificate private key is used to sign, and the update request is encrypted with the generated private key to obtain a certificate update request. When the digital certificate type is PC, the request is signed with the EC certificate private key and then encrypted with the generated private key to obtain a certificate update request.

[0050] Specifically, if the registration certificate needs to be updated, the subject vehicle device needs to perform the following steps: first, the subject vehicle device generates a new signature public-private key pair; uses the newly generated private key to make an update request for the registration certificate EC and signs it by itself; uses the private key corresponding to the old registration certificate EC that has not expired to sign the update request; uses the private key previously generated by the device to encrypt the update request.

[0051] For the application request of the pseudonym certificate PC, the subject vehicle-mounted device performs the following steps: using the private key corresponding to the registration certificate EC, the application request of the pseudonym certificate PC is signed; using the private key previously generated by the device, the signed request is encrypted.

[0052] Finally, whether it is a request to update the registration certificate or an application request for a pseudonym certificate PC, the request must be finally signed using the previously generated signature private key.

[0053] S143. Send a certificate update request to the candidate device, so that the candidate device can verify the validity and integrity of the certificate update request using the signature public key of the subject vehicle-mounted device. If the certificate update request is verified to be qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request. The LTE-V2X certificate authority decrypts and verifies the signature of the certificate update request and the validity of the original digital certificate. If the verification is qualified, a new digital certificate is returned and issued, and the new digital certificate is encrypted using the old information, and transmitted to the candidate device, which is then transmitted by the candidate device.

[0054] S150: Receive the encrypted update certificate from the candidate device, decrypt it and store it.

[0055] In this embodiment, the subject vehicle-mounted device sends an update request message to the candidate device. After receiving the request, the candidate device uses the signature public key of the subject vehicle-mounted device to verify the validity and integrity of the request. If the verification is successful, the candidate device will forward the update request to the corresponding certificate authority, including the registration certificate authority and the pseudonym certificate authority. After receiving the request, the certificate authority will use the encrypted private key to decrypt the request for the registration certificate update request, verify the signature of the request and the validity of the original EC certificate, and then issue a new EC certificate. The certificate authority will also use the old information of the subject vehicle-mounted device (such as the hash value of the old EC or PC certificate) to encrypt the new certificate to ensure the integrity and security of the data. The pseudonym certificate authority will issue multiple pseudonym certificates with the same validity period to the V2X device, so that the V2X device can regularly replace the certificate used for message signing according to the policy. In addition, it will also issue the certificates that need to be updated by the subject vehicle-mounted device, including one or more of the registration certificate, identity certificate, application certificate or pseudonym certificate to the candidate device. After receiving the certificate update request response, the candidate device will forward it to the subject vehicle-mounted device. After receiving the new encryption certificate, the subject vehicle device will use the old EC or agreed PC certificate hash value to decrypt the certificate and save it locally.

[0056] This process involves communication and collaboration between the subject vehicle device, candidate device and certificate authority to ensure the update and security of the registration certificate and pseudonym certificate of the V2X device.

[0057] S160. If the main vehicle-mounted device does not need to update the digital certificate, and the main vehicle-mounted device needs to cancel the digital certificate, a digital certificate cancellation request is sent to the candidate device, so that the candidate device verifies the digital certificate cancellation request, and after the digital certificate cancellation request is a qualified request, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

[0058] In one embodiment, see Figure 5 , the above-mentioned step S120 may include steps S161~S162.

[0059] S161. If the subject vehicle-mounted device does not need to update the digital certificate and the subject vehicle-mounted device needs to cancel the digital certificate, an abnormal behavior report is generated and signed with a signature private key to obtain a digital certificate cancellation request; S162. Send a digital certificate revocation request to the candidate device, so that the candidate device verifies the validity and integrity of the digital certificate revocation request. After the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

[0060] In one embodiment, see Figure 6 , the above-mentioned step S162 may include steps S1621~S1622.

[0061] S1621. Send a digital certificate revocation request to the candidate device, so that the candidate device verifies the validity and integrity of the digital certificate revocation request. After the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency determines whether the digital certificate needs to be revoked according to the abnormal behavior decision-making strategy. When revocation is required, the management agency issues a certificate revocation list and sends it to the candidate device, which is forwarded to the subject vehicle-mounted device by the candidate device; S1622. Receive the certificate revocation list to revoke the digital certificate.

[0062] In this embodiment, the main vehicle-mounted device generates an abnormal behavior report when it detects its own abnormal behavior, and signs it with a signature private key. Subsequently, the active device sends the signed abnormal report to the candidate device; after receiving the abnormal report, the candidate device uses the signature public key of the active device to verify the validity and integrity of the report. If the verification is successful, the candidate device will forward the abnormal report to the abnormal behavior management agency (MA); the abnormal behavior management agency will evaluate whether the certificate of the V2X communication device needs to be revoked based on the preset abnormal behavior decision strategy, including pseudonym certificates, application certificates, and identity certificates. If it is determined that revocation is required, the MA will issue a certificate revocation list (CRL) and send it to the candidate device; after receiving the certificate revocation list, the candidate device will forward it to the active device.

[0063] By regularly detecting and reporting abnormal behavior and possibly revoking the corresponding certificates, the system's ability to respond to security threats can be enhanced and security vulnerabilities and attack risks caused by abnormal behavior can be reduced; the generation and verification process of abnormal behavior reports enables the system to track and record the behavior of each device, which helps to manage and maintain the credibility and compliance of V2X devices; MA can quickly respond to abnormal situations through timely evaluation and possible certificate revocation, which helps to restore normal system operation and reduce possible chain reactions; by implementing measures to revoke certificates, the system can follow and enforce relevant security standards and policies to ensure the compliance and stability of the overall system.

[0064] The above method significantly improves the communication continuity of vehicle-mounted devices, ensuring that vehicle-mounted devices continue to communicate securely even when there is no network connection, meeting the needs of continuous driving safety. By reducing communication interruptions caused by certificate issues, the user experience is significantly improved. Timely updating and revoking certificates reduces the security risks that may be caused by certificate expiration or leakage. While ensuring the security of operation data, full consideration is given to user privacy protection to ensure that operations do not leak user personal information. This implementation provides reliable security for vehicle-mounted communication systems, especially for mobile scenarios with unstable network environments. This will help promote the widespread application of V2X technology and lay a solid foundation for the development of intelligent transportation systems.

[0065] The above-mentioned offline vehicle-mounted device digital certificate update and cancellation method obtains device information and network status through the interaction between the main vehicle-mounted device and the surrounding V2X devices, and determines the available candidate devices; determines whether the main vehicle-mounted device needs to update the digital certificate, and if so, sends a certificate update request to the candidate device; after the candidate device verifies the request, it establishes a secure connection with the LTE-V2X certificate authority, forwards the certificate update request and obtains the encrypted update certificate, and transmits it to the main vehicle-mounted device; if the main vehicle-mounted device does not need to update the certificate but needs to be cancelled, it sends a cancellation request to the candidate device, and the candidate device reports to the abnormal behavior management agency after verification, and executes the certificate revocation process according to the policy; solves the problem that the vehicle-mounted device in the existing application cannot update or cancel the digital certificate in time when encountering network anomalies.

[0066] Figure 7 FIG. 3 is a schematic block diagram of an offline vehicle-mounted device digital certificate update and cancellation device 300 provided by an embodiment of the present invention. Figure 7 As shown, corresponding to the above offline vehicle-mounted device digital certificate update cancellation method, the present invention also provides an offline vehicle-mounted device digital certificate update cancellation device 300. The offline vehicle-mounted device digital certificate update cancellation device 300 includes a unit for executing the above offline vehicle-mounted device digital certificate update cancellation method, and the device can be configured in a server. Specifically, please refer to Figure 7The offline vehicle-mounted device digital certificate update and cancellation device 300 includes an acquisition unit 301, a candidate device determination unit 302, a judgment unit 303, an update unit 304 and a receiving unit 305.

[0067] The acquisition unit 301 is used to acquire the information list and device network status of the surrounding V2X devices when the main vehicle-mounted device exchanges information with the surrounding V2X devices; the candidate device determination unit 302 is used to determine the candidate devices according to the information list and device network status of the surrounding V2X devices; the judgment unit 303 is used to judge whether the main vehicle-mounted device needs to update the digital certificate; the update unit 304 is used to send a certificate update request to the candidate device if the main vehicle-mounted device needs to update the digital certificate, so that the candidate device verifies the certificate update request, and if the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request, and the LTE-V2X certificate authority verifies the certificate update request, and if the certificate update request is qualified, returns the encrypted update certificate to the candidate device, and the candidate device transmits it; the receiving unit 305 is used to receive the encrypted update certificate from the candidate device, and decrypts and stores it.

[0068] In one embodiment, the offline vehicle-mounted device digital certificate update and cancellation device 300 further includes: The cancellation unit 306 is used to generate a new signature public-private key pair when the digital certificate type is EC, generate an EC update request, use the newly generated private key to self-sign, then sign with the existing, unexpired EC certificate private key, and encrypt the update request with the generated private key to obtain a certificate update request; when the digital certificate type is PC, sign with the EC certificate private key and then encrypt the request with the generated private key to obtain a certificate update request.

[0069] In one embodiment, if Figure 8 As shown, the candidate device determining unit 302 includes a screening subunit 3021 and a device selecting subunit 3022 .

[0070] The screening subunit 3021 is used to screen out surrounding V2X devices with good network status to obtain a candidate set; the device selection subunit 3022 is used to select one of the devices from the candidate set as a candidate device according to the trust policy priority.

[0071] In one embodiment, if Fig. 9 As shown, the updating unit 304 includes a type selecting subunit 3041 , an updating request generating subunit 3042 and a certificate updating subunit 3043 .

[0072] The type selection subunit 3041 is used to select the type of digital certificate that needs to be updated; the update request generation subunit 3042 is used to generate a certificate update request according to the selected digital certificate type; the certificate update subunit 3043 is used to send a certificate update request to the candidate device, so that the candidate device can verify the validity and integrity of the certificate update request using the signature public key of the main vehicle-mounted device, and if the certificate update request is verified to be qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request, and the LTE-V2X certificate authority decrypts and verifies the signature of the certificate update request and the validity of the original digital certificate. If the verification is qualified, it returns and issues a new digital certificate, and uses the old information to encrypt the new digital certificate, which is transmitted to the candidate device and transmitted by the candidate device.

[0073] In one embodiment, the certificate update subunit 3043 is used to generate a new signature public-private key pair and an EC update request when the digital certificate type is EC, self-sign with the newly generated private key, and then sign with the existing, unexpired EC certificate private key, and encrypt the update request with the generated private key to obtain a certificate update request; when the digital certificate type is PC, sign with the EC certificate private key and then encrypt the request with the generated private key to obtain a certificate update request.

[0074] In one embodiment, if Fig.10 As shown, the deregistration unit 306 includes a deregistration request generating subunit 3061 and a certificate deregistration subunit 3062 .

[0075] The cancellation request generation subunit 3061 is used to generate an abnormal behavior report and sign it with a signature private key to obtain a digital certificate cancellation request if the main vehicle-mounted device does not need to update the digital certificate and the main vehicle-mounted device needs to cancel the digital certificate; the certificate cancellation subunit 3062 is used to send a digital certificate cancellation request to a candidate device, so that the candidate device verifies the validity and integrity of the digital certificate cancellation request, and after the validity and integrity of the digital certificate cancellation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

[0076] In one embodiment, if Fig.11 As shown, the certificate revocation subunit 3062 includes a sending module 30621 and a receiving module 30622.

[0077] The sending module 30621 is used to send a digital certificate revocation request to the candidate device, so that the candidate device can verify the validity and integrity of the digital certificate revocation request. After the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency determines whether the digital certificate needs to be revoked based on the abnormal behavior decision-making strategy. When revocation is required, the management agency issues a certificate revocation list and sends it to the candidate device, which is forwarded to the main vehicle-mounted device by the candidate device; the receiving module 30622 is used to receive the certificate revocation list to revoke the digital certificate.

[0078] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned offline vehicle-mounted device digital certificate update and cancellation device 300 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.

[0079] The above-mentioned offline vehicle-mounted device digital certificate updating and cancellation device 300 can be implemented in the form of a computer program. The computer program can be used in the following manner: Fig.12 Runs on the computer device shown.

[0080] See also Fig.12 , Fig.12 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a server, and the server may be an independent server or a server cluster composed of multiple servers.

[0081] See also Fig.12 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0082] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a method for updating and canceling a digital certificate of an offline vehicle-mounted device.

[0083] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0084] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for updating and canceling a digital certificate of an offline vehicle-mounted device.

[0085] The network interface 505 is used to communicate with other devices over the network. Fig.12 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0086] The processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps: When the main vehicle-mounted device exchanges information with the surrounding V2X devices, the information list and device network status of the surrounding V2X devices are obtained; the candidate devices are determined according to the information list and device network status of the surrounding V2X devices; it is judged whether the main vehicle-mounted device needs to update the digital certificate; if the main vehicle-mounted device needs to update the digital certificate, a certificate update request is sent to the candidate device, so that the candidate device verifies the certificate update request, and if the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request, and the LTE-V2X certificate authority verifies the certificate update request, and if the certificate update request is qualified, the encrypted update certificate is returned to the candidate device, and the candidate device transmits it; the encrypted update certificate is received from the candidate device, and stored after decryption.

[0087] In one embodiment, after implementing the step of determining whether the subject vehicle-mounted device needs to update the digital certificate, the processor 502 further implements the following steps: If the main vehicle-mounted device does not need to update the digital certificate and the main vehicle-mounted device needs to cancel the digital certificate, a digital certificate cancellation request is sent to the candidate device, so that the candidate device verifies the digital certificate cancellation request, and after the digital certificate cancellation request is a qualified request, the candidate device reports it to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

[0088] In one embodiment, when the processor 502 implements the step of determining the candidate device according to the information list of the surrounding V2X devices and the device network status, the processor 502 specifically implements the following steps: The surrounding V2X devices with good network status are screened out to obtain a candidate set; and one of the devices is selected from the candidate set as a candidate device according to the trust policy priority.

[0089] In one embodiment, when the processor 502 implements the above-mentioned process of sending a certificate update request to the candidate device when the subject vehicle-mounted device needs to update the digital certificate, so that the candidate device verifies the certificate update request, and if the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request, and the LTE-V2X certificate authority verifies the certificate update request, and if the certificate update request is qualified, returns the encrypted update certificate to the candidate device, and when the candidate device performs the transmission step, the following steps are specifically implemented: Select the type of digital certificate that needs to be updated; generate a certificate update request based on the selected digital certificate type; send the certificate update request to the candidate device, so that the candidate device can verify the validity and integrity of the certificate update request using the signature public key of the main vehicle-mounted device, and if the certificate update request is verified to be qualified, the candidate device will establish a secure connection with the LTE-V2X certificate authority and forward the certificate update request, and the LTE-V2X certificate authority will decrypt and verify the signature of the certificate update request and the validity of the original digital certificate. If the verification is qualified, a new digital certificate will be returned and issued, and the new digital certificate will be encrypted with the old information, transmitted to the candidate device, and transmitted by the candidate device.

[0090] In one embodiment, when the processor 502 implements the step of generating a certificate update request according to the selected digital certificate type, the processor 502 specifically implements the following steps: When the digital certificate type is EC, a new signature public-private key pair is generated, and an EC update request is generated. It is self-signed with the newly generated private key, and then signed with the existing, unexpired EC certificate private key. The update request is encrypted with the generated private key to obtain a certificate update request. When the digital certificate type is PC, the request is signed with the EC certificate private key and then encrypted with the generated private key to obtain a certificate update request.

[0091] In one embodiment, when the processor 502 realizes that the subject vehicle-mounted device does not need to update the digital certificate and the subject vehicle-mounted device needs to cancel the digital certificate, it sends a digital certificate cancellation request to the candidate device, so that the candidate device verifies the digital certificate cancellation request, and after the digital certificate cancellation request is a qualified request, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process steps according to the policy, and specifically implements the following steps: If the subject vehicle-mounted device does not need to update the digital certificate and the subject vehicle-mounted device needs to cancel the digital certificate, an abnormal behavior report is generated and signed with the signature private key to obtain a digital certificate cancellation request; the digital certificate cancellation request is sent to the candidate device, so that the candidate device verifies the validity and integrity of the digital certificate cancellation request, and after the validity and integrity of the digital certificate cancellation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

[0092] In one embodiment, the processor 502 implements the sending of the digital certificate revocation request to the candidate device so that the candidate device verifies the validity and integrity of the digital certificate revocation request, and after the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process steps according to the policy, and specifically implements the following steps: A digital certificate revocation request is sent to a candidate device, so that the candidate device verifies the validity and integrity of the digital certificate revocation request. After the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency determines whether the digital certificate needs to be revoked based on the abnormal behavior decision-making strategy. When revocation is required, the management agency issues a certificate revocation list and sends it to the candidate device, which is forwarded to the main vehicle-mounted device by the candidate device; the certificate revocation list is received to revoke the digital certificate.

[0093] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0094] In addition, in an embodiment of the present application, the computer device also includes a V2X transceiver module; the V2X module can be divided into a pure communication module and a communication and computing integrated module with integrated V2X application processing functions. For the former, the module is not required to have a positioning function; for the latter, the module needs to have positioning and computing functions, and according to the different capabilities of the module, it can be equipped with GNSS (Global Navigation Satellite System) positioning, GNSS+RTK (Real-time Kinematic) positioning, GNSS+RTK+Inertial Navigation Positioning and other forms. The HSM hardware security module is a computer hardware device used to protect and manage digital keys used by strong authentication systems and provide related cryptographic operations. According to different security hardware capabilities, it is divided into FullHSM, Medium HSM and Light HSM. The main difference between Full and Medium is whether the hardware supports acceleration of asymmetric encryption. The main difference between Medium and Light is whether there are independent computing and storage resources and whether there is a random number generator. Priority is given to Full HSM, which includes RAM random access memory, NVM non-volatile memory, symmetric encryption accelerator, asymmetric encryption accelerator, hash accelerator, counter, random number generator, security CPU, and input and output components.

[0095] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0096] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor executes the following steps: When the main vehicle-mounted device exchanges information with the surrounding V2X devices, the information list and device network status of the surrounding V2X devices are obtained; the candidate devices are determined according to the information list and device network status of the surrounding V2X devices; it is judged whether the main vehicle-mounted device needs to update the digital certificate; if the main vehicle-mounted device needs to update the digital certificate, a certificate update request is sent to the candidate device, so that the candidate device verifies the certificate update request, and if the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request, and the LTE-V2X certificate authority verifies the certificate update request, and if the certificate update request is qualified, the encrypted update certificate is returned to the candidate device, and the candidate device transmits it; the encrypted update certificate is received from the candidate device, and stored after decryption.

[0097] In one embodiment, after executing the computer program to implement the step of determining whether the subject vehicle-mounted device needs to update the digital certificate, the processor further implements the following steps: If the main vehicle-mounted device does not need to update the digital certificate and the main vehicle-mounted device needs to cancel the digital certificate, a digital certificate cancellation request is sent to the candidate device, so that the candidate device verifies the digital certificate cancellation request, and after the digital certificate cancellation request is a qualified request, the candidate device reports it to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

[0098] In one embodiment, when the processor executes the computer program to implement the step of determining the candidate device according to the information list of the surrounding V2X devices and the device network status, the processor specifically implements the following steps: The surrounding V2X devices with good network status are screened out to obtain a candidate set; and one of the devices is selected from the candidate set as a candidate device according to the trust policy priority.

[0099] In one embodiment, the processor executes the computer program to implement the step of sending a certificate update request to the candidate device when the subject vehicle-mounted device needs to update the digital certificate, so that the candidate device verifies the certificate update request, and if the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request, and the LTE-V2X certificate authority verifies the certificate update request, and if the certificate update request is qualified, returns the encrypted update certificate to the candidate device, and when the candidate device performs the transmission step, the following steps are specifically implemented: Select the type of digital certificate that needs to be updated; generate a certificate update request based on the selected digital certificate type; send the certificate update request to the candidate device, so that the candidate device can verify the validity and integrity of the certificate update request using the signature public key of the main vehicle-mounted device, and if the certificate update request is verified to be qualified, the candidate device will establish a secure connection with the LTE-V2X certificate authority and forward the certificate update request, and the LTE-V2X certificate authority will decrypt and verify the signature of the certificate update request and the validity of the original digital certificate. If the verification is qualified, a new digital certificate will be returned and issued, and the new digital certificate will be encrypted with the old information, transmitted to the candidate device, and transmitted by the candidate device.

[0100] In one embodiment, when the processor executes the computer program to implement the step of generating a certificate update request according to the selected digital certificate type, the processor specifically implements the following steps: When the digital certificate type is EC, a new signature public-private key pair is generated, and an EC update request is generated. It is self-signed with the newly generated private key, and then signed with the existing, unexpired EC certificate private key. The update request is encrypted with the generated private key to obtain a certificate update request. When the digital certificate type is PC, the request is signed with the EC certificate private key and then encrypted with the generated private key to obtain a certificate update request.

[0101] In one embodiment, the processor executes the computer program to implement the following steps: if the subject vehicle-mounted device does not need to update the digital certificate, and the subject vehicle-mounted device needs to cancel the digital certificate, send a digital certificate cancellation request to the candidate device, so that the candidate device verifies the digital certificate cancellation request, and after the digital certificate cancellation request is a qualified request, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process steps according to the policy, specifically implementing the following steps: If the subject vehicle-mounted device does not need to update the digital certificate and the subject vehicle-mounted device needs to cancel the digital certificate, an abnormal behavior report is generated and signed with the signature private key to obtain a digital certificate cancellation request; the digital certificate cancellation request is sent to the candidate device, so that the candidate device verifies the validity and integrity of the digital certificate cancellation request, and after the validity and integrity of the digital certificate cancellation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

[0102] In one embodiment, the processor implements the sending of the digital certificate revocation request to the candidate device when executing the computer program, so that the candidate device verifies the validity and integrity of the digital certificate revocation request, and after the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process steps according to the policy, and specifically implements the following steps: A digital certificate revocation request is sent to a candidate device, so that the candidate device verifies the validity and integrity of the digital certificate revocation request. After the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency determines whether the digital certificate needs to be revoked based on the abnormal behavior decision-making strategy. When revocation is required, the management agency issues a certificate revocation list and sends it to the candidate device, which is forwarded to the main vehicle-mounted device by the candidate device; the certificate revocation list is received to revoke the digital certificate.

[0103] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0104] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0105] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0106] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0107] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0108] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. How to update and cancel the digital certificate of offline vehicle equipment. It is characterized in that include: When the main vehicle-mounted device exchanges information with surrounding V2X devices, it obtains the information list and device network status of surrounding V2X devices; Determine candidate devices based on the information list of surrounding V2X devices and the device network status; Determine whether the subject vehicle-mounted device needs to update the digital certificate; If the subject vehicle-mounted device needs to update the digital certificate, a certificate update request is sent to the candidate device, so that the candidate device verifies the certificate update request. If the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request. The LTE-V2X certificate authority verifies the certificate update request. If the certificate update request is qualified, the encrypted update certificate is returned to the candidate device, which is transmitted by the candidate device. The encrypted update certificate is received from the candidate device, and the encrypted update certificate is decrypted and stored.

2. The method for updating and canceling the digital certificate of an offline vehicle-mounted device according to claim 1, It is characterized in that After determining whether the subject vehicle-mounted device needs to update the digital certificate, the method further includes: If the main vehicle-mounted device does not need to update the digital certificate and the main vehicle-mounted device needs to cancel the digital certificate, a digital certificate cancellation request is sent to the candidate device, so that the candidate device verifies the digital certificate cancellation request, and after the digital certificate cancellation request is a qualified request, the candidate device reports it to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

3. The method for updating and canceling the digital certificate of an offline vehicle-mounted device according to claim 1, It is characterized in that The determining of candidate devices according to the information list of surrounding V2X devices and the device network status includes: Filter out surrounding V2X devices with good network status to obtain a candidate set; One of the devices is selected from the candidate set as a candidate device according to the trust policy priority.

4. The method for updating and canceling the digital certificate of an offline vehicle-mounted device according to claim 1, It is characterized in that If the subject vehicle-mounted device needs to update the digital certificate, a certificate update request is sent to the candidate device, so that the candidate device verifies the certificate update request, and if the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request, and the LTE-V2X certificate authority verifies the certificate update request, and if the certificate update request is qualified, returns the encrypted update certificate to the candidate device, which is transmitted by the candidate device, including: Select the type of digital certificate that needs to be updated; Generate a certificate renewal request based on the selected digital certificate type; A certificate update request is sent to the candidate device, so that the candidate device verifies the validity and integrity of the certificate update request using the signature public key of the subject vehicle-mounted device. If the certificate update request is verified to be qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request. The LTE-V2X certificate authority decrypts and verifies the signature of the certificate update request and the validity of the original digital certificate. If the verification is qualified, a new digital certificate is returned and issued, and the new digital certificate is encrypted using the old information, and transmitted to the candidate device, which is then transmitted by the candidate device.

5. The method for updating and canceling the digital certificate of an offline vehicle-mounted device according to claim 4, It is characterized in that Generating a certificate update request according to the selected digital certificate type includes: When the digital certificate type is EC, a new signature public-private key pair is generated, and an EC update request is generated. It is self-signed with the newly generated private key, and then signed with the existing, unexpired EC certificate private key. The update request is encrypted with the generated private key to obtain a certificate update request. When the digital certificate type is PC, the request is signed with the EC certificate private key and then encrypted with the generated private key to obtain a certificate update request.

6. The method for updating and canceling the digital certificate of an offline vehicle-mounted device according to claim 2, It is characterized in that If the subject vehicle-mounted device does not need to update the digital certificate, and the subject vehicle-mounted device needs to cancel the digital certificate, a digital certificate cancellation request is sent to the candidate device, so that the candidate device verifies the digital certificate cancellation request, and after the digital certificate cancellation request is a qualified request, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy, including: If the subject vehicle-mounted device does not need to update the digital certificate, and the subject vehicle-mounted device needs to cancel the digital certificate, an abnormal behavior report is generated and signed with a signature private key to obtain a digital certificate cancellation request; A digital certificate revocation request is sent to a candidate device, so that the candidate device verifies the validity and integrity of the digital certificate revocation request. After the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy.

7. The method for updating and canceling the digital certificate of an offline vehicle-mounted device according to claim 6, It is characterized in that The digital certificate revocation request is sent to the candidate device, so that the candidate device verifies the validity and integrity of the digital certificate revocation request. After the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency decides and executes the certificate revocation process according to the policy, including: Send a digital certificate revocation request to the candidate device, so that the candidate device verifies the validity and integrity of the digital certificate revocation request, and after the validity and integrity of the digital certificate revocation request are qualified, the candidate device reports to the abnormal behavior management agency, and the management agency determines whether the digital certificate needs to be revoked according to the abnormal behavior decision-making strategy. When revocation is required, the management agency publishes a certificate revocation list and sends it to the candidate device, which is forwarded by the candidate device to the main vehicle-mounted device; The certificate revocation list is received to revoke the digital certificate.

8. Offline vehicle equipment digital certificate update and cancellation device, It is characterized in that include: An acquisition unit is used to acquire information lists and device network status of surrounding V2X devices when the main vehicle-mounted device exchanges information with surrounding V2X devices; A candidate device determination unit, configured to determine a candidate device based on an information list of surrounding V2X devices and a device network status; A judging unit, used to judge whether the subject vehicle-mounted device needs to update the digital certificate; An updating unit, configured to send a certificate update request to the candidate device if the subject vehicle-mounted device needs to update the digital certificate, so that the candidate device verifies the certificate update request, and if the certificate update request is qualified, the candidate device establishes a secure connection with the LTE-V2X certificate authority and forwards the certificate update request, and the LTE-V2X certificate authority verifies the certificate update request, and if the certificate update request is qualified, returns the encrypted update certificate to the candidate device, which is transmitted by the candidate device; The receiving unit is used to receive the encrypted update certificate from the candidate device, decrypt it and store it.

9. The device for updating and canceling the digital certificate of an offline vehicle-mounted device according to claim 8, It is characterized in that Also includes: The cancellation unit is used to generate a new signature public-private key pair when the digital certificate type is EC, and generate an EC update request, self-sign with the newly generated private key, and then sign with the existing, unexpired EC certificate private key, and encrypt the update request with the generated private key to obtain a certificate update request; When the digital certificate type is PC, the request is signed with the EC certificate private key and then encrypted with the generated private key to obtain a certificate update request.

10. A computer device, It is characterized in that The computer device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.