Digital certificate application method and apparatus

By receiving and integrating digital certificate application requests from vehicles through a gateway, and generating and verifying certificates using the TSP backend, the problem of complex and insecure digital certificate application in the Internet of Vehicles is solved, achieving efficient and secure certificate synchronization and management.

CN117081843BActive Publication Date: 2026-11-27CHINA FAW CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311234787.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-22
Publication Date
2026-11-27
Estimated Expiration
2043-09-22

AI Technical Summary

Technical Problem

The current application process for vehicle-to-everything (V2X) digital certificates is complex and has poor security and reliability, requiring additional system and equipment support.

Method used

The gateway receives digital certificate application requests from the vehicle, integrates the certificate application information, generates digital certificates using the TSP backend, synchronizes them to the vehicle's OTA process, uses the HTTPS protocol to ensure communication security, and performs digital certificate verification and condition variable management.

Benefits of technology

It improves the security and reliability of digital certificate applications, simplifies the operation process, reduces the data processing and communication pressure on the vehicle side, and improves the testing and diagnostic performance of components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117081843B_ABST
    Figure CN117081843B_ABST
Patent Text Reader

Abstract

The embodiment of the present disclosure provides a digital certificate application method and device, the digital certificate application method comprises: receiving a digital certificate application request from a vehicle end; obtaining corresponding certificate application information according to the digital certificate application request and integrating; applying for corresponding digital certificate to TSP background according to the integrated certificate application information; receiving the digital certificate generated by the TSP background, and synchronizing the digital certificate to the OTA process of the vehicle end. The embodiment of the present disclosure applies for a digital certificate to the TSP background through a gateway, improves the security and reliability of the digital certificate application, and does not need to use an additional application system, so that the digital certificate application is convenient and efficient. In addition, the digital certificate application process is carried out in the gateway, which can reduce the data processing pressure of the vehicle end, reduce the communication pressure of the vehicle end, and improve the performance of subsequent vehicle end components such as testing and diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communications, and specifically to a method and apparatus for applying for a digital certificate. Background Technology

[0002] Currently, in the field of vehicle communication, digital certificate technology is needed to verify the identities of various entities (such as connected vehicles and cloud servers) conducting online information exchange and business activities. Encrypting and decrypting data using obtained digital certificates ensures data security. In the connected vehicle environment, secure data communication is primarily achieved through applying for digital certificates. However, existing methods for applying for digital certificates in connected vehicles require the development of additional systems, servers, or equipment, making the process complex and lacking in security and reliability. Summary of the Invention

[0003] The purpose of this disclosure is to provide a digital certificate application method and apparatus to solve the technical problems in the prior art, such as the complexity of digital certificate application operations and the poor security and reliability of the application process.

[0004] To solve the above-mentioned technical problems, the embodiments of this disclosure adopt the following technical solutions:

[0005] A method for applying for a digital certificate, comprising:

[0006] Receive digital certificate application requests from the vehicle;

[0007] Based on the digital certificate application request, obtain the corresponding certificate application information and integrate it;

[0008] Apply for the corresponding digital certificate from the TSP backend based on the integrated certificate application information;

[0009] Receive the digital certificate generated by the TSP backend and synchronize the digital certificate to the OTA process on the vehicle.

[0010] In some embodiments, a corresponding digital certificate is requested from the TSP backend based on the integrated certificate application information, including:

[0011] Establish a communication connection with the TSP backend;

[0012] The integrated certificate application information is sent to the TSP backend using the HTTPS protocol.

[0013] In some embodiments, after receiving the digital certificate generated by the TSP backend, the method further includes:

[0014] Verify the digital certificate;

[0015] If the verification is successful, the digital certificate application is confirmed to be successful, and the digital certificate is synchronized to the OTA process on the vehicle. If the verification fails, the reason for the failure of the digital certificate application is obtained, and the digital certificate is deleted.

[0016] In some embodiments, verifying the digital certificate includes:

[0017] Verify whether the public and private keys of the digital certificate match; and / or

[0018] Verify whether the certificate name of the digital certificate matches the vehicle's basic information; and / or

[0019] Verify whether the digital certificate was issued by a preset certificate authority; and / or

[0020] Verify whether the digital certificate is valid.

[0021] In some embodiments, after the digital certificate is successfully applied for, the method further includes:

[0022] Set the first condition variable corresponding to the digital certificate application;

[0023] Determine whether the first condition variable meets the preset requirements;

[0024] If the conditions are met, reapply for the digital certificate.

[0025] In some embodiments, after the digital certificate verification fails, the method further includes:

[0026] The digital certificate application is initiated according to a preset time interval.

[0027] Determine whether the second condition variable corresponding to the digital certificate application meets the preset requirements;

[0028] If the conditions are met, reapply for the digital certificate.

[0029] In some embodiments, synchronizing the digital certificate to the vehicle's OTA process includes:

[0030] The digital certificate is synchronized to the OTA process via socket communication;

[0031] Set the application status of the digital certificate.

[0032] In some embodiments, the method further includes:

[0033] When the vehicle rolls off the production line, the digital certificate is sent to the EOL device on the vehicle so that the EOL device can obtain the application status of the digital certificate and determine whether the gateway has applied for the digital certificate online.

[0034] If the application is successful, the EOL device verifies the digital certificate; if the application fails, the EOL device obtains the reason for the failure of the digital certificate application, and sends a digital certificate application request to the gateway when the third condition variable corresponding to the digital certificate application meets the preset requirements.

[0035] In some embodiments, after receiving a digital certificate application request from the vehicle, the method further includes:

[0036] Determine if the digital certificate exists;

[0037] If the digital certificate exists, verify it; if it does not exist, apply for the corresponding digital certificate from the TSP backend.

[0038] This disclosure also provides a digital certificate application apparatus, including:

[0039] The receiving module is used to receive digital certificate application requests from the vehicle.

[0040] The acquisition module is used to acquire and integrate the corresponding certificate application information based on the digital certificate application request.

[0041] The application module is used to apply for the corresponding digital certificate from the TSP backend based on the integrated certificate application information;

[0042] The processing module is used to receive the digital certificate generated by the TSP backend and synchronize the digital certificate to the OTA process on the vehicle.

[0043] This disclosure also provides a storage medium storing a computer program that, when executed by a processor, implements the steps of any of the methods described above.

[0044] This disclosure also provides a gateway, which includes at least a memory and a processor. The memory stores a computer program, and the processor executes the computer program in the memory to implement the steps of any of the methods described above.

[0045] The digital certificate application method, apparatus, storage medium, and gateway provided in this disclosure receive digital certificate application requests from the vehicle via the gateway; obtain and integrate corresponding certificate application information based on the digital certificate application request; apply for a corresponding digital certificate from the TSP backend based on the integrated certificate application information; receive the digital certificate generated by the TSP backend and synchronize the digital certificate to the OTA process of the vehicle. That is, applying for a digital certificate from the TSP backend via the gateway improves the security and reliability of digital certificate applications, eliminates the need for an additional application system, and makes digital certificate applications convenient and efficient. Furthermore, performing the digital certificate application process via the gateway reduces the data processing and communication pressure on the vehicle, improving the performance of subsequent testing and diagnostics of vehicle components. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is an architecture diagram of the OTA certificate system according to an embodiment of the present disclosure;

[0048] Figure 2 This is a flowchart of a digital certificate application method according to an embodiment of the present disclosure;

[0049] Figure 3 This is a flowchart illustrating the specific implementation of the digital certificate application method according to an embodiment of the present disclosure;

[0050] Figure 4 This is another specific implementation flowchart of the digital certificate application method according to the embodiments of this disclosure;

[0051] Figure 5 This is a schematic diagram of a digital certificate application device according to an embodiment of the present disclosure. Detailed Implementation

[0052] Various embodiments and features of this disclosure are described herein with reference to the accompanying drawings.

[0053] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this disclosure will be apparent to those skilled in the art.

[0054] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present disclosure and, together with the general description of the disclosure given above and the detailed description of the embodiments given below, serve to explain the principles of the disclosure.

[0055] These and other features of this disclosure will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.

[0056] It should also be understood that although this disclosure has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this disclosure, which have the features described in the claims and are therefore all within the scope of protection defined herein.

[0057] The above and other aspects, features and advantages of this disclosure will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.

[0058] Specific embodiments of this disclosure are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this disclosure, which may be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure this disclosure. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely to serve as the basis and representative basis for the claims to teach those skilled in the art to use this disclosure in a variety of substantially any suitable detailed structures.

[0059] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this disclosure.

[0060] The first embodiment of this disclosure provides a digital certificate application method applied to a gateway (CGW), which is a gateway for an OTA certificate system. The architecture of the OTA certificate system is as follows: Figure 1 As shown, the OTA certificate system includes: a gateway, OBDCAN (On-Board Diagnostics Controller Area Network), a switch, an in-vehicle Tbox (Telematics Box), and a TSP backend.

[0061] A gateway acts as an internetwork connector and protocol converter, enabling network interconnection above the network layer. It facilitates interconnection between networks using different high-level protocols, and even across the entire automotive network. Gateways can be used between systems with different communication protocols, data formats, languages, or even completely different architectures. They repackage received information to adapt to the receiver's needs.

[0062] The gateway includes two processors: A55 (Cortex-A55) and R5 (Cortex-R5security). The A55 handles application domain data, while the R5 handles security domain data. Specifically, the A55 includes DoIP (Diagnosis over Internet Protocol), OTA (Over-The-Air), and CertManager. DoIP is an Ethernet-based diagnostic protocol; in this embodiment, it's an in-vehicle Ethernet diagnostic protocol used to send vehicle diagnostic information to the gateway, which then forwards it to other terminals. The OTA component is used for remotely updating the firmware or software of vehicle components. It enables remote upgrade management of vehicle components through mobile communication interfaces (e.g., GSM or CDMA). In this embodiment, the OTA component can be located on the gateway, enabling system upgrades, application updates, vulnerability fixes, and feature activation for vehicle components. CertManager manages digital certificates. The OTA component on the gateway can communicate with an OTA cloud device. The OTA cloud device stores upgrade packages or corresponding upgrade information for vehicle components. Communication between the OTA component and the OTA cloud device requires digital certificates to ensure information security. The gateway also includes SDPE, a packet acceleration processing engine that enables rapid forwarding of data packets and signals. The gateway communicates with the vehicle (e.g., the vehicle controller) via OBD CAN, receiving and sending information back to the vehicle.

[0063] A switch is used in a gateway to control Ethernet data transmission and reception; an in-vehicle Tbox is an in-vehicle remote communication device used for remote data communication; the TSP backend refers to the backend system of a "Telematics Service Provider," a cloud-based server used to handle remote vehicle communication and data management. The TSP backend establishes connections with devices on the vehicle (such as in-vehicle devices), collects vehicle-related data, and provides corresponding services such as remote monitoring, vehicle diagnostics, and vehicle tracking. TSPs occupy a core position in the telematics industry chain, connecting upstream automotive and in-vehicle device manufacturers and network operators, and downstream content providers. Telematics services integrate modern computer technologies such as location services, GIS services, and communication services to provide car owners and individuals with powerful navigation, entertainment, information, security, social networking, and remote maintenance services.

[0064] Example 1

[0065] Figure 2 This is a flowchart of the digital certificate application method provided in the first embodiment of this disclosure. The digital certificate application method specifically includes the following steps:

[0066] S101: Receives a digital certificate application request from the vehicle.

[0067] A digital certificate is an electronic credential issued by a Certificate Authority (CA) for identity authentication, certificate signing, information encryption and decryption, and verification of the authenticity and integrity of digital information. For example, in this embodiment, the digital certificate can be an OTA (Over-The-Air) digital certificate used to verify vehicle-side upgrade packages, ensuring the authenticity, integrity, and security of the upgrade packages during the vehicle component upgrade process. The OTA digital certificate can be a digital certificate for an Electronic Control Unit (ECU), or a digital certificate for in-vehicle devices such as in-vehicle navigation systems and in-vehicle audio-visual equipment.

[0068] In this step, the gateway can receive digital certificate application requests from the vehicle in real time. These requests can be initiated or passively sent to the gateway after the communication connection between the vehicle and the gateway is activated. For example, when the gateway connected to the vehicle powers on, the communication connection between the vehicle and the gateway is activated, confirming that the gateway has received the vehicle's digital certificate application request. Alternatively, after the communication connection between the vehicle and the gateway is activated, the vehicle may send a digital certificate application request to the gateway, which may include vehicle information such as the vehicle model and the name of the certificate to be applied for.

[0069] Vehicle information includes basic vehicle information such as the VIN (Vehicle Identification Number) and SN (Machine Code, also called serial number, authentication code, registration application code, etc.). The VIN and SN are unique identifiers used to identify and recognize a vehicle. Each vehicle has a unique VIN, similar to a vehicle identification number. The VIN typically consists of a string of numbers and letters, approximately 17 characters long. It contains specific information about the vehicle, such as manufacturer, model, year of manufacture, place of manufacture, and vehicle characteristics. By interpreting the VIN, vehicle information can be obtained.

[0070] After the gateway is powered on, the gateway's CertManager process starts and checks whether the vehicle's VIN code has been written into the gateway. If it has, it determines that a digital certificate application request has been received from the vehicle and that a digital certificate application needs to be made for the vehicle.

[0071] S102: Based on the digital certificate application request, obtain the corresponding certificate application information and integrate it.

[0072] After receiving a digital certificate application request from the vehicle, the gateway can retrieve the certificate application information corresponding to the digital certificate application request from the preset secure storage area within the gateway (such as the memory of the R5 processor mentioned above), and integrate the various certificate application information.

[0073] In this step, the certificate application information refers to the relevant information used to apply for a digital certificate; for example, in this embodiment, it refers to the OTA component. The gateway's CertManager process integrates the relevant OTA components to generate a P10 application file (P10 data packet). PKCS#10 (P10 for short) is a format used to apply for a digital certificate from a certificate authority. The P10 application file can be a new digital certificate application request, distinct from the digital certificate application request from the vehicle. The P10 application file may include the identity information of the digital certificate requester (such as the vehicle's unique identifier) ​​and public key data. After the gateway integrates the certificate application information to generate the P10 application file, it establishes a secure connection with the TSP backend.

[0074] Understandably, a digital certificate application request from the vehicle may only contain simple information such as the vehicle model and the name of the certificate to be applied for. The P10 application file generated by the gateway after integrating the certificate application information contains detailed information about the certificate application. The high data processing performance of the gateway can be used to achieve fast and convenient application for digital certificates.

[0075] S103: Apply for the corresponding digital certificate from the TSP backend based on the integrated certificate application information.

[0076] Specifically, the gateway establishes a secure connection with the TSP backend and sends the generated P10 application file to the TSP backend. After receiving the P10 application file, the TSP backend generates the corresponding digital certificate based on the P10 application file and sends it to the gateway.

[0077] Before sending the P10 application file to the TSP backend, the gateway can encrypt the P10 application file using a first encryption key pre-stored in a secure storage area. Upon receiving the P10 application file, the gateway decrypts it using a second encryption key that matches the first encryption key, and processes the decrypted P10 application file to generate the corresponding digital certificate. The gateway and the TSP backend use the same encryption algorithm and a matching shared key to ensure consistency in encryption and decryption during communication. The first and second encryption keys are pre-negotiated keys between the gateway and the TSP backend; they can be the same key or different keys (e.g., public and private keys).

[0078] S104: Receive the digital certificate generated by the TSP backend and synchronize the digital certificate to the OTA process on the vehicle.

[0079] After receiving the digital certificate generated by the TSP backend, the gateway synchronizes the information of the digital certificate to the OTA process on the vehicle side so that the vehicle components can be remotely upgraded.

[0080] It is understood that in this embodiment, the OTA process on the vehicle side can be the process corresponding to the OTA component in the gateway. After the vehicle sends a digital certificate application request to the gateway, the OTA process on the vehicle side is activated, and the process corresponding to the OTA component in the gateway is also activated. The OTA component in the gateway communicates securely with the OTA cloud device through the applied digital certificate, and the OTA component in the gateway sends the upgrade package sent by the OTA cloud device to the OTA component on the vehicle side, realizing remote upgrades of vehicle components. In this embodiment, setting up an OTA component in the gateway facilitates secure communication between the gateway and the OTA cloud device after obtaining the digital certificate, reducing the amount of data processing on the vehicle side.

[0081] In other embodiments, the gateway may not have an OTA component. After receiving the digital certificate generated by the TSP backend, the gateway directly sends it to the OTA component on the vehicle side to synchronize the digital certificate to the OTA process on the vehicle side.

[0082] After receiving the digital certificate generated by the TSP backend, the gateway can also store it in a preset secure storage area for later use. At the same time, it is also convenient to manage the digital certificate through the CertManager process.

[0083] The TSP backend's primary role in the entire OTA process is to leverage PKI to ensure data confidentiality and uniqueness. It filters and screens devices and data to prevent intrusion. Therefore, in this embodiment, a highly secure TSP backend can be used to apply for digital certificates, while the application process itself is conducted at a highly secure gateway, ensuring the security and reliability of the digital certificate application.

[0084] The digital certificate application method provided in this disclosure receives a digital certificate application request from the vehicle via a gateway; obtains and integrates the corresponding certificate application information based on the request; applies for a corresponding digital certificate from the TSP backend based on the integrated information; receives the digital certificate generated by the TSP backend and synchronizes it to the vehicle's OTA process. This method, which applies for a digital certificate from the TSP backend via a gateway, improves the security and reliability of the digital certificate application, eliminates the need for an additional application system, and offers convenient and efficient application. Furthermore, conducting the digital certificate application process at the gateway reduces the data processing and communication pressure on the vehicle, improving the performance of subsequent vehicle component testing and diagnostics.

[0085] In some embodiments, step S103 involves applying for a corresponding digital certificate from the TSP backend based on the integrated certificate application information, including:

[0086] S1031: Establish a communication connection with the TSP backend;

[0087] S1032: Send the integrated certificate application information to the TSP backend using the HTTPS protocol.

[0088] Before sending a digital certificate application request, the gateway communicates with the TSP backend via the network, and the gateway and the TSP backend perform Transport Layer Security (TLS) authentication in advance.

[0089] Specifically, the gateway encapsulates the digital certificate application request containing encrypted certificate application information using a network protocol, such as Hypertext Transfer Protocol Secure (HTTPS) in this embodiment. Then, it submits the encapsulated digital certificate application file (e.g., the P10 application file mentioned above) to the TSP backend. The HTTPS protocol effectively ensures secure transmission of information between the gateway and the TSP backend.

[0090] In some embodiments, after receiving the digital certificate generated by the TSP backend in step S104, the method further includes:

[0091] S201: Verify the digital certificate;

[0092] S202: If the verification is successful, the digital certificate application is confirmed to be successful, and the digital certificate is synchronized to the OTA process on the vehicle. If the verification fails, the reason for the failure of the digital certificate application is obtained, and the digital certificate is deleted.

[0093] In this embodiment, the digital certificate received by the gateway from the TSP backend may include a valid digital certificate or an invalid digital certificate. Therefore, the digital certificate needs to be verified. For example, if the received digital certificate is complete and valid, the gateway has successfully obtained the digital certificate and synchronizes it to the vehicle's OTA process to achieve secure and reliable upgrades of vehicle components. If the network signal is poor when receiving the digital certificate, and only a portion of the digital certificate is obtained, the verification fails, and the digital certificate application fails. In this case, the reason for the failure is recorded, such as poor network conditions, and the partial digital certificate is deleted to prevent the existence of the partial digital certificate from affecting subsequent re-applications, thus improving the reliability of the digital certificate application.

[0094] In some embodiments, step S201, verifying the digital certificate, includes:

[0095] S2011: Verify whether the public and private keys of the digital certificate match.

[0096] The basic architecture of digital certificates is Public Key Infrastructure (PKI), which uses a pair of keys for encryption and decryption. The keys consist of a private key and a public key. The private key, primarily used for signing and decryption, is user-defined and known only to the user. The public key, used for signature verification and encryption, can be shared by multiple users.

[0097] Specifically, the TSP backend generates digital certificates, and therefore, the digital certificates contain the TSP backend's signature information, such as a signature using the private key. If the TSP backend's private key is used to sign the content of the digital certificate, the TSP backend's signature information can be obtained, confirming that the digital certificate carries this signature information. The gateway can use its built-in TSP backend public key to verify the TSP backend's private key signature information carried in the digital certificate. If the public and private keys of the digital certificate match, the verification is successful, and the digital certificate is deemed valid; if the public and private keys do not match, the verification fails, and the digital certificate is deemed invalid.

[0098] In some other embodiments, step S201 verifies the digital certificate, including:

[0099] S2012: Verify whether the certificate name of the digital certificate matches the basic information of the vehicle.

[0100] The basic vehicle information includes the VIN and SN mentioned above. In this embodiment, the digital certificate CN (Common Name) generated by the TSP backend can be compared with the vehicle's VIN or SN to determine if they match. If they match, the digital certificate is confirmed to correspond to the vehicle, the verification is successful, and the digital certificate is valid. If they do not match, the digital certificate is confirmed to be mismatched with the vehicle, the verification fails, and the digital certificate is invalid.

[0101] In some other embodiments, step S201 verifies the digital certificate, including:

[0102] S2013: Verify whether the digital certificate was issued by a preset certificate authority.

[0103] Specifically, the gateway can use a built-in root certificate to verify whether the digital certificate is issued by a preset certificate authority (such as a vehicle manufacturer), thereby verifying whether the digital certificate is issued by a legitimate authority. If it is issued by the preset certificate authority, the verification is successful, and the digital certificate is confirmed to be issued by a legitimate authority and is valid. If it is not issued by the preset certificate authority, the verification fails, and the digital certificate is confirmed to be issued by an illegitimate authority, such as if the digital certificate has been illegally tampered with by a third party, and is invalid.

[0104] The gateway comes pre-installed with a root certificate, which is pre-installed inside the gateway at the factory to ensure the correct identification of the legitimacy of other certificates during subsequent certificate chain verification. The pre-installed root certificate is usually issued by the device manufacturer or a trusted third-party certificate authority and is built into the gateway's secure storage area to ensure its security.

[0105] In some other embodiments, step S201 verifies the digital certificate, including:

[0106] S2014: Verify whether the digital certificate is within its validity period.

[0107] Specifically, the gateway can use a built-in root certificate to verify the validity of the digital certificate. If the certificate is within its validity period, the verification is successful, and the certificate is determined to be valid. If the certificate is not within its validity period, it is determined that the certificate has expired or has not yet reached its usage time, the verification fails, and the certificate is determined to be invalid. In specific implementations, relevant information in the digital certificate can also be compared to determine whether the certificate is in a revoked state, etc., to verify the validity of the certificate. For example, if the validity period information carried in the digital certificate generated by the TSP backend indicates that it is in a revoked state, the certificate is determined to be invalid, and the verification fails. In other embodiments, the integrity of the digital certificate can also be verified to verify its validity.

[0108] The above embodiments comprehensively guarantee the validity and security of digital certificates, preventing them from being forged or tampered with. The different methods and steps for verifying the digital certificate described above can be executed simultaneously to improve the accuracy of digital certificate verification, or they can be executed separately, for example, only verifying the validity of the digital certificate for targeted verification.

[0109] In some embodiments, such as Figure 3 As shown, after the digital certificate is successfully applied for, the method further includes:

[0110] S301: Set the first condition variable corresponding to the digital certificate application;

[0111] S302: Determine whether the first condition variable meets the preset requirements;

[0112] S303: If satisfied, reapply for the digital certificate.

[0113] The first condition variable is used to determine whether the conditions for reapplying for a digital certificate are met. Specifically, the first condition variable can be the usage time of the digital certificate, the number of times the digital certificate has been used (frequency), or the current network status of the gateway or vehicle. After setting the first condition variable, during subsequent use of the digital certificate, it can be checked in real time whether the first condition variable meets the preset requirements. If it does, it indicates that there is a blockage in the use of the digital certificate. At this time, the gateway can resend the digital certificate application file to the TSP backend to reapply for the digital certificate.

[0114] For example, the first condition variable is the number of times a digital certificate has been used. When the number of times a digital certificate has been used exceeds a preset threshold, it is determined that the condition variable meets the preset requirements. The digital certificate has been used multiple times, and some information may be obtained by a third party. To ensure communication security, it is necessary to reapply for the digital certificate from the TSP backend. Alternatively, when the number of times a digital certificate has been used exceeds the preset threshold, it is determined that it may be necessary to update some information in the digital certificate to ensure that the digital certificate is the latest and valid certificate. In this case, the gateway can reapply for the digital certificate from the TSP backend.

[0115] In another embodiment, the first condition variable is the current network status of the gateway. If the current network status is good and the communication between the gateway and the TSP is good, then the first condition variable is determined to meet the preset requirements, and the digital certificate can be reapplied for to ensure the real-time use of the digital certificate.

[0116] In some embodiments, such as Figure 3 As shown, after the digital certificate verification fails, the method further includes:

[0117] S401: Activate the digital certificate application according to the preset time interval;

[0118] S402: Determine whether the second condition variable corresponding to the digital certificate application meets the preset requirements;

[0119] S403: If satisfied, reapply for the digital certificate.

[0120] Specifically, after a digital certificate verification fails, the digital certificate application is determined to have failed. After deleting the incomplete digital certificate, a timer can be started to keep track. When the timer reaches a preset time condition (e.g., 60 seconds), the gateway's operation is determined to have reached the preset timeout period. At this point, it may be necessary to reapply for a digital certificate. The digital certificate application process in the gateway can be activated. After the digital certificate application process is activated, it is determined whether the second condition variable corresponding to the digital certificate application meets the preset requirements. For example, it is determined whether the gateway's network status is good. If it is good, it can be determined that the communication between the gateway and the TSP backend is unimpeded. The second condition variable meets the preset requirements, and a new digital certificate can be applied for from the TSP backend.

[0121] The second condition variable can be the same as the first condition variable set after the previous successful digital certificate application. Alternatively, the second condition variable can be specifically set for cases where the digital certificate application fails. For example, if the failure is due to poor gateway network conditions and communication problems, the second condition variable can be set to the gateway's network condition. If the failure is due to an expired digital certificate, the second condition variable can be set to whether the digital certificate in the TSP backend has been updated. If the certificate has been updated, confirming that the application is valid and the certificate is still valid, a new application can be submitted to the TSP backend.

[0122] In some embodiments, step S104, synchronizing the digital certificate to the OTA process on the vehicle, includes:

[0123] S1041: Synchronize the digital certificate to the OTA process via socket communication;

[0124] S1042: Set the application status of the digital certificate.

[0125] Socket communication refers to network communication implemented by applications using the Socket interface for transferring data between different computers. A Socket is a standard API (Application Programming Interface) that can be used to transfer data between different computers, supporting multiple network protocols such as TCP and UDP. Socket communication is cross-platform and not limited by a specific operating system. It is also flexible, using different network protocols (such as TCP and UDP) to meet different needs.

[0126] Specifically, the gateway uses socket communication to send the digital certificate to the vehicle's OTA process, making network communication more convenient and flexible. Simultaneously, the gateway can set the application status of the digital certificate, facilitating subsequent EOL (End of Line) equipment to read the application status and perform vehicle off-line diagnostics after the vehicle has rolled off the production line. The application status of the digital certificate includes a successful application status and a failed application status. EOL equipment (e.g., a diagnostic tool) can diagnose the SDPE via OBD CAN, and then establish communication with the A55 processor through the SDPE to obtain the current status of the certificate.

[0127] In some embodiments, such as Figure 4 As shown, the method further includes:

[0128] S501: When the vehicle rolls off the production line, the digital certificate is sent to the EOL device on the vehicle so that the EOL device can obtain the application status of the digital certificate and determine whether the gateway has applied for the digital certificate online.

[0129] S502: If the application is successful, the EOL device verifies the digital certificate; if the application is unsuccessful, the EOL device obtains the reason for the failure of the digital certificate application, and sends a digital certificate application request to the gateway when the third condition variable corresponding to the digital certificate application meets the preset requirements.

[0130] Specifically, "vehicle rollout" refers to the final process on the vehicle production line, also known as "vehicle exit." During vehicle production, after assembly through multiple processes and assembly lines, all vehicle components are complete, and the final finished vehicle is about to leave the production line for sale or delivery. Upon vehicle rollout, the digital certificate is sent to the EOL (End-of-Life) device on the vehicle to facilitate vehicle diagnostics. If the EOL device reads the application status of the digital certificate as successful, it verifies the digital certificate. Specifically, this verification can be performed by determining whether the digital certificate was issued by a legitimate certificate authority, whether it is within its validity period, and whether the public and private keys of the digital certificate match.

[0131] If the EOL device reads the application status of the digital certificate as "application failed," then the EOL device cannot read the digital certificate and obtain the reason for the application failure. For example, if the reason for the digital certificate application failure is a poor network connection, and the third condition variable corresponding to the digital certificate application is the current network status of the gateway, and the current network status is good and meets the preset requirements, then a digital certificate application request is sent to the gateway to reapply for the digital certificate.

[0132] The aforementioned third condition variable can be the same as the first and / or second condition variables, or it can be an independent condition variable set for the EOL device. For example, in this embodiment, to ensure the reliability of the digital certificate application, the second condition variable can be the current network status between the gateway and the TSP backend, and the third condition variable can be the current network status between the gateway and the TSP backend, as well as the current network status between the gateway and the EOL device.

[0133] In some embodiments, such as Figure 3 As shown, after receiving the digital certificate application request from the vehicle, in step S101, the method further includes:

[0134] S601: Determine whether the digital certificate exists;

[0135] S602: If the digital certificate exists, verify it; if it does not exist, apply for a corresponding digital certificate from the TSP backend.

[0136] In this embodiment, after receiving a digital certificate application request from the vehicle, the gateway's CertManager process checks if the VIN code of the vehicle is written in the gateway, and then checks if a digital certificate corresponding to the vehicle already exists in the gateway. If it exists, the digital certificate is verified to determine if it is legal and valid. If the digital certificate is legal and valid, it is directly synchronized to the vehicle's OTA process, eliminating the need for the gateway to repeatedly apply for a digital certificate and improving the efficiency of the entire digital certificate application process. If it does not exist, step S102 is executed to apply for the corresponding digital certificate from the TSP backend.

[0137] When verifying the digital certificate, the verification can be performed by determining whether the public and private keys of the digital certificate match, whether the certificate name of the digital certificate matches the basic information of the vehicle, whether the digital certificate is issued by a legitimate institution, and whether the digital certificate is within its validity period.

[0138] The following section uses specific application scenarios as examples to describe the digital certificate application method in detail.

[0139] Scenario 1: For example Figure 3 As shown, the specific steps for applying for a digital certificate include:

[0140] S701: Start;

[0141] S702: The gateway is powered on, the CertManager process starts, and it checks whether a VIN exists; if it does not exist, proceed to step S702; if it exists, proceed to step S703.

[0142] S703: Determine if a digital certificate exists; if it exists, proceed to step S705; if it does not exist, proceed to step S704.

[0143] S704: Apply for a digital certificate;

[0144] S705: Determine if the public and private keys match; if they do not match, proceed to step S715; if they match, proceed to step S706.

[0145] S706: Determine if the VIN matches; if it does not match, proceed to step S715; if it matches, proceed to step S707.

[0146] S707: Determine if SN matches; if not, proceed to step S715; if they match, proceed to step S708.

[0147] S708: Determine if the digital certificate is valid; if not, proceed to step S715; if valid, proceed to step S709.

[0148] S709: Determine whether the digital certificate was issued by a legitimate authority (i.e., determine whether the digital certificate was issued by a preset certificate authority); if it was not issued by a legitimate authority, proceed to step S715; if it was issued by a legitimate authority, proceed to step S710.

[0149] S710: Stores digital certificates;

[0150] S711: Socket communication synchronizes with the vehicle's OTA process;

[0151] S712: Set the digital certificate application status to successful;

[0152] S713: Set condition variables;

[0153] S714: Determine if the condition variable is satisfied; if satisfied, proceed to step 702; if not satisfied, proceed to step S719.

[0154] S715: Set the digital certificate application status to failed and retrieve the reason for failure;

[0155] S716: Delete digital certificate;

[0156] S717: Start the timer, which will count down for 60 seconds;

[0157] S718: Reactivate the certificate application process, i.e., reapply for a digital certificate;

[0158] S719: End.

[0159] The steps of Scenario 1 above provide a detailed explanation of the process by which the gateway applies for a digital certificate from the TSP backend. This digital certificate application process includes the specific application procedure, the verification process after the application, the storage of the digital certificate, and the handling of successful and failed applications. This effectively ensures the reliability of the digital certificate application and the validity and security of the obtained digital certificate. In this embodiment, the first condition variable set after a successful digital certificate application and the second condition variable used after a failed application are the same condition variable.

[0160] Scenario 2: For example Figure 4 As shown, the specific steps for applying for a digital certificate include:

[0161] S801: Start;

[0162] S802: When the vehicle rolls off the production line, use the EOL device to read the digital certificate status in the gateway and determine whether the digital certificate exists; if it exists, proceed to step S803; if it does not exist, proceed to step S806.

[0163] S803: Determine whether the digital certificate was issued by a legitimate authority (i.e., determine whether the digital certificate was issued by a preset certificate authority); if it was not issued by a legitimate authority, proceed to step S806.

[0164] If it is issued by a legitimate institution, proceed to step S804;

[0165] S804: Determine if the digital certificate is valid; if not, proceed to step [step 1].

[0166] S806; If it is within the validity period, proceed to step S805;

[0167] S805: Determine if the public and private keys match; if they do not match, proceed to step S806; if they match, proceed to step S808.

[0168] S806: Reason for certificate application failure;

[0169] S807: Reactivate the certificate application process, i.e., reapply for a digital certificate;

[0170] S808: End.

[0171] This embodiment communicates with the vehicle's diagnostic process via socket to respond to OBD diagnostics. It can not only apply for digital certificates, but also support EOL device diagnostics, thereby sending the digital certificate application status to the EOL device. Furthermore, it can trigger the application and deletion of digital certificates through the EOL device, thus improving the rationality of digital certificate applications.

[0172] It should be understood that the above examples are for illustrative purposes only and should not constitute specific limitations.

[0173] Example 2

[0174] Figure 5 A schematic diagram of a digital certificate application device provided in the second embodiment of this disclosure is shown below. Figure 5 As shown, the digital certificate application apparatus provided in the second embodiment of this disclosure corresponds to the digital certificate application method of the first embodiment described above. It includes a receiving module 10, an obtaining module 20, an application module 30, and a processing module 40, all coupled to each other.

[0175] Receiver module 10 is used to receive digital certificate application requests from the vehicle end;

[0176] The acquisition module 20 is used to acquire and integrate the corresponding certificate application information based on the digital certificate application request.

[0177] Application module 30 is used to apply for the corresponding digital certificate from the TSP backend based on the integrated certificate application information;

[0178] The processing module 40 is used to receive the digital certificate generated by the TSP backend and synchronize the digital certificate to the OTA process on the vehicle.

[0179] Furthermore, the application module 30 is also used for:

[0180] Establish a communication connection with the TSP backend;

[0181] The integrated certificate application information is sent to the TSP backend using the HTTPS protocol.

[0182] Furthermore, the digital certificate application device also includes:

[0183] The verification module is used to verify the digital certificate;

[0184] The processing module 40 is further configured to: if the verification is successful, determine that the digital certificate application was successful, and synchronize the digital certificate to the OTA process on the vehicle; if the verification fails, obtain the reason for the failure of the digital certificate application, and delete the digital certificate.

[0185] Furthermore, the verification module is specifically used for:

[0186] Verify whether the public and private keys of the digital certificate match; and / or

[0187] Verify whether the certificate name of the digital certificate matches the vehicle's basic information; and / or

[0188] Verify whether the digital certificate was issued by a preset certificate authority; and / or

[0189] Verify whether the digital certificate is valid.

[0190] Furthermore, the digital certificate application device also includes:

[0191] The setting module is used to set the first condition variable corresponding to the digital certificate application after the digital certificate application is successfully applied for.

[0192] The processing module 40 is further configured to: determine whether the first condition variable meets preset requirements;

[0193] If the conditions are met, reapply for the digital certificate.

[0194] Furthermore, the processing module 40 is also used for:

[0195] After the digital certificate verification fails, the application for the digital certificate is activated according to a preset time interval.

[0196] Determine whether the second condition variable corresponding to the digital certificate application meets the preset requirements;

[0197] If the conditions are met, reapply for the digital certificate.

[0198] Furthermore, the processing module 40 is also used for:

[0199] The digital certificate is synchronized to the OTA process via socket communication;

[0200] Set the application status of the digital certificate.

[0201] Furthermore, the digital application device also includes a diagnostic module for:

[0202] When the vehicle rolls off the production line, the digital certificate is sent to the EOL device on the vehicle so that the EOL device can obtain the application status of the digital certificate and determine whether the gateway has applied for the digital certificate online.

[0203] If the application is successful, the EOL device verifies the digital certificate; if the application fails, the EOL device obtains the reason for the failure of the digital certificate application, and sends a digital certificate application request to the gateway when the third condition variable corresponding to the digital certificate application meets the preset requirements.

[0204] Furthermore, the device also includes a second determination module, used for:

[0205] Determine if the digital certificate exists;

[0206] If the digital certificate exists, verify it; if it does not exist, apply for the corresponding digital certificate from the TSP backend.

[0207] It should be noted that the digital certificate application device provided in this disclosure corresponds to the digital certificate application method in the above embodiments. Based on the above digital certificate application method, those skilled in the art can understand the specific implementation of the digital certificate application device in this disclosure and its various variations. Any option in the embodiments of the digital certificate application method is also applicable to the digital certificate application device, and will not be repeated here.

[0208] Example 3

[0209] The third embodiment of this disclosure provides a storage medium, which is a computer-readable medium storing a computer program. When executed by a processor, the computer program implements the method provided in the first embodiment of this disclosure, including the following steps S101 to S104:

[0210] S101: Receives a digital certificate application request from the vehicle.

[0211] S102: Based on the digital certificate application request, obtain the corresponding certificate application information and integrate it;

[0212] S103: Apply for the corresponding digital certificate from the TSP backend based on the integrated certificate application information;

[0213] S104: Receive the digital certificate generated by the TSP backend and synchronize the digital certificate to the OTA process on the vehicle.

[0214] Furthermore, when the computer program is executed by the processor, it implements other methods provided in the first embodiment of this disclosure.

[0215] Example 4

[0216] The fourth embodiment of this disclosure provides a gateway, which includes at least a memory and a processor. The memory stores a computer program, and the processor, when executing the computer program in the memory, implements the method provided in the first embodiment of this disclosure, including the following steps S101 to S104:

[0217] S101: Receives a digital certificate application request from the vehicle.

[0218] S102: Based on the digital certificate application request, obtain the corresponding certificate application information and integrate it;

[0219] S103: Apply for the corresponding digital certificate from the TSP backend based on the integrated certificate application information;

[0220] S104: Receive the digital certificate generated by the TSP backend and synchronize the digital certificate to the OTA process on the vehicle.

[0221] Furthermore, the processor also executes the computer program described in the third embodiment above.

[0222] The aforementioned storage medium may be included in the aforementioned gateway; or it may exist independently and not be assembled into the gateway.

[0223] The aforementioned storage medium carries one or more programs. When the gateway executes one or more of these programs, the gateway causes the gateway to: receive a digital certificate application request from the vehicle; obtain and integrate the corresponding certificate application information based on the digital certificate application request; apply for a corresponding digital certificate from the TSP backend based on the integrated certificate application information; receive the digital certificate generated by the TSP backend; and synchronize the digital certificate to the OTA process on the vehicle.

[0224] Specifically, computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the passenger's computer, partially on the passenger's computer, as a standalone software package, partially on the passenger's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the passenger's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0225] It should be noted that the storage medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any storage medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the storage medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0226] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0227] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

Claims

1. A method for applying for a digital certificate, characterized in that, Applied to gateways, including: Receive digital certificate application requests from the vehicle; Based on the digital certificate application request, the corresponding certificate application information is obtained and integrated to obtain the certificate application document; The certificate application file is encrypted using a first encryption key stored in a secure storage area; The gateway requests a corresponding digital certificate from the TSP backend based on the encrypted certificate request file. The TSP backend uses a second encryption key that matches the first encryption key to decrypt the encrypted certificate request file. The gateway and the TSP backend use the same encryption algorithm and a mutually matching shared key. Receive the digital certificate generated by the TSP backend; Verify the digital certificate; If the verification is successful, the digital certificate application is confirmed to be successful. The digital certificate is then synchronized to the OTA process via socket communication, and the application status of the digital certificate is set. If the verification fails, the reason for the failure of the digital certificate application is obtained, and the digital certificate is deleted. After the digital certificate is successfully applied for, the method further includes: setting a first condition variable corresponding to the digital certificate application, wherein the first condition variable includes the number of times the digital certificate is used and the current network status of the gateway; in response to the number of times the digital certificate is used exceeding a preset threshold, determining that the first condition variable meets a preset requirement; in response to the current network status of the gateway being good and the communication status between the gateway and the TSP being good, determining that the first condition variable meets the preset requirement; if it is determined that the first condition variable meets the preset requirement, reapplying for the digital certificate; The method further includes: when the vehicle rolls off the production line, sending the digital certificate to the EOL device on the vehicle side, so that the EOL device can obtain the application status of the digital certificate and determine whether the gateway has applied for the digital certificate online; if it has applied for the digital certificate, the EOL device verifies the digital certificate; if it has not applied for the digital certificate, the EOL device obtains the reason for the failure of the digital certificate application, and when the third condition variable corresponding to the digital certificate application meets the preset requirements, sends a digital certificate application request to the gateway, wherein the third condition variable is the current network status between the gateway and the TSP backend and the current network status between the gateway and the EOL device.

2. The digital certificate application method according to claim 1, characterized in that, Apply for the corresponding digital certificate from the TSP backend based on the integrated certificate application information, including: Establish a communication connection with the TSP backend; The integrated certificate application information is sent to the TSP backend using the HTTPS protocol.

3. The digital certificate application method according to claim 1, characterized in that, Verifying the digital certificate includes: Verify whether the public and private keys of the digital certificate match; and / or Verify whether the certificate name of the digital certificate matches the vehicle's basic information; and / or Verify whether the digital certificate was issued by a preset certificate authority; and / or Verify whether the digital certificate is valid.

4. The digital certificate application method according to claim 1, characterized in that, After the digital certificate verification fails, the method further includes: The digital certificate application is initiated according to a preset time interval. Determine whether the second condition variable corresponding to the digital certificate application meets the preset requirements; If the conditions are met, reapply for the digital certificate.

5. The digital certificate application method according to claim 1, characterized in that, After receiving a digital certificate application request from the vehicle, the method further includes: Determine if the digital certificate exists; If the digital certificate exists, verify it; if it does not exist, apply for the corresponding digital certificate from the TSP backend.

6. A digital certificate application device, characterized in that, The apparatus for performing the digital certificate application method according to any one of claims 1 to 5, the apparatus comprising: The receiving module is used to receive digital certificate application requests from the vehicle. The acquisition module is used to acquire and integrate the corresponding certificate application information based on the digital certificate application request. The application module is used to apply for the corresponding digital certificate from the TSP backend based on the integrated certificate application information; The processing module is used to receive the digital certificate generated by the TSP backend and synchronize the digital certificate to the OTA process on the vehicle.

Citation Information

Patent Citations

  • Vehicle certificate application method and device, electronic equipment and storage medium

    CN116546495A

  • OTA certificate application frequency control method and device, equipment and medium

    CN116684866A