Communication key configuration method and apparatus

CN114915942BActive Publication Date: 2026-11-24YINWANG INTELLIGENT TECHNOLOGIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110184217.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-10
Publication Date
2026-11-24
Estimated Expiration
2041-02-10

AI Technical Summary

Technical Problem

During data transmission between vehicles and cloud devices, the key negotiation process requires multiple message exchanges, resulting in a large amount of communication data, which affects data upload performance. Furthermore, the security of temporary keys depends on the randomness of random numbers, making them easy for attackers to predict, thus leading to poor data security.

Method used

The certificate key management server directly assigns communication keys to vehicles, uses the first certificate to verify identity credentials and uses the second certificate to encrypt the communication key, reducing the number of message exchanges and transmitting the key through a secure channel to ensure the security and legitimacy of the key.

Benefits of technology

It reduces the number of message exchanges during the key negotiation process, improves the security and reliability of communication keys, meets regulatory and auditing requirements, and enhances the security and performance of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114915942B_ABST
    Figure CN114915942B_ABST
Patent Text Reader

Abstract

The application provides a communication key configuration method and device, wherein a certificate key management server can receive a first message from a first terminal, the first message containing a first certificate and a second certificate. The certificate key management server can verify the first terminal has identity credentials for requesting the communication key by using the second certificate based on the first certificate, and then the certificate key management server can encrypt the communication key allocated to the first terminal by using a first public key in the second certificate to obtain the ciphertext of the communication key, and send a second message containing the ciphertext of the communication key to the first terminal. It can be seen that the method not only can directly allocate the communication key for the first terminal to reduce the number of message interactions required for negotiating the key, but also can verify the identity credentials possessed by the first terminal by using the first certificate, and encrypt the communication key by using the second certificate, thereby greatly guaranteeing the security of the allocation and transmission of the communication key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of vehicle networking and communication technology, and in particular to a communication key configuration method and apparatus. Background Technology

[0002] With the increasing number, enhanced functionality, and improved accuracy of on-vehicle sensors, the amount of information collected by on-vehicle devices, such as geographic location data, vehicle trajectory, and surrounding information, has increased dramatically, as has their sensitivity. Therefore, the requirements for data security are becoming increasingly stringent. To collect the sensor data collected by the on-vehicle devices and optimize applications such as autonomous driving, cloud-based devices need to upload the data to the cloud.

[0003] To ensure data upload security, cloud devices need to negotiate a key with vehicle-side devices to obtain a key, which is then used to encrypt the data before uploading. However, the key negotiation process requires multiple message exchanges, resulting in a large amount of communication data and impacting upload performance. Furthermore, the security of the temporary key obtained through key negotiation is related to the randomness of the random numbers generated by both parties. If the randomness of the random numbers decreases, it becomes easier for attackers to predict, leading to poor data security.

[0004] Therefore, how to configure the key used for data in communication to ensure data security has become an urgent problem to be solved. Summary of the Invention

[0005] This application provides a communication key configuration method and apparatus that can directly assign communication keys to vehicles, reducing the number of message interactions required, and ensuring the security of communication key allocation and transmission, thereby guaranteeing data security.

[0006] In a first aspect, this application provides a communication key configuration method, in which a certificate key management server receives a first message from a first terminal, the first message containing a first certificate and a second certificate; the certificate key management server uses the first certificate to verify that the first terminal has the identity credentials to request a communication key using the second certificate; the certificate key management server can use the second certificate to encrypt the communication key allocated to the first terminal to obtain the ciphertext of the communication key; thereby sending a second message containing the ciphertext of the communication key to the first terminal.

[0007] Optionally, the first terminal can be a vehicle or a vehicle module, such as an in-vehicle device. Alternatively, the first terminal can also be a robot, drone, or other intelligent device or transportation vehicle, or a component or module within such a device. The certificate key management server supports communication connections with multiple robots, drones, or other intelligent devices, or multiple vehicles, multiple in-vehicle devices, or components or modules within such devices, and the certificate key management server is considered relatively trustworthy for these intelligent devices, transportation vehicles, or their components or modules.

[0008] As can be seen, after receiving the first message from the first terminal, the certificate key management server can directly allocate a communication key to the first terminal to avoid the problem that the key obtained through key negotiation cannot guarantee the key strength; and the certificate key management server can use the first certificate to verify that the first terminal has the identity credentials to request a communication key using the second certificate, so as to ensure that the communication key is allocated to the vehicle with identity credentials; and the certificate key management server can also use the second certificate to encrypt the communication key allocated to the vehicle to ensure the security of the communication key transmission.

[0009] In addition, this application assigns communication keys to vehicles by a certificate key management server, which is more conducive to meeting regulatory and auditing requirements compared to the method of vehicles directly negotiating keys with cloud servers.

[0010] In one optional implementation, the first certificate may differ from the device certificate. This first certificate can be dedicated to verifying the identity credentials of the vehicle requesting the key. This avoids the problem of the first terminal directly using the device certificate to request the key, which could lead to excessive use of the device certificate and potential leakage of its corresponding private key, thus resulting in the leakage of the communication key. Optionally, the first certificate can also be updated more frequently than the device certificate. Even if the private key corresponding to the first certificate is leaked, a new first certificate can be applied for, and the leaked registration certificate can be revoked, ensuring that subsequent identity credential verification is unaffected and improving security.

[0011] In one optional implementation, the second certificate can be a certificate specifically used for communication key distribution. This application uses a second certificate to ensure the confidentiality of communication key transmission. Compared to encrypting communication keys with a device certificate or a first certificate, this method further increases the update frequency of the second certificate. Even if the second private key corresponding to the second certificate is leaked, a new second certificate can be applied for, and the leaked second certificate can be revoked, ensuring that subsequent communication key transmission is unaffected and improving security.

[0012] In addition, a vehicle may have multiple first certificates, each corresponding to a different business; a vehicle may also have multiple second certificates, each corresponding to different data for the same business. This application does not impose any restrictions on this.

[0013] In one optional implementation, the first message from the first terminal further includes a first signature. Thus, the certificate key management server verifies that the first terminal possesses the identity credentials to request a communication key using the second certificate based on the first public key in the first certificate. This verification may include: the certificate key management server verifying the first signature based on the first message and the first public key in the first certificate; and, if the first signature verification passes, the certificate key management server determining that the first terminal possesses the first message and the first private key corresponding to the first certificate (or, the first terminal possesses the first private key corresponding to the first certificate and the first message has not been tampered with). The first message and the first private key are used to indicate that the first terminal possesses the identity credentials to request a communication key using the second certificate. This facilitates the certificate key management server in allocating communication keys to vehicles with identity credentials.

[0014] In one optional implementation, the second message sent by the certificate key management server further includes a second signature. This second signature is generated by the certificate key management server using the ciphertext of the communication key and the private key corresponding to its own certificate, and is used to indicate that the second message originates from the certificate key management server. This allows the first terminal to verify the legitimacy of the second message's source based on the second signature, and thus enable it to use the communication key for data transmission.

[0015] In this application, the first certificate and the second certificate described above can be assigned to the first terminal by a certificate key management server. For example, but not limited to, the certificate key management server assigns the first certificate and the second certificate to the first terminal before receiving the first message from the first terminal, such as during the activation or delivery of the first terminal to a customer.

[0016] In one optional implementation, the operation of the certificate key management server in allocating a second certificate to the first terminal may include, but is not limited to, the following steps: the certificate key management server receives a third message from the first terminal, the third message containing a first certificate and a second public key; the certificate key management server uses the first public key in the first certificate to verify that the first terminal has the identity credentials to request a communication key using the second certificate; the certificate key management server uses the second public key from the first terminal to generate a second certificate; the certificate key management server sends a fourth message to the first terminal, the fourth message including the second certificate. Therefore, this implementation ensures that the second certificate can be distributed to vehicles with corresponding identity credentials, enabling vehicles to directly request a communication key from the certificate key management server using the communication key configuration method described in this application.

[0017] Optionally, the third message from the first terminal may be a second certificate request message, used to request a second certificate, and then request a communication key.

[0018] Optionally, the third message from the first terminal may also include a third signature. Thus, the certificate key management server uses the first certificate to verify that the first terminal possesses the identity credentials to request a communication key using the second certificate, including: the certificate key management server verifies the third signature based on the second public key and the first public key in the first certificate; when the third signature verification passes, the certificate key management server determines that the first terminal possesses the second public key and the first private key corresponding to the first certificate (or, the first terminal possesses the first private key corresponding to the first certificate and the second public key has not been tampered with); the second public key and the first private key are used to indicate that the first terminal possesses the identity credentials to request a communication key using the second certificate. Furthermore, this facilitates the allocation of the second certificate to vehicles possessing the corresponding identity credentials via the aforementioned fourth message.

[0019] In one optional implementation, the operation of the certificate key management server assigning a first certificate to the first terminal may include, but is not limited to, the following steps: the certificate key management server receives a fifth message from the first terminal; the fifth message includes a device certificate and a first public key; the certificate key management server uses the device certificate to verify that the first terminal has the identity credentials to request the first certificate; the certificate key management server generates a first certificate based on the first public key from the first terminal; the certificate key management server sends a sixth message to the first terminal, the sixth message including the first certificate. Therefore, this implementation not only assigns a first certificate to a vehicle but also ensures that the vehicle assigned the first certificate is a vehicle with the corresponding identity credentials.

[0020] Optionally, the fifth message also includes a fourth signature. Thus, the certificate key management server uses the device certificate to verify that the first terminal possesses the identity credentials to request the first certificate, including: the certificate key management server verifies the fourth signature based on the first public key and the third public key in the device certificate; when the fourth signature verification passes, the certificate key management server determines that the first terminal possesses the first public key and the third private key corresponding to the device certificate, the first public key and the third private key being used to indicate that the first terminal possesses the identity credentials to request the first certificate. Therefore, this implementation ensures that the vehicle assigned the first certificate is a vehicle with the corresponding identity credentials.

[0021] The communication key configuration method provided in this application may further include: a certificate key management server transmitting a communication key assigned to a first terminal to a cloud server through a secure channel. This enables the cloud server to use the communication key to decrypt data encrypted with that communication key uploaded by the first terminal, thereby facilitating the cloud server's optimization of applications such as autonomous driving.

[0022] Optionally, the operations related to the communication key configuration method, the first certificate allocation, and the second certificate allocation described above may, but are not limited to, be executed in three different stages. For example, in one stage, the first certificate allocation operation may be executed; in another stage, the second certificate allocation operation may be executed; and in yet another stage, the communication key configuration operation may be executed. Optionally, the update cycles for the first terminal's application for the first certificate, the second certificate, and the communication key may also be different. This improves the flexibility of the first terminal in triggering the relevant operations at each stage and also improves the flexibility of the division of functional modules within the first terminal.

[0023] Secondly, this application also provides a communication key configuration method, which corresponds to the communication key configuration method described in the first aspect and is explained from the perspective of a first terminal. In this method, the first terminal can send a first message to a certificate key management server; the first message includes a first certificate and a second certificate; the first terminal receives a second message; the second message is sent by the certificate key management server after verifying that the first terminal has the identity credentials to request a communication key using the second certificate; the second message contains the ciphertext of the first terminal's communication key; the first terminal uses the second private key corresponding to the second certificate to decrypt the ciphertext of the communication key to obtain the communication key.

[0024] Optionally, the first terminal can be a vehicle or a vehicle module, such as an in-vehicle device. Alternatively, the first terminal can also be a robot, drone, or other intelligent device or transportation vehicle, or a component or module within such a device. The certificate key management server supports communication connections with multiple robots, drones, or other intelligent devices, or multiple vehicles, multiple in-vehicle devices, or components or modules within such devices, and the certificate key management server is considered relatively trustworthy for these intelligent devices, transportation vehicles, or their components or modules.

[0025] As can be seen, in this application, the first terminal can apply for a communication key through the first message, and thus directly receive the second message returned from the certificate key management server to obtain the communication key. This avoids the problem that the first terminal needs to negotiate with the communication peer, such as a cloud server, and the key obtained cannot guarantee the key strength. Furthermore, on the one hand, the first terminal can use the first certificate to indicate to the certificate key management server that it is a vehicle with identity credentials. On the other hand, the first terminal can use the second private key corresponding to the second certificate to uniquely obtain the communication key assigned to it by the certificate key management server, thus ensuring the security of communication key transmission.

[0026] In addition, in this application, the first terminal can obtain the communication key from the certificate key management server, which is more conducive to meeting the needs of supervision and auditing compared with the method of the vehicle directly negotiating the communication key with the cloud server.

[0027] In one optional implementation, the first certificate may differ from the device certificate. This first certificate can be dedicated to verifying the identity credentials of the vehicle requesting the key. This avoids the problem of the first terminal directly using the device certificate to request the key, which could lead to excessive use of the device certificate and potential leakage of its private key, thus resulting in the leakage of the communication key. Optionally, the first certificate can also be updated more frequently than the device certificate. Even if the private key corresponding to the first certificate is leaked, a new first certificate can be applied for, and the leaked first certificate can be revoked, ensuring that subsequent identity credential verification is unaffected and improving security.

[0028] In one optional implementation, the second certificate can be a certificate specifically used for communication key distribution. This application uses a second certificate to ensure the confidentiality of communication key transmission. Compared to encrypting communication keys with a device certificate or a first certificate, this method further increases the update frequency of the second certificate. Even if the second private key corresponding to the second certificate is leaked, a new second certificate can be applied for, and the leaked second certificate can be revoked, ensuring that subsequent communication key transmission is unaffected and improving security.

[0029] In one optional implementation, the first message sent by the first terminal further includes a first signature. That is, before the first terminal sends the first message to the certificate key management server, the method further includes: the first terminal generating a first signature using a first certificate, a second certificate, and a first private key corresponding to the first certificate; the first signature is used by the certificate key management server to verify that the first terminal possesses the identity credentials to request a communication key using the second certificate. This facilitates the certificate key management server in allocating a communication key to the first terminal with the identity credentials.

[0030] In one optional implementation, the second message further includes a second signature; after the first terminal receives the second message, the method further includes: the first terminal verifying the second signature using the public key in the certificate of the certificate key management server; and when the second signature verification passes, the first terminal determines that the second message originates from the certificate key management server. Optionally, the first terminal verifies the second signature using the ciphertext of the communication key and the public key in the certificate of the certificate key management server. It is evident that this implementation allows the first terminal to verify the legitimacy of the second message's source based on the second signature, thereby enabling it to use the communication key for data transmission, thus improving the security of the communication key.

[0031] In this application, the first certificate and the second certificate mentioned above can be applied for separately by the first terminal. For example, but not limited to, before the first terminal sends the first message, such as during the activation or delivery of the first terminal to a customer, the first terminal requests the first certificate and the second certificate from the certificate key management server.

[0032] In one optional implementation, the first terminal requests a second certificate from the certificate key management server, including but not limited to the following steps: the first terminal sends a third message to the certificate key management server, the third message including the first certificate and the second public key; the first terminal receives a fourth message; the fourth message is sent by the certificate key management server after verifying that the first terminal has the identity credentials to request a communication key using the second certificate; the fourth message includes the second certificate generated by the certificate key management server based on the second public key. Therefore, this implementation can indicate to the certificate key management server that the first terminal is a vehicle with corresponding identity credentials, thereby enabling the first terminal to obtain the second certificate.

[0033] Optionally, the third message may also include a third signature; that is, before the first terminal sends the third message to the certificate key management server, the method further includes: the first terminal generating a third signature based on the second public key and the first private key corresponding to the first certificate; the third signature is used by the certificate key management server to verify that the first terminal has the identity credentials to request the communication key using the second certificate in conjunction with the first certificate.

[0034] In one optional implementation, the first terminal requests a first certificate from the certificate key management server, which may include, but is not limited to, the following related operations: the first terminal sends a fifth message to the certificate key management server; the fifth message includes a device certificate and a first public key; the first terminal receives a sixth message; the sixth message is sent by the certificate key management server after verifying that the first terminal has the identity credentials to request the first certificate using the device certificate; the sixth message includes a first certificate generated by the certificate key management server based on the first public key. Therefore, this implementation can indicate to the certificate key management server that the first terminal is a vehicle with corresponding identity credentials, thereby enabling the first terminal to obtain the first certificate.

[0035] Optionally, the fifth message further includes a fourth signature; before the first terminal sends the fifth message to the certificate key management server, the method further includes: the first terminal generating a fourth signature based on the first public key and the third private key corresponding to the device certificate; the fourth signature is used by the certificate key management server to verify that the first terminal has the identity credentials to request the first certificate in conjunction with the device certificate.

[0036] In the communication key configuration method provided in this application, after the first terminal uses the second private key corresponding to the second certificate to decrypt the ciphertext of the communication key and obtain the communication key, the method further includes: the first terminal using the communication key to encrypt the data to be transmitted to obtain the ciphertext of the data to be transmitted; and the first terminal uploading the ciphertext of the data to be transmitted to the cloud server. This facilitates the cloud server's secure acquisition of this data, which in turn helps the cloud server optimize applications such as autonomous driving.

[0037] Optionally, in one approach, the first terminal uploads the encrypted data to the cloud server along with the key identifier of the corresponding communication key and the vehicle identifier of the first terminal. In another approach, the first terminal uploads both the encrypted data to the cloud server and the key identifier of the corresponding communication key. This allows the cloud server to decrypt the encrypted data using the corresponding communication key. The key identifier corresponding to the communication key can be obtained by the first terminal in the second message, i.e., it is generated when the certificate key management server allocates the communication key to the first terminal.

[0038] Thirdly, this application also provides a data decryption method from the perspective of a cloud server. Specifically, the cloud server can be pre-pushed or actively obtained from the communication key corresponding to each vehicle, and then decrypt the ciphertext of the data uploaded by the corresponding vehicle based on the communication key. Optionally, if a vehicle can have multiple communication keys to encrypt and upload data with different security requirements, then the cloud server also needs to be pre-pushed or actively obtained from the multiple communication keys corresponding to each vehicle and the communication key identifier of each communication key. Correspondingly, while receiving the ciphertext of data from each vehicle, the cloud server can also receive the communication key identifier corresponding to the ciphertext of that data, and then select the corresponding communication key to decrypt the ciphertext of that data. It is evident that this data decryption method avoids the problem of insufficient communication key strength caused by negotiating communication keys between the cloud server and the vehicle, reduces the number of interactive messages, and thus helps to reduce the impact on data upload performance.

[0039] Fourthly, this application also provides a communication key configuration apparatus, including a receiving unit, a processing unit, and a sending unit. The communication key configuration apparatus is used to implement the method described in the first aspect or any possible implementation thereof.

[0040] Fifthly, this application also provides another communication key configuration apparatus, including a receiving unit, a processing unit, and a sending unit. The communication key configuration apparatus is used to implement the method described in the second aspect or any possible implementation thereof.

[0041] Sixthly, this application also provides a data decryption apparatus, including a receiving unit and a processing unit. The data decryption apparatus is used to implement the method described in the third aspect or any possible implementation thereof.

[0042] The transmitting or receiving unit in any of the fourth to sixth aspects described above may also be a transceiver, used to transmit and / or receive data in any of the fourth to sixth aspects described above; the processing unit may also be a processor, used to process data in any of the fourth to sixth aspects described above.

[0043] In a seventh aspect, this application provides a chip system including at least one processor for supporting the implementation of the functions involved in any one of the first to third aspects described above, such as receiving or processing data and / or information involved in the methods described above.

[0044] In one possible design, the chip system further includes a memory for storing program instructions and data, which may be located within or outside the processor. The chip system may consist of chips or may include chips and other discrete devices.

[0045] Eighthly, this application also provides a communication key configuration device, the communication key configuration device including at least one processor and a communication interface, the communication interface being used to send and / or receive data, and the at least one processor being used to invoke a computer program stored in at least one memory, so that the communication key configuration device implements the method described in any one of the first to third aspects or any possible implementation of the first to third aspects.

[0046] Ninthly, this application also provides a communication key configuration system, which includes at least two devices among a certificate key management server, a cloud server, and a first terminal. The certificate key management server is used to implement the method described in the first aspect or any possible implementation thereof, and the first terminal is used to implement the method described in the second aspect or any possible implementation thereof; the cloud server is used to obtain or receive the communication key allocated to the first terminal by the certificate key management server.

[0047] In a tenth aspect, this application also provides a computer-readable storage medium storing a computer program that, when run on one or more processors, implements the methods described in any one of the first to third aspects (or any possible implementation thereof).

[0048] Eleventhly, embodiments of this application disclose a computer program product that, when run on one or more processors, implements the method described in any one of the first to third aspects (or any possible implementation thereof). Attached Figure Description

[0049] Figure 1 This is a schematic diagram of the architecture of a communication system shown in this application;

[0050] Figure 2 This is a schematic diagram of the structure of a communication key configuration system provided in an embodiment of this application;

[0051] Figure 3 This is a flowchart illustrating a communication key configuration method provided in an embodiment of this application;

[0052] Figure 4 This is a flowchart illustrating another communication key configuration method provided in an embodiment of this application;

[0053] Figure 5 This is a flowchart illustrating another communication key configuration method provided in an embodiment of this application;

[0054] Figure 6 This is a flowchart illustrating a first certificate acquisition method provided in an embodiment of this application;

[0055] Figure 7 This is a flowchart illustrating a second certificate acquisition method provided in an embodiment of this application;

[0056] Figure 8 This is a schematic diagram of the structure of a communication key configuration device provided in an embodiment of this application;

[0057] Figure 9 This is a schematic diagram of the structure of a communication key configuration device provided in an embodiment of this application;

[0058] Figure 10 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation

[0059] The technical solutions in the embodiments of this application are described below with reference to the accompanying drawings.

[0060] It should be noted that the use of ordinal numbers such as "first" and "second" in the embodiments of this application is for distinguishing multiple objects, and is not for limiting the order, sequence, priority, or importance of multiple objects. For example, "first message," "second message," and "third message" are only used to distinguish different message types, and do not indicate that the two types of messages are different in structure, importance, etc.

[0061] In this embodiment, a public key and a private key are typically used in the signing process. The public and private keys are a pair of keys used for mutual encryption and decryption. The private key is stored privately, while the public key is publicly available. In use, the public key is used to encrypt plaintext to obtain ciphertext, and the private key is used to decrypt the ciphertext to obtain plaintext. Alternatively, the private key is used to sign the original text, and the public key and the signature are used to verify whether the original text has been tampered with.

[0062] The signing and verification process can be summarized as follows (taking nodes A and B as an example): Node A hashes the original text to obtain the first hash value; Node A encrypts the first hash value using its private key to obtain the signature value, and sends the original text and signature value to node B; Node B decrypts the signature value using its public key to obtain the second hash value; Node B hashes the original text to obtain the third hash value, and compares the second hash value with the third hash value to verify whether the original text has been tampered with.

[0063] The source of the public key can be the public key in a digital certificate. A digital certificate (also called a security certificate) is a digital authentication that identifies an individual; it is typically issued by a Certificate Authority (CA) or a trusted third-party device and is considered a relatively authoritative and impartial certificate. Node B can verify that the public key is its own public key through the digital certificate of the public key.

[0064] It should be understood that the foregoing explanations of public keys, private keys, and signatures are merely for illustrating the principles of implementation and do not limit the use of the same parameters. For example, there can be other improvements and variations in the specific implementation of signatures. Furthermore, it should be noted that the terms "authentication," "verification," and "authentication" mentioned in the embodiments of this application can be used to indicate whether something is correct or reasonable, and whether it has been tampered with.

[0065] The system architecture and business scenarios of embodiments of this application are described.

[0066] It should be noted that the system architecture and business scenarios described in this application are for the purpose of more clearly illustrating the technical solutions of this application, and do not constitute a limitation on the technical solutions provided in this application. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in this application are also applicable to similar technical problems.

[0067] Please see Figure 1 , Figure 1This is a schematic diagram of the architecture of a communication system exemplified in this application. The communication system may include a business cloud platform 101 (also referred to as a cloud server) and a vehicle 102. For example, but not limited to, the vehicle 102 is a vehicle based on an Electrical / Electronic Architecture (E / E) architecture. See area 103. The vehicle 102 may include at least one of the following components: Mobile Data Center (MDC), Human-Machine Interaction (HMI), Gateway (GW), Telematics Box (Tbox or TCU), Electronic Control Unit (ECU), etc. The GW is the core component of the vehicle, serving as the data interaction hub for the vehicle network, routing network data such as Controller Area Network (CAN), Local Interconnect Network (LIN), and Media Oriented System Transport (MOST) across different networks. The MDC is the vehicle's intelligent in-vehicle computing platform. The T-BOX is mainly used for communication with external systems, backend systems, and mobile applications (APPs). HMI stands for H-MI (Host Information Management), which is the vehicle's information input, entertainment, and interaction system. ECU is the control unit within the vehicle.

[0068] To ensure the security of data uploaded by vehicle 102 to the business cloud platform 101, vehicle 102 needs to obtain a communication key with the business cloud platform 101 through key negotiation and key derivation. Then, vehicle 102 encrypts the uploaded data using this communication key before uploading it to the business cloud platform 101. However, the key negotiation and key derivation processes during data upload connection establishment require multiple message exchanges and involve a large amount of communication data, impacting data upload performance. Furthermore, the security of the temporary key obtained through key negotiation is related to the randomness of the random numbers generated by both parties. If the randomness of the random numbers decreases, it becomes easier for attackers to predict, resulting in poor data security.

[0069] This application provides a communication key configuration system that can directly assign communication keys to vehicles, reducing the number of message interactions required, and ensuring the security of communication key allocation and transmission, thereby guaranteeing data security.

[0070] Please see Figure 2 , Figure 2This is a schematic diagram of a communication key configuration system provided in an embodiment of this application. The system includes at least two devices selected from a certificate key management server 201, a first terminal 202, and a cloud server 203. For example, if the system includes two devices from the certificate key management server 201, the first terminal 202, and the cloud server 203, then the system can interact with another device other than these two devices through a communication interface. Figure 2 This explanation will take a system comprising three devices as an example. Among them:

[0071] The certificate key management server 201 is a device with data processing capabilities. It can be a physical device such as a host or server, or a virtual device such as a virtual machine or container. The certificate key management server 201 can transmit information with the first terminal 202, for example, by assigning a communication key to the first terminal 202. The certificate key management server 201 can also transmit information with the cloud server 203, for example, by pushing the communication key assigned to the first terminal 202 to the cloud server 203 through a secure channel. In some specific implementation scenarios, the certificate key management server 201 is also referred to as a certificate / key management server.

[0072] The first terminal 202 may be a vehicle, or equipment within a vehicle, such as in-vehicle equipment. Optionally, the first terminal 202 may be a robot, drone, or other intelligent device, or a vehicle or other transportation tool, or a component or module within an intelligent device or transportation tool.

[0073] Cloud server 203 is a device with data processing capabilities. It can be a physical device such as a host or server, or a virtual device such as a virtual machine or container. It should be noted that for ease of description, it is referred to as a server here; in the actual implementation, it can be a server, other devices with data processing capabilities, or a module within a device (such as a chip or integrated circuit). Cloud server 203 is a server for collecting data such as geographical location information, vehicle trajectory, and vehicle surrounding information gathered from vehicles.

[0074] Based on this communication key configuration system, a terminal can perform a communication key initialization operation, also known as a communication key configuration operation. For example, a first terminal 202 can send a communication key request to a certificate key management server 201. This communication key request may include a first certificate and a second certificate possessed by the first terminal 202. The certificate key management server 201 uses the first certificate to verify that the first terminal 202 has the identity credentials to request a communication key using the second certificate. The certificate key management server 201 can also use the second certificate to encrypt the communication key allocated to the first terminal 202, obtaining the ciphertext of the communication key, which is then transmitted to the first terminal 202, thereby ensuring the security of the communication key. Optionally, the communication key request may also include a first signature and a request time, etc. Specifically, the first signature can be used by the certificate key management server 201 in conjunction with the first certificate to verify that the first terminal 202 has the identity credentials to request a communication key using the second certificate; the request time can be used by the certificate key management server 201 to verify the freshness of the communication key request, to prevent duplicate requests for the communication key. The first terminal 202 can receive the ciphertext of the communication key from the certificate key management server 201. Optionally, the certificate key management server 201 can transmit the communication key assigned to the first terminal 202 to the cloud server 203 through a secure channel.

[0075] Optionally, the first terminal 202 may include a certificate key management module, which can perform the communication key request operation described above, receive the ciphertext of the communication key from the certificate key management server 201, and decrypt the ciphertext of the communication key, etc., which will not be described in detail here.

[0076] Optionally, based on this communication key configuration system, the terminal can perform operations such as encrypting the data to be transmitted. For example, the first terminal 202 can use the requested communication key to encrypt the data to be transmitted to obtain the ciphertext of the data.

[0077] Optionally, the first terminal 202 may further include a data encryption module, which can encrypt the data to be transmitted using a communication key obtained through a request, thereby obtaining the ciphertext of the data. Optionally, the certificate key management module and the data encryption module in the first terminal 202 can be deployed in... Figure 1 In the same module shown, such as MDC; or, the first terminal 202 has multiple sets of certificate key management modules and data encryption modules. Figure 1 Among the various modules shown, such as MDC, Tbox, and GW in-vehicle devices, one or more certificate key management modules and data encryption modules can be deployed to manage different certificates and communication keys.

[0078] Optionally, based on this communication key configuration system, operations such as secure data transmission can be performed between the terminal and the cloud server. For example, the first terminal 202 uploads the encrypted data to the cloud server 203. Optionally, the first terminal 202 may also include a data packaging module and a transmission module. The data packaging module can package the encrypted data into a data packet, and the transmission module sends the data packet to the cloud server 203.

[0079] Optionally, based on this communication key configuration system, the cloud server can perform operations such as data decryption. For example, the cloud server 203 uses the communication key of the first terminal 202 transmitted by the certificate key management server 201 to decrypt the ciphertext of the data.

[0080] Optionally, before performing the communication key initialization operation, the terminal may also perform a certificate initialization operation. For example, the first terminal 202 may send a first certificate request and a second certificate request to the certificate key management server 201 respectively, or the first terminal 202 may send a certificate request to the certificate key management server 201 to request a first certificate and a second certificate. Then, the certificate key management server 201 may allocate a first certificate and a second certificate to the first terminal 202 separately or simultaneously.

[0081] The first certificate request may include the device certificate and first public key of the first terminal 202. The certificate key management server 201 can verify that the first terminal 202 has the identity credentials to request the first certificate based on the device certificate. The certificate key management server 201 can generate a first certificate using the first public key and send it to the first terminal 202. The second certificate request may include the first certificate and second public key of the first terminal 202. The certificate key management server 201 can verify that the first terminal 202 has the identity credentials to request a communication key using the second certificate based on the first certificate. The certificate key management server 201 can generate a second certificate using the second public key and send it to the first terminal 202. Optionally, the certificate request may include the device certificate, first public key, and second public key of the first terminal 202. The certificate key management server 201 can verify that the first terminal 202 has the identity credentials to request the first certificate based on the device certificate. The certificate key management server 201 can generate a first certificate using the first public key and a second certificate using the second public key. The certificate key management server 201 can send both the first and second certificates to the first terminal 202.

[0082] Optionally, in some terminal initialization scenarios, such as the first start of a vehicle, certificate initialization and communication key initialization can be performed at the same time; in some data upload scenarios, only communication key initialization needs to be performed, since the terminal's relevant certificates have already been completed in the previous certificate initialization stage.

[0083] Optionally, the first certificate request, second certificate request, or certificate request mentioned above, and the operation of receiving the first certificate, second certificate, etc. from the certificate key management server 201, can be executed by the certificate key management module in the first terminal 202 mentioned above.

[0084] Optionally, the certificate key management server 201 may be deployed with at least one of a certificate management module and a key management module. The certificate key management server 201 can perform certificate initialization related operations through the certificate management module, such as allocating a first certificate and a second certificate to the first terminal 202; the certificate key management server 201 can perform communication key initialization related operations through the key management module, such as allocating a communication key to the first terminal 202.

[0085] Optionally, the cloud server 203 may include at least one of a certificate key management module, a data decryption module, a data unpacking module, and a transmission module. The certificate key management module may proactively obtain the communication key of the first terminal 202 from the certificate key management server, or it may receive the communication key of the first terminal 202 pushed by the certificate key management server. The transmission module may receive data packets from the first terminal 202, and the data unpacking module may extract the ciphertext of the data from the data packets. The decryption module then decrypts the ciphertext of the data using the communication key of the first terminal 202 to obtain the data.

[0086] visible, Figure 2 In the system shown, the certificate key management server 201 can directly allocate a communication key to the first terminal 202 to avoid the problem of the key strength being unreliable after key negotiation. Furthermore, the certificate key management server 201 can use the first certificate to verify that the first terminal 202 has the identity credentials to request a communication key using the second certificate, ensuring that the communication key is allocated to a terminal with the identity credentials. The certificate key management server can also use the second certificate to encrypt the communication key allocated to the first terminal 202 to ensure the security of communication key transmission. In addition, this system, where the certificate key management server 201 allocates the communication key to the first terminal 202, is more conducive to meeting regulatory and auditing requirements compared to the method where the first terminal 202 directly negotiates the key with the cloud server 203.

[0087] The following section elaborates on the communication key configuration method provided in this application from the perspective of the interaction between the certificate key management server, the first terminal, and the cloud server.

[0088] Please see Figure 3 , Figure 3 This is a flowchart illustrating a communication key configuration method provided in an embodiment of this application. Optionally, Figure 3 The communication key configuration method shown can be based on Figure 2 This is achieved using the structure shown. For example... Figure 3 As shown, the communication key configuration method may include, but is not limited to, the following steps:

[0089] S301, The first terminal sends the first message to the certificate key management server.

[0090] S302, The certificate key management server receives the first message.

[0091] The description of the certificate key management server can be found in the preceding description of certificate key management server 201. This certificate key management server can be a single server, a server cluster consisting of multiple servers, or a distributed server system.

[0092] The first message contains a first certificate and a second certificate. The first certificate is used to verify that the first terminal possesses the identity credentials to request a communication key using the second certificate; the second certificate is used to encrypt the communication key assigned to the first terminal. It should be understood that the first message may also contain multiple messages. For example, the first message may contain message A and message B, where message A contains the first certificate and message B contains the second certificate. Optionally, the first message may be a communication key request message or other types of messages. Optionally, the first message may carry an identifier to inform the certificate key management server that the first terminal is requesting a communication key.

[0093] S303. The certificate key management server verifies, based on the first certificate, that the first terminal has the identity credentials to request a communication key using the second certificate.

[0094] Optionally, the first certificate may differ from the device certificate. This first certificate can be dedicated to verifying the identity credentials of the first terminal, avoiding the problem of the first terminal directly using the device certificate to request keys due to the difficulty in updating and revoking the device certificate. This could lead to excessive use of the device certificate, potentially resulting in the leakage of the private key corresponding to the device certificate, and consequently, the leakage of the communication key. Optionally, the first certificate can also be updated more frequently than the device certificate. Even if the private key corresponding to the first certificate is leaked, a new first certificate can be applied for, and the leaked registration certificate can be revoked, ensuring that subsequent identity credential verification is unaffected and improving security.

[0095] Optionally, the certificate key management server can also use the root certificate of the first certificate to verify the first certificate, to ensure that the first certificate was issued by itself and is trustworthy.

[0096] S304. The certificate key management server can use the second certificate to encrypt the communication key assigned to the first terminal and obtain the ciphertext of the communication key.

[0097] Optionally, the second certificate can be a certificate specifically used for communication key distribution. Using a second certificate to ensure the confidentiality of communication key transmission, compared to using a device certificate or the first certificate to encrypt the communication key, can further improve the update frequency of the second certificate. Even if the second private key corresponding to the second certificate is leaked, a new second certificate can be applied for, and the leaked second certificate can be revoked, so that the subsequent transmission of communication keys will not be affected, thus improving security.

[0098] S305, The certificate key management server sends a second message to the first terminal.

[0099] The second message contains the ciphertext of the communication key assigned to the first terminal.

[0100] S306. The certificate key management server transmits the communication key assigned to the first terminal to the cloud server through a secure channel.

[0101] Optionally, the order in which steps S305 and S306 are performed is not limited in this application.

[0102] Correspondingly, the first terminal can receive the second message, and the cloud server can obtain the communication key of the first terminal.

[0103] Optionally, the certificate key management server proactively pushes the communication key allocated to the first terminal to the cloud server through a secure channel; alternatively, the cloud server may also proactively obtain the communication key of the first terminal from the certificate key management server, which is not limited in this embodiment.

[0104] As can be seen, in this embodiment, after receiving the first message from the first terminal, the certificate key management server can directly allocate a communication key to the first terminal to avoid the problem that the key obtained through key negotiation cannot guarantee key strength. Furthermore, the certificate key management server can use the first certificate to verify that the first terminal has the identity credentials to request the communication key using the second certificate, ensuring that the communication key is allocated to a vehicle with identity credentials. The certificate key management server can also use the second certificate to encrypt the communication key allocated to the vehicle to ensure the security of communication key transmission. In addition, this application's method of allocating communication keys to vehicles through the certificate key management server, compared to the method where the vehicle directly negotiates keys with the cloud server, is also beneficial for meeting regulatory and auditing requirements.

[0105] Please see Figure 4 , Figure 4 This is a flowchart illustrating another communication key configuration method provided in an embodiment of this application. Figure 4 The communication key configuration method shown is the same as Figure 3 Compared to the communication key configuration method shown, the first message also includes a first signature. For example... Figure 4As shown, before sending the first message, the first terminal can generate a first signature based on the first certificate, the second certificate, and the first private key corresponding to the first certificate. For example, the first terminal uses the first private key corresponding to the first certificate to sign the content of the first message (such as the first certificate and the second certificate) to obtain the first signature. The algorithm used for this signature can be known based on the first certificate.

[0106] Accordingly, the certificate key management server, before sending the second message, for example, such as Figure 4 As shown, upon receiving the first message, the certificate key management server verifies the first signature based on the first message and the first public key in the first certificate. When the first signature verification passes, the certificate key management server determines that the first terminal possesses the first private key corresponding to the first message and the first certificate. This first message and the first private key are used to indicate that the first terminal has the identity credentials to request a communication key using the second certificate. Therefore, this implementation method allows the certificate key management server to know that the first terminal is legitimate and possesses the corresponding identity credentials, thereby helping to ensure the security of communication key allocation.

[0107] Optionally, the second message may also include a second signature. For example... Figure 4 As shown, the certificate key management server generates a second signature based on the ciphertext of the communication key and the private key corresponding to its own certificate. Correspondingly, as... Figure 4 As shown, after receiving the second message, the first terminal verifies the second signature using the ciphertext of the communication key and the public key in the certificate of the certificate key management server. When the second signature verification passes, the first terminal determines that the second message originates from the certificate key management server. Therefore, this implementation method enables the first terminal to verify the legitimacy of the second message's source based on the second signature, thereby allowing it to use the communication key for data transmission, thus improving the security of the communication key.

[0108] The certificate key management server generates a second signature based on the ciphertext of the communication key and the private key corresponding to its own certificate. This can include: the certificate key management server using the private key corresponding to its own certificate to calculate the hash value of the ciphertext of the communication key, and then obtaining the second signature.

[0109] Optionally, the first message may also include the request time for the communication key, i.e., the sending time of the first message, to ensure the freshness of the first message and prevent it from being copied by other third parties and then repeatedly requesting the communication key. Similarly, the second message may include the response time, i.e., the sending time of the second message, to also ensure the freshness of the second message and prevent it from being copied by other third parties and used multiple times, which could compromise the security of the encrypted data.

[0110] Please see Figure 5 , Figure 5This is a flowchart illustrating another communication key configuration method provided in the embodiments of this application. Figure 5 The communication key configuration method shown is the same as the one described above. Figure 3 , Figure 4 The difference in the communication key configuration method shown is that, Figure 3 , Figure 4 Before the operations related to the communication key configuration method shown, the certificate key management server can allocate a first certificate and a second certificate to the first terminal, i.e., the first certificate and second certificate allocation stage. The following is combined with... Figure 6 , Figure 7 The process for obtaining the first certificate and the process for obtaining the second certificate are described.

[0111] like Figure 6 The diagram shown illustrates the first certificate acquisition process, which may include, but is not limited to, the following related operations:

[0112] S601, The first terminal sends the fifth message to the certificate key management server.

[0113] S602, The certificate key management server receives the fifth message from the first terminal.

[0114] The fifth message includes a device certificate and a first public key, wherein the first terminal needs to have a pre-installed device certificate. The first public key can be a public-private key pair generated by the first terminal using an asymmetric cryptographic algorithm, comprising a first public key and a first private key. The first public key is used by the certificate key management server to generate a first certificate, and the first private key is used to sign the second public key in the first message, the third message, or the third message, to inform the certificate key management server that the first terminal has the identity credentials to request a communication key using the second certificate.

[0115] S603. The certificate key management server uses the device certificate to verify that the first terminal has the identity credentials to request the first certificate.

[0116] The certificate key management server needs to pre-configure the root certificate of the device certificate to verify the device certificate of the first terminal, and thus determine whether the first terminal has the identity credentials to request the first certificate.

[0117] Optionally, the fifth message further includes a fourth signature; before the first terminal sends the fifth message to the certificate key management server, the method further includes: the first terminal generating a fourth signature based on the first public key and the third private key corresponding to the device certificate; the fourth signature is used by the certificate key management server to verify that the first terminal has the identity credentials to request the first certificate in conjunction with the device certificate. Specifically, the first terminal signs the first public key or the fifth message using the third private key corresponding to the usable device certificate to obtain the fourth signature. Optionally, the algorithm used for this signature can be specified by the device certificate.

[0118] Accordingly, the certificate key management server uses the device certificate to verify that the first terminal possesses the identity credentials to request the first certificate. This also includes: the certificate key management server verifying a fourth signature based on the first public key and the third public key in the device certificate; and when the fourth signature verification passes, the certificate key management server determines that the first terminal possesses the first public key and the third private key corresponding to the device certificate. The first public key and the third private key are used to indicate that the first terminal possesses the identity credentials to request the first certificate. In other words, the certificate key management server not only verifies the device certificate using the root certificate of the device certificate, but also, when the device certificate verification passes, verifies the fourth signature using the third public key in the device certificate and the first public key in the fifth message. Thus, by verifying the integrity of the first public key and ensuring it has not been tampered with, it guarantees that the vehicle assigned the first certificate is a vehicle with the corresponding identity credentials.

[0119] S604, The certificate key management server generates the first certificate based on the first public key.

[0120] S605, The certificate key management server sends a sixth message to the first terminal, which includes the first certificate.

[0121] S606, The first terminal receives the sixth message.

[0122] In other words, the sixth message is sent by the certificate key management server after verifying that the first terminal has the identity credentials to request the first certificate using the device certificate.

[0123] Optionally, this part can acquire multiple first certificates, corresponding to different business data. For example, if some vehicles have activated the LiDAR data upload service but not the camera image upload service, the certificate key management server can assign only one first certificate corresponding to the LiDAR data upload service. If other vehicles have activated both services, the certificate key management server can assign two registration certificates, corresponding to the two services respectively. Accordingly, when the first terminal executes the communication key configuration method described above, the first terminal can carry the corresponding first certificate for different services.

[0124] Optionally, the fifth message may also include the request time of the first certificate, i.e., the sending time of the fifth message, to ensure the freshness of the fifth message and prevent other third parties from copying the fifth message and requesting the first certificate multiple times. Correspondingly, the sixth message may also include the response time, i.e., the sending time of the sixth message, to also ensure the freshness of the sixth message and prevent other third parties from copying the sixth message and using it multiple times, which could lead to insufficient security of the first certificate.

[0125] Optionally, the fourth signature may also be generated in conjunction with the request time of the first certificate; this application does not impose any restrictions on this.

[0126] visible, Figure 6 The first certificate acquisition process shown ensures that the certificate key management server assigns the first certificate to vehicles with corresponding identity credentials.

[0127] like Figure 7 The diagram shown illustrates the second certificate acquisition process, which may include, but is not limited to, the following related operations:

[0128] S701, The first terminal sends a third message to the certificate key management server.

[0129] S702, The certificate key management server receives a third message from the first terminal.

[0130] The third message includes a first certificate and a second public key, wherein the first terminal has the first certificate.

[0131] S703. The certificate key management server uses the first certificate to verify that the first terminal has the identity credentials to request a communication key using the second certificate.

[0132] Optionally, the third message further includes a third signature; before the first terminal sends the third message to the certificate key management server, the method further includes: the first terminal generating a third signature based on the second public key and the first private key corresponding to the first certificate; the third signature is used by the certificate key management server to verify that the first terminal has the identity credentials to request a communication key using the second certificate, in conjunction with the first certificate. Specifically, the first terminal signs the second public key or the third message using the first private key corresponding to the first certificate to obtain the third signature. Optionally, the algorithm used for this signature can be specified by the first certificate.

[0133] Accordingly, the certificate key management server uses the first certificate to verify that the first terminal possesses the identity credentials to request a communication key using the second certificate. This also includes: the certificate key management server verifying a third signature based on the second public key and the first public key in the first certificate; when the third signature verification passes, the certificate key management server determines that the first terminal possesses the first public key and the third private key corresponding to the device certificate. The first public key and the third private key are used to indicate that the first terminal possesses the identity credentials to request a communication key using the second certificate. In other words, the certificate key management server not only verifies the first certificate using the device certificate, but also, when the first certificate verification passes, verifies the third signature using the first public key in the first certificate and the second public key in the third message. Thus, by verifying the integrity of the second public key and ensuring it has not been tampered with, it guarantees that the vehicle assigned the second certificate is a vehicle with the corresponding identity credentials.

[0134] S704, The certificate key management server generates a second certificate based on the second public key.

[0135] S705, the certificate key management server sends a fourth message to the first terminal, which includes the second certificate.

[0136] S706, The first terminal receives the fourth message.

[0137] In other words, the fourth message is sent by the certificate key management server after verifying that the first terminal has the identity credentials to request the communication key using the second certificate using the first certificate.

[0138] Optionally, this part can acquire multiple second certificates, each used to protect different communication keys. For example, in actual data encryption and upload operations, the data to be uploaded may have different categories and corresponding security requirements. For instance, LiDAR data may include geographic coordinates, raw LiDAR point cloud data, and structured data. The security requirements for these data may differ. For example, high-precision geographic coordinate data has very high security requirements, and the communication key used for encryption needs to be updated daily, while the security requirements for raw LiDAR point cloud data are relatively low, and the communication key used for encryption can be updated monthly. Therefore, in this scenario, the certificate key management server can assign multiple second certificates to the vehicle-side device, such as the first terminal, to request different types of communication keys for encrypting different types of data. In other words, different second certificates can be used to protect each type of communication key.

[0139] Optionally, the third message may also include the request time of the second certificate, i.e., the sending time of the third message, to ensure the freshness of the third message and prevent other third parties from copying the third message and requesting the second certificate multiple times. Correspondingly, the fourth message may also include the response time, i.e., the sending time of the fourth message, to also ensure the freshness of the fourth message and prevent other third parties from copying the sixth message and using it multiple times, which would compromise the security of the second certificate.

[0140] Optionally, the third signature may also be generated in conjunction with the request time of the second certificate; this application does not impose any restrictions on this.

[0141] visible, Figure 7 The second certificate acquisition process shown ensures that the certificate key management server assigns a second certificate to vehicles with corresponding identity credentials.

[0142] This application provides a data encryption method. This data encryption method can employ the methods described above. Figure 3 , Figure 4The communication key configuration method shown uses the obtained communication key to encrypt the data collected by the first terminal, obtaining the ciphertext data, which is then uploaded to the cloud server. The data encryption process is briefly described below. This data encryption process may include, but is not limited to, the following steps:

[0143] S801, The first terminal determines the data to be encrypted.

[0144] The data to be encrypted can be called plaintext. If the plaintext contains unencrypted content, this unencrypted content is set as the identifiable data of the cryptographic algorithm (i.e., as one of the input parameters of the cryptographic algorithm), and the content to be encrypted is set as the plaintext input of the cryptographic algorithm, generating an initialization vector (IV). Optionally, the parameter IV used for data encryption and decryption has a length of 128 bits. The method of generating it is not limited in this embodiment of the application. Optionally, the parameter IV may include, but is not limited to, the following two methods:

[0145] Option 1: The parameter IV consists of 48 bits of time and 80 bits of random number. The 48 bits of time are a binary representation of a 14-digit decimal number consisting of "year, month, day, hour, minute, second"; the 80 bits of random number are generated by a random number generation algorithm.

[0146] Option 2: The parameter IV is a random number (128 bits), obtained by concatenating the encryption time and plaintext as input to the encryption algorithm.

[0147] S802. The first terminal uses a cryptographic algorithm and the communication key allocated above to encrypt the plaintext and generate ciphertext.

[0148] S803, the first terminal determines that the generated ciphertext, parameter IV, identifier of the communication key, and identifier of the first terminal are used together as data ciphertext.

[0149] Optionally, steps S801 to S803 can be performed by the encryption module in the first terminal.

[0150] The identifier for the communication key can be generated by the certificate key management server when allocating the communication key to the first terminal, and then sent to the first terminal in the second message. Thus, if the first terminal is configured with multiple communication keys, it can include this identifier in the encrypted data to inform the cloud server to use the corresponding communication key to decrypt the encrypted data.

[0151] The identifier of the first terminal can be information that identifies the vehicle-side device, such as the Vehicle Identification Number (VIN) or the device certificate serial number.

[0152] Optionally, after step S803, the first terminal may upload the encrypted data to the cloud server. The transmission of the encrypted data may be based on a secure transmission protocol, such as Hypertext Transfer Protocol over Secure Socket Layer (HTTPS).

[0153] As can be seen, this data encryption method can directly encrypt data using the communication key allocated by the certificate key management server. Compared with the method where the first terminal still needs to negotiate or derive a communication key from the cloud server, it greatly reduces the amount of interactive messages required during data upload and avoids the impact of excessive interactive messages on data upload.

[0154] Accordingly, this application provides a data decryption method. The data decryption method can employ the methods described above. Figure 3 , Figure 4 In the communication key configuration method shown, the cloud server can use the communication key transmitted to the cloud server through a secure channel by the certificate key management server to perform related operations. The data decryption process is briefly described below. This data decryption process may include, but is not limited to, the following steps:

[0155] S901, Cloud server receives encrypted data.

[0156] The encrypted data, as described above, includes the encrypted data generated by S802, parameter IV, identifier of the communication key, and identifier of the first terminal.

[0157] S902, The cloud server determines the corresponding communication key based on the identifier of the communication key and the identifier of the first terminal.

[0158] S903 and cloud servers use the communication key and parameter IV to decrypt using a cryptographic algorithm to obtain the plaintext;

[0159] Optionally, the cloud server can also determine the freshness of the encrypted data based on the time bits in the IV parameter. For example, if the time in the IV parameter differs significantly from the current time, the encrypted data is considered invalid, thus preventing the cloud server from obtaining incorrect plaintext.

[0160] Optionally, the cloud server can output the obtained plaintext. Optionally, the operations in steps S901 to S903 can be performed by the decryption module in the cloud server.

[0161] As can be seen, in this data decryption method, the cloud server can directly use the communication key allocated to the first terminal by the certificate key management server to decrypt the encrypted data. Compared with the method where the cloud server still needs to negotiate or derive a communication key with the first terminal, this greatly reduces the amount of interactive messages required during the data upload process and avoids the impact of excessive interactive messages on data upload.

[0162] Optionally, in the above data encryption method, the data can be compressed before encryption; correspondingly, in the data decryption method, the plaintext obtained after decryption of the ciphertext can be decompressed. Therefore, this implementation method can handle certain large-volume data upload services, such as camera headshot video uploads.

[0163] It should be noted that the steps in the above embodiments can be adjusted, combined, or deleted according to actual needs.

[0164] The embodiments provided in this application above describe the relevant methods from the perspectives of a certificate key management server, a first terminal, and a cloud server. To implement the functions of the methods provided in this application, the certificate key management server, the first terminal, and the cloud server may include hardware structures and software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. The following will combine... Figures 8 to 10 The communication devices related to the embodiments of this application are described in detail.

[0165] Figure 8 A schematic block diagram of a communication key configuration device 800 is shown. This communication key configuration device 800 can perform the relevant operations of the certificate key management server in the above method embodiments. The communication key configuration device 800 can be... Figure 2 The certificate key management server shown can also be a component within the certificate key management server, such as a chip or integrated circuit. The communication key configuration device may include, but is not limited to:

[0166] The communication unit 801 is configured to receive a first message from a first terminal, the first message containing a first certificate and a second certificate;

[0167] Processing unit 802 is used to verify that the first terminal has identity credentials for requesting a communication key using the second certificate, using the first certificate.

[0168] The processing unit 802 is also used to encrypt the communication key assigned to the first terminal using the second certificate to obtain the ciphertext of the communication key;

[0169] The communication unit 801 is further configured to send a second message to the first terminal, the second message containing the ciphertext of the communication key.

[0170] It is evident that this communication key configuration device can not only directly allocate communication keys to the first terminal to reduce the number of message interactions required for key negotiation, but also use the first certificate to verify the identity credentials of the first terminal and use the second certificate to encrypt the communication key, thereby greatly ensuring the security of the allocation and transmission of the communication key.

[0171] In an optional implementation, the first message further includes a first signature. The processing unit 802 verifies that the first terminal possesses the identity credentials to request a communication key using a second certificate, based on the first certificate. Specifically, it verifies the first signature using the first public key in the first certificate; if the first signature verification passes, it determines that the first terminal possesses a first private key corresponding to the first message and the first certificate. The first message and the first private key are used to indicate that the first terminal possesses the identity credentials to request a communication key using the second certificate. Therefore, this implementation ensures that the communication key configuration device allocates a communication key to the first terminal with the corresponding identity credentials.

[0172] In an optional implementation, the second message further includes a second signature. The processing unit 802 is further configured to generate a second signature using the ciphertext of the private key corresponding to its own certificate and the communication key before the communication unit 801 sends the second message to the first terminal; the second signature is used to indicate that the second message originates from a certificate key management server.

[0173] In one optional embodiment, the communication unit 801 is further configured to send a first certificate and a second certificate to the first terminal. Optionally, the communication unit 801 may send the first certificate and the second certificate at different times, such as by sending them separately through multiple messages; or the communication unit 801 may send the first certificate and the second certificate at the same time, such as by sending them through a single message.

[0174] In one optional implementation, the communication key configuration device 800,

[0175] The communication unit 801 is also configured to receive a third message from the first terminal, the third message containing a first certificate and a second public key;

[0176] Processing unit 802 is also used to verify that the first terminal has the identity credentials to request a communication key using the second certificate, using the first certificate;

[0177] The processing unit 802 is also used to generate a second certificate using the second public key;

[0178] The communication unit 801 is used to send a fourth message to the first terminal, the fourth message including the second certificate.

[0179] Optionally, in the communication key configuration device 800, the operations related to the generation of the second certificate and the operations related to the generation of the second signature can be executed by different software modules, such as by two processing units respectively. That is, in this embodiment of the application, the number of processing units in the communication key configuration device 800 is not limited.

[0180] Optionally, the processing unit 802 may use the first certificate to verify that the first terminal has the identity credentials to request a communication key using the second certificate, which may be performed before the communication unit 801 sends the fourth message to the first terminal.

[0181] Optionally, the third message may also include a third signature. Processing unit 802 uses the first certificate to verify that the first terminal possesses the identity credentials to request a communication key using the second certificate, including:

[0182] Processing unit 802 is configured to verify the third signature based on the second public key and the first public key in the first certificate;

[0183] The processing unit 802 is further configured to determine, when the third signature verification passes, that the first terminal has a second public key and a first private key corresponding to the first certificate; the second public key and the first private key are used to indicate that the first terminal has identity credentials for requesting a communication key using the second certificate.

[0184] In one optional implementation, the communication key configuration device 800 includes:

[0185] The communication unit 801 is also configured to receive a fifth message from the first terminal; the fifth message includes a device certificate and a first public key;

[0186] Processing unit 802 is also used to verify that the first terminal has the identity credentials to request the first certificate using the device certificate;

[0187] Processing unit 802 is further configured to generate a first certificate based on the first public key;

[0188] The communication unit 801 is also configured to send a sixth message to the first terminal, the sixth message including the first certificate.

[0189] Optionally, in the communication key configuration device 800, the operations related to the generation of the first certificate and the operations related to the generation of the second signature can be executed by different software modules, such as by two processing units respectively. That is, in this embodiment, the number of processing units in the communication key configuration device 800 is not limited. Optionally, in the communication key configuration device 800, the operations related to the generation of the first certificate, the operations related to the generation of the second certificate, and the operations related to the generation of the second signature can be executed by different software modules, such as by three processing units respectively. That is, in this embodiment, the number of processing units in the communication key configuration device 800 is not limited.

[0190] Optionally, the fifth message also includes a fourth signature. The processing unit 802 uses the device certificate to verify that the first terminal possesses the identity credentials to request the first certificate. Specifically, it verifies the fourth signature based on the first public key and the third public key in the device certificate; when the fourth signature verification passes, it determines that the first terminal possesses the first public key and the third private key corresponding to the device certificate. The first public key and the third private key are used to indicate that the first terminal possesses the identity credentials to request the first certificate.

[0191] In this communication key configuration device 800, the communication unit 801 is also used to transmit the communication key allocated to the first terminal to the cloud server through a secure channel. This facilitates the cloud server in decrypting the encrypted data uploaded by the first terminal and obtaining the data.

[0192] In another embodiment, the communication key configuration device 800 can perform the relevant operations of the first terminal in the above method embodiment. Figure 8 The communication key configuration device 800 shown can be Figure 1 or Figure 2 The first terminal in the system shown, or a device within the first terminal, such as a chip or integrated circuit, for example... Figure 1 The vehicle-mounted devices shown include MDC, Tbox, and GW. The communication key configuration device 800 includes:

[0193] The communication unit 801 is used to send a first message to the certificate key management server; the first message contains a first certificate and a second certificate.

[0194] The communication unit 801 is also used to receive a second message; the second message is sent by the certificate key management server after verifying that the first terminal has the identity credentials to request a communication key using the second certificate using the first certificate; the second message contains the ciphertext of the communication key of the first terminal;

[0195] The processing unit 802 uses the second private key corresponding to the second certificate to decrypt the ciphertext of the communication key and obtain the communication key.

[0196] As can be seen, the communication key configuration device 800 can directly obtain the communication key from the certificate key management server to reduce the number of message exchanges required for key negotiation. It can also send a first certificate and a second certificate to the certificate key management server, so that the certificate key management server can use the first certificate to verify the identity credentials of the first terminal and use the second certificate to encrypt the communication key, thereby greatly ensuring the security of the distribution and transmission of the communication key.

[0197] In an optional implementation, the first message further includes a first signature. Before the communication unit 801 sends the first message to the certificate key management server, the processing unit 802 is further configured to generate a first signature using the first private key corresponding to the first certificate, the first certificate, and the second certificate; the first signature is used by the certificate key management server to verify that the first terminal has the identity credentials to request a communication key using the second certificate, in conjunction with the first certificate.

[0198] In an optional implementation, the second message further includes a second signature. After the communication unit 801 receives the second message, the processing unit 802 is further configured to verify the second signature using the public key in the certificate of the certificate key management server; and if the second signature verification passes, determine that the second message originates from the certificate key management server. Thus, this implementation allows the communication key configuration device 800 to ascertain the legitimacy of the communication key's source.

[0199] In one optional implementation, the communication unit 801 is further configured to request a first certificate and a second certificate from the certificate key management server.

[0200] In one optional implementation, the communication unit 801 requests a second certificate from the certificate key management server, specifically by: sending a third message to the certificate key management server, the third message including a first certificate and a second public key; receiving a fourth message; the fourth message being sent by the certificate key management server after verifying that the first terminal has the identity credentials to request the communication key using the second certificate using the first certificate; the fourth message including a second certificate generated by the certificate key management server based on the second public key.

[0201] In an optional implementation, the third message further includes a third signature. Before the communication unit 801 sends the third message to the certificate key management server, the processing unit 802 generates a third signature based on the second public key and the first private key corresponding to the first certificate. The third signature is used by the certificate key management server to verify that the first terminal has the identity credentials to request the communication key using the second certificate, in conjunction with the first certificate. Thus, the certificate key management server, based on the third signature, knows that the communication key configuration device 800 has the identity credentials to request the communication key using the second certificate, and thereby promptly allocates the second certificate to the communication key configuration device 800.

[0202] In one optional implementation, the communication unit 801 requests a first certificate from the certificate key management server, specifically as follows:

[0203] Send a fifth message to the certificate key management server; the fifth message includes the device certificate and the first public key;

[0204] Receive the sixth message; the sixth message is sent by the certificate key management server after verifying that the first terminal has the identity credentials to request the first certificate using the device certificate; the sixth message includes the first certificate generated by the certificate key management server based on the first public key.

[0205] Optionally, the fifth message also includes a fourth signature. Before the communication unit 801 sends the fifth message to the certificate key management server, the processing unit 802 generates a fourth signature based on the first public key and the third private key corresponding to the device certificate. The fourth signature is used by the certificate key management server to verify that the first terminal has the identity credentials to request the first certificate, in conjunction with the device certificate. Thus, the certificate key management server, based on the fourth signature, knows that the communication key configuration device 800 has the identity credentials to request the first certificate, and therefore promptly allocates the first certificate to the communication key configuration device 800.

[0206] In one optional implementation, after the processing unit 802 decrypts the ciphertext of the communication key using the second private key corresponding to the second certificate and obtains the communication key, it can use the communication key to encrypt the data to be transmitted to obtain the ciphertext of the data to be transmitted, i.e., the ciphertext of the uploaded data; then, the communication unit 801 uploads the ciphertext of the data to be transmitted to the cloud server.

[0207] In another embodiment, the communication key configuration device 800 can perform the relevant operations of the cloud server in the above method embodiments. Figure 8 The communication key configuration device 800 shown can be Figure 1 or Figure 2 The cloud server in the system shown may be a component within the cloud server, such as a chip or integrated circuit. In the communication key configuration device 800: a communication unit 801 can be used to acquire or receive a communication key assigned to the first terminal by a certificate key management server; a processing unit 802 can be used to decrypt the encrypted data uploaded by the first terminal based on the communication key to obtain the data. This facilitates timely optimization for applications such as autonomous driving.

[0208] Figure 9 A schematic block diagram of a communication key configuration device 900 is shown.

[0209] In one implementation, the communication key configuration device 900 corresponds to the certificate key management server in the communication key configuration method described above. Optionally, the communication key configuration device 900 is a device in the certificate key management server that executes the above method embodiments, such as a chip, chip system, or processor. This communication key configuration device 900 can be used to implement the methods described in the above method embodiments; for details, please refer to the descriptions in the above method embodiments.

[0210] In another implementation, the communication key configuration device 900 corresponds to the first terminal in the aforementioned communication key configuration method. Optionally, the communication key configuration device 900 is a device in the first terminal executing the above method embodiments, such as a chip, chip system, or processor, or as... Figure 1 The vehicle-mounted devices shown include MDC, Tbox, and GW.

[0211] The communication key configuration device 900 can be used to implement the methods described in the above method embodiments, and for details, please refer to the description in the above method embodiments.

[0212] The communication key configuration device 900 may include one or more processors 901. The processor 901 may be a general-purpose processor or a dedicated processor, etc. The communication key configuration device 900 may also include a transceiver 905. The transceiver 905 may be referred to as a transceiver unit, transceiver, or transceiver circuit, etc., and is used to implement transceiver functions. The transceiver 905 may include a receiver and a transmitter. The receiver may be referred to as a receiver circuit, etc., and is used to implement a receiving function; the transmitter may be referred to as a transmitter circuit, etc., and is used to implement a transmitting function. Optionally, the communication key configuration device 900 may include one or more memories 902, which may store instructions 904. These instructions 904 may be computer programs, which can be executed on the communication key configuration device 900 to cause the communication key configuration device 900 to perform the methods described in the above method embodiments. Optionally, the memories 902 may also store data. The communication key configuration device 900 and the memories 902 may be provided separately or integrated together.

[0213] In one embodiment, the communication key configuration device 900 is used to implement the function of the certificate key management server in the above method embodiments:

[0214] Processor 901 is used to execute Figures 3 to 5 Steps S303 and S304 shown in any of the accompanying drawings; or execution Figure 6 Steps S603 and S604 in the process; or execute Figure 7 Steps S703 and S704 in the process.

[0215] Transceiver 905 is used to perform Figures 3 to 5Steps S302, S305, and S306 shown in any of the accompanying drawings; or performing... Figure 6 Steps S602 and S605 in the process; or execute Figure 7 Steps S702 and S705 in the process.

[0216] In another embodiment, the communication key configuration device 900 is used to implement the functions of the first terminal in the above method embodiments:

[0217] Transceiver 905 is used to perform Figures 3 to 5 Step S301 and the operation of receiving the second message in the communication key configuration method shown in any of the accompanying figures; or used to perform Figure 6 Step S601 and receiving the sixth message, or executing Figure 7 Step S701 and receiving the fourth message.

[0218] In another embodiment, the communication key configuration device 900 is used to implement the functions of the cloud server in the above method embodiments:

[0219] Transceiver 905 is used to perform Figures 3 to 5 The operation of obtaining the communication key in the communication key configuration method shown in any of the attached figures; or the operation of receiving the ciphertext of data in the data encryption method;

[0220] The processor 901 is used to perform data decryption-related operations in the data decryption method.

[0221] In one implementation, the processor 901 may include a transceiver for implementing receiving and transmitting functions. For example, the transceiver may be a transceiver circuit, an interface, or an interface circuit. The transceiver circuit, interface, or interface circuit for implementing receiving and transmitting functions may be separate or integrated. The aforementioned transceiver circuit, interface, or interface circuit can be used for reading and writing code / data, or it can be used for transmitting or relaying signals.

[0222] In one implementation, processor 901 may store instructions 703, which may be a computer program. The computer program 903, running on processor 901, causes the communication key configuration device 900 to perform the methods described in the above method embodiments. The computer program 903 may be embedded in processor 901; in this case, processor 901 may be implemented in hardware.

[0223] In one implementation, the communication key configuration device 900 may include circuitry capable of performing the sending, receiving, or communication functions described in the foregoing method embodiments. The processor and transceiver described in this application can be implemented on integrated circuits (ICs), analog ICs, radio frequency integrated circuits (RFICs), mixed-signal ICs, application-specific integrated circuits (ASICs), printed circuit boards (PCBs), electronic devices, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal-oxide semiconductors (CMOS), n-metal-oxide-semiconductor (NMOS), p-type metal-oxide semiconductors (PMOS), bipolar junction transistors (BJTs), bipolar CMOS (BiCMOS), silicon-germanium (SiGe), gallium arsenide (GaAs), etc.

[0224] The communication key configuration device 900 described in the above embodiments can be a certificate key management server or a component thereof; or the communication key configuration device 900 described in the above embodiments can be a first terminal, such as a vehicle, or a component of a first terminal, such as an in-vehicle device; or the communication key configuration device 900 described in the above embodiments can be a cloud server or a component of a cloud server. The communication key configuration device 900 can be a standalone device or part of a larger device. For example, the communication key configuration device 900 can be:

[0225] (1) Independent integrated circuit IC, or chip, or chip system or subsystem;

[0226] (2) A module that can be embedded in other devices;

[0227] (3) Mobile units, vehicle-mounted equipment, cloud equipment, artificial intelligence equipment, etc.

[0228] For cases where the communication key configuration device 900 can be a chip or a chip system, please refer to [link / reference]. Figure 10 The diagram shows the structure of the chip. Figure 10The chip shown includes a processor 1001 and an interface 1002. There can be one or more processors 1001, and multiple interfaces 1002.

[0229] For the chip used to implement the certificate key management server function in the above method embodiments:

[0230] Processor 1001 is used to execute Figures 3 to 5 Steps S303 and S304 shown in any of the accompanying drawings; or execution Figure 6 Steps S603 and S604 in the process; or execute Figure 7 Steps S703 and S704 in the process.

[0231] Interface 1002 is used for execution Figures 3 to 5 Steps S302, S305, and S306 shown in any of the accompanying drawings; or performing... Figure 6 Steps S602 and S605 in the process; or execute Figure 7 Steps S702 and S705 in the process.

[0232] Regarding the chip used to implement the function of the first terminal in the above method embodiments:

[0233] Interface 1002 is used for execution Figures 3 to 5 Step S301 and the operation of receiving the second message in the communication key configuration method shown in any of the accompanying figures; or used to perform Figure 6 Step S601 and receiving the sixth message, or executing Figure 7 Step S701 and receiving the fourth message.

[0234] For the chip used to implement the cloud server functionality in the above method embodiments:

[0235] Interface 1002 is used for execution Figures 3 to 5 The operation of obtaining the communication key in the communication key configuration method shown in any of the attached figures; or the operation of receiving the ciphertext of data in the data encryption method;

[0236] The processor 1001 is used to perform data decryption related operations in the data decryption method.

[0237] Optionally, the chip can also execute the relevant implementation methods described in the above method embodiments, which will not be detailed here.

[0238] Those skilled in the art will also understand that the various illustrative logical blocks and steps listed in the embodiments of this application can be implemented by electronic hardware, computer software, or a combination of both. Whether such functionality is implemented through hardware or software depends on the specific application and the overall system design requirements. Those skilled in the art can implement the described functionality using various methods for each specific application, but such implementation should not be construed as exceeding the scope of protection of the embodiments of this application.

[0239] This application also provides a communication key configuration system, which may include at least two of the three communication key configuration devices described in the three embodiments above. For example, the communication key configuration system includes one communication key configuration device that can perform operations related to the certificate key management server in the method embodiments above; and another communication key configuration device that can perform operations related to the first terminal in the method embodiments above. As another example, the communication key configuration system includes one communication key configuration device that can perform operations related to the certificate key management server in the method embodiments above; another communication key configuration device that can perform operations related to the first terminal in the method embodiments above; and yet another communication key configuration device that can perform operations related to the cloud server in the method embodiments above.

[0240] This application also provides a communication key configuration system, which may include at least two of the following devices: a certificate key management server, a first terminal, and a cloud server. For example, the communication key configuration system includes the certificate key management server described in the above method embodiments; and the first terminal described in the above method embodiments. As another example, the communication key configuration system includes the certificate key management server, the first terminal, and the cloud server described in the above method embodiments.

[0241] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the functions of any of the above method embodiments.

[0242] This application also provides a computer program product that, when executed by a computer, implements the functions of any of the above method embodiments.

[0243] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer programs. When the computer program is loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program can be transferred from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).

[0244] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0245] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A communication key configuration method, characterized in that, Applications to certificate key management servers include: Receive a first message from a first terminal, the first message containing a first certificate and a second certificate of the first terminal; Using the first certificate, verify that the first terminal has the identity credentials to request a communication key using the second certificate; Using the second certificate, the communication key assigned to the first terminal is encrypted to obtain the ciphertext of the communication key; the communication key assigned to the first terminal is used to encrypt the data collected by the first terminal and uploaded to the cloud server. A second message is sent to the first terminal, the second message containing the ciphertext of the communication key.

2. The method according to claim 1, characterized in that, The first message also includes a first signature. Based on the first certificate, verifying that the first terminal possesses the identity credentials to request a communication key using the second certificate includes: Verify the first signature based on the first message and the first public key in the first certificate; When the first signature verification passes, it is determined that the first terminal has the first private key corresponding to the first message and the first certificate. The first message and the first private key are used to indicate that the first terminal has identity credentials to request a communication key using the second certificate.

3. The method according to claim 1 or 2, characterized in that, The second message also contains a second signature; Before sending the second message to the first terminal, the method further includes: The second signature is generated based on the ciphertext of the communication key and the private key corresponding to its own certificate; The second signature is used to indicate that the second message comes from the certificate key management server.

4. The method according to claim 1 or 2, characterized in that, Before receiving the first message from the first terminal, the method further includes: A fourth message is sent to the first terminal, the fourth message including the second certificate.

5. The method according to claim 4, characterized in that, Before sending the fourth message to the first terminal, the method further includes: Receive a third message from the first terminal, the third message containing the first certificate and the second public key; Using the first certificate, verify that the first terminal has the identity credentials to request a communication key using the second certificate; The second certificate is generated using the second public key.

6. The method according to claim 5, characterized in that, The third message also includes a third signature; The step of using the first certificate to verify that the first terminal has the identity credentials to request a communication key using the second certificate includes: Verify the third signature based on the second public key and the first public key in the first certificate; When the third signature verification passes, it is determined that the first terminal has the second public key and the first private key corresponding to the first certificate; the second public key and the first private key are used to indicate that the first terminal has identity credentials to request a communication key using the second certificate.

7. The method according to claim 4, characterized in that, Before receiving the first message from the first terminal, the method further includes: Receive a fifth message from the first terminal; the fifth message includes a device certificate and a first public key; Using the device certificate, verify that the first terminal has the identity credentials to request the first certificate; The first certificate is generated based on the first public key; A sixth message is sent to the first terminal, the sixth message including the first certificate.

8. The method according to claim 7, characterized in that, The fifth message also includes a fourth signature; Using the device certificate, verifying that the first terminal possesses the identity credentials to request the first certificate includes: Verify the fourth signature based on the first public key and the third public key in the device certificate; When the fourth signature verification passes, it is determined that the first terminal has the first public key and the third private key corresponding to the device certificate. The first public key and the third private key are used to indicate that the first terminal has the identity credentials to request the first certificate.

9. The method according to claim 1 or 2, characterized in that, The method further includes: The communication key assigned to the first terminal is transmitted to the cloud server through a secure channel.

10. A communication key configuration method, characterized in that, Applied to the first terminal, including: Send a first message to the certificate key management server; the first message contains a first certificate of the first terminal and a second certificate of the first terminal; wherein, the first certificate is used to verify that the first terminal has identity credentials to request a communication key using the second certificate; The system receives a second message from the certificate key management server; wherein the second message contains ciphertext of a communication key, wherein the communication key is used to encrypt data collected by the first terminal and uploaded to the cloud server; the ciphertext of the communication key is obtained by encrypting the communication key of the first terminal using the second certificate; Using the second private key corresponding to the second certificate, the ciphertext of the communication key is decrypted to obtain the communication key.

11. The method according to claim 10, characterized in that, The second message is associated with the verification result of the first terminal having identity credentials that request a communication key using the second certificate.

12. The method according to claim 10 or 11, characterized in that, The first message also includes a first signature. Before sending the first message to the certificate key management server, the method further includes: The first signature is generated based on the first certificate, the second certificate, and the first private key corresponding to the first certificate; The first signature is used by the certificate key management server to verify, in conjunction with the first certificate, that the first terminal possesses the identity credentials to request the communication key using the second certificate.

13. The method according to claim 10 or 11, characterized in that, The second message also contains a second signature; After receiving the second message, the method further includes: The second signature is verified using the public key in the certificate of the certificate key management server; When the second signature verification passes, it is determined that the second message originated from the certificate key management server.

14. The method according to claim 10 or 11, characterized in that, Before sending the first message to the certificate key management server, the method further includes: Request the second certificate from the certificate key management server.

15. The method according to claim 14, characterized in that, The step of requesting the second certificate from the certificate key management server includes: Send a third message to the certificate key management server, the third message including the first certificate and the second public key; Receive a fourth message; the fourth message is sent by the certificate key management server after verifying that the first terminal has the identity credentials to request the communication key using the second certificate using the first certificate; the fourth message includes the second certificate generated by the certificate key management server based on the second public key.

16. The method according to claim 15, characterized in that, The third message also includes a third signature; Before sending the third message to the certificate key management server, the method further includes: The third signature is generated based on the second public key and the first private key corresponding to the first certificate; The third signature is used to verify that the first terminal has the identity credentials to request the communication key using the second certificate.

17. The method according to claim 14, characterized in that, Before sending the first message to the certificate key management server, the following steps are included: Send a fifth message to the certificate key management server; the fifth message includes the device certificate and the first public key. Receive a sixth message; the sixth message is sent by the certificate key management server after verifying that the first terminal has the identity credentials to request the first certificate using the device certificate; the sixth message includes the first certificate generated by the certificate key management server based on the first public key.

18. The method according to claim 17, characterized in that, The fifth message also includes a fourth signature; Before sending the fifth message to the certificate key management server, the method further includes: The fourth signature is generated based on the first public key and the third private key corresponding to the device certificate; The fourth signature is used by the certificate key management server to verify, in conjunction with the device certificate, that the first terminal possesses the identity credentials to request the first certificate.

19. The method according to claim 10 or 11, characterized in that, After obtaining the communication key by decrypting the ciphertext of the communication key using the second private key corresponding to the second certificate, the method further includes: The communication key is used to encrypt the data to be transmitted, thereby obtaining the ciphertext of the data to be transmitted. The encrypted data to be transmitted is uploaded to the cloud server.

20. A communication key configuration device, characterized in that, include: A communication unit is configured to receive a first message from a first terminal, the first message containing a first certificate and a second certificate of the first terminal; The processing unit is configured to use the first certificate to verify that the first terminal has the identity credentials to request a communication key using the second certificate; The processing unit is further configured to use the second certificate to encrypt the communication key allocated to the first terminal to obtain the ciphertext of the communication key; the communication key allocated to the first terminal is used to encrypt the data collected by the first terminal and uploaded to the cloud server. The communication unit is further configured to send a second message to the first terminal, the second message containing the ciphertext of the communication key.

21. The apparatus according to claim 20, characterized in that, The first message also includes a first signature. The processing unit verifies, based on the first certificate, that the first terminal possesses the identity credentials to request a communication key using the second certificate, specifically by: Verify the first signature based on the first message and the first public key in the first certificate; When the first signature verification passes, it is determined that the first terminal has the first private key corresponding to the first message and the first certificate. The first message and the first private key are used to indicate that the first terminal has identity credentials to request a communication key using the second certificate.

22. The apparatus according to claim 20 or 21, characterized in that, The second message also contains a second signature; Before the communication unit sends the second message to the first terminal, the processing unit is further configured to generate the second signature based on the ciphertext of the communication key and the private key corresponding to its own certificate; The second signature is used to indicate that the second message comes from the certificate key management server.

23. The apparatus according to claim 20 or 21, characterized in that, The communication unit is further configured to send a fourth message to the first terminal, the fourth message including the second certificate.

24. A communication key configuration device, characterized in that, include: The communication unit is used to send the first message to the certificate key management server; The first message includes a first certificate of the first terminal and a second certificate of the first terminal; wherein, the first certificate is used to verify that the first terminal has identity credentials to request a communication key using the second certificate; The communication unit is further configured to receive a second message from the certificate key management server; the second message contains ciphertext of a communication key, wherein the communication key is used to encrypt data collected by the first terminal and uploaded to the cloud server; the ciphertext of the communication key is obtained by encrypting the communication key of the first terminal using the second certificate; The processing unit uses the second private key corresponding to the second certificate to decrypt the ciphertext of the communication key and obtain the communication key.

25. The apparatus according to claim 24, characterized in that, The second message is associated with the verification result of the first terminal having identity credentials that request a communication key using the second certificate.

26. The apparatus according to claim 24 or 25, characterized in that, The first message also includes a first signature. Before the communication unit sends the first message to the certificate key management server, the processing unit is further configured to generate the first signature based on the first certificate, the second certificate, and the first private key corresponding to the first certificate; The first signature is used by the certificate key management server to verify, in conjunction with the first certificate, that the first terminal possesses the identity credentials to request the communication key using the second certificate.

27. The apparatus according to claim 24 or 25, characterized in that, The second message also contains a second signature; After the communication unit receives the second message, the processing unit is further configured to verify the second signature using the public key in the certificate of the certificate key management server; and when the second signature verification passes, determine that the second message comes from the certificate key management server.

28. The apparatus according to claim 24 or 25, characterized in that, The communication unit is also used to request the second certificate from the certificate key management server.

29. A communication key configuration device, characterized in that, The communication key configuration device includes at least one processor and a communication interface, the communication interface being used to send and / or receive data, and the at least one processor being used to invoke at least one computer program stored in a memory to cause the communication key configuration device to implement the method as described in any one of claims 1 to 9, or to cause the communication key configuration device to implement the method as described in any one of claims 10 to 19.

30. A communication key configuration system, characterized in that, This includes a certificate key management server, a primary terminal, and a cloud server, among which: The certificate key management server includes a communication key configuration device as described in any one of claims 20 to 23; The first terminal includes a communication key configuration device as described in any one of claims 24 to 28; The cloud server is used to obtain the communication key allocated to the first terminal by the certificate key management server.

31. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on one or more processors, implements the method as described in any one of claims 1 to 9, or implements the method as described in any one of claims 10 to 19.

Citation Information

Patent Citations

  • System and method for providing vehicle information based on personal authentication and vehicle authentication

    US20180026949A1