Method and device for issuing certificate
By sending vehicle information after the vehicle is started and issuing a certificate in combination with the main account login request, the security risks and background management pressure when the certificate is separated from the vehicle are solved, and more efficient certificate management and information security are achieved.
Patent Information
- Application Number
- CN202211154062.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-21
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-09-21
AI Technical Summary
When the vehicle communicates with cloud service equipment, there are great safety risks when the certificate is removed from the vehicle after the production line is installed, and the background certificate management pressure is high and the information leakage risk is high.
After the vehicle is started, send vehicle information to the cloud service device, determine whether a certificate is needed based on the feedback information, and request the certificate to be issued when logging in to the main account. Use the model of combining vehicle configuration information and main account login to avoid unnecessary certificates Issuing to reduce waste of communication resources and improve background certificate management capabilities.
It reduces the risk of information leakage, reduces unnecessary certificate issuance, and improves user information security and background certificate management efficiency.
Smart Images

Figure CN115514497B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile technology, and in particular to a method and device for issuing a certificate. Background Art
[0002] With the advancement of wireless technology, automotive electronics technology and automatic control technology, the integration of electronic devices is getting higher and higher, and more and more functions are integrated into the car. In order to ensure the security of these functions in the car, the identity of the vehicle needs to be verified based on the corresponding certificate when the vehicle communicates with the cloud service device.
[0003] At present, the above certificates are generally filled into the vehicle computer during the production line, and the vehicle computer is installed on the vehicle after the production is completed. It can be seen that in this process, the certificate is separated from the vehicle for a period of time, which poses a great safety hazard. Summary of the invention
[0004] Based on this, the present application provides a certificate issuance method and device to issue certificates when necessary, reduce the pressure of background certificate management, and reduce the risk of information leakage.
[0005] In a first aspect, a certificate issuing method is provided, the method being applied to a vehicle terminal, comprising:
[0006] After the vehicle is started, the vehicle information is sent to the cloud service device;
[0007] Receive feedback information generated by the cloud service device based on vehicle information;
[0008] When the feedback information includes positive confirmation information, generating a certificate request information, the positive confirmation information is used to indicate that the vehicle needs a certificate;
[0009] In response to detecting that the vehicle's primary account has logged in, a certificate issuance request is sent to the cloud service device. The certificate issuance request includes certificate request information and account information of the primary account. The certificate issuance request is used to request the cloud service device to issue a certificate based on the certificate request information and account information.
[0010] According to an achievable manner in an embodiment of the present application, the vehicle information includes vehicle identification information and / or vehicle configuration information;
[0011] After the vehicle is started, sending vehicle information to the cloud service device includes: after the vehicle is started, sending vehicle identification information to the cloud service device; and receiving feedback information generated by the cloud service device according to the vehicle information, including: receiving feedback information generated based on the vehicle configuration information after the cloud service device queries the vehicle configuration information of the matching vehicle according to the vehicle identification information;
[0012] or,
[0013] After the vehicle is started, the vehicle information is sent to the cloud service device, including: after the vehicle is started, the vehicle configuration information is sent to the cloud service device; and feedback information generated by the cloud service device based on the vehicle information is received, including: feedback information generated by the cloud service device based on the vehicle configuration information.
[0014] According to an achievable method in an embodiment of the present application, the vehicle configuration information includes advanced configuration information or medium configuration information; receiving feedback information generated by a cloud service device according to the vehicle information includes:
[0015] When the vehicle configuration information is high-level configuration information or medium-level configuration information, receiving a positive confirmation message generated by the cloud service device;
[0016] According to an achievable manner in an embodiment of the present application, the vehicle configuration information includes standard configuration information, and the feedback information includes negative confirmation information; the method further includes:
[0017] When the vehicle configuration information is standard configuration information, negative confirmation information generated by the cloud service device is received, where the negative confirmation information is used to indicate that the vehicle does not need a certificate.
[0018] According to an achievable manner in an embodiment of the present application, when the feedback information includes positive confirmation information, certificate request information is generated, including:
[0019] When the feedback information includes positive confirmation information, obtaining a pre-stored certificate credential;
[0020] Generate public and private keys by default and save the private key;
[0021] Generate certificate request information based on certificate credentials and public key.
[0022] According to an achievable method in an embodiment of the present application, in response to detecting that the primary account of the vehicle is logged in, sending a certificate issuance request to the cloud service device includes:
[0023] In response to detecting that a primary account of the vehicle is logged in, obtaining account information of the primary account and historical account information stored in the vehicle;
[0024] When the historical account information does not include the account information of the primary account, a certificate issuance request is sent to the cloud service device.
[0025] According to an achievable method in the embodiment of the present application, before sending the vehicle information to the cloud service device, the method further includes:
[0026] Detect whether the vehicle terminal has a certificate;
[0027] Send vehicle information to cloud service devices, including:
[0028] When the vehicle terminal does not have a certificate, the vehicle information is sent to the cloud service device.
[0029] In a second aspect, a certificate issuing method is provided, the method being applied to a cloud service device, comprising:
[0030] Receiving vehicle information sent by the vehicle terminal;
[0031] generating feedback information according to the vehicle configuration information, and sending the feedback information to the vehicle terminal;
[0032] Receiving a certificate issuance request sent by the vehicle terminal when the vehicle's primary account logs in based on the feedback information, the certificate issuance request including certificate request information and account information of the primary account;
[0033] In response to the certificate issuance request, a certificate is issued to the vehicle terminal.
[0034] According to an achievable manner in an embodiment of the present application, the vehicle information includes vehicle identification information and / or vehicle configuration information;
[0035] Receiving vehicle information sent by the vehicle terminal, including: receiving vehicle identification information sent by the vehicle terminal; generating feedback information according to the vehicle information, including: querying vehicle configuration information of a matching vehicle according to the vehicle identification information, and generating feedback information according to the vehicle configuration information;
[0036] or,
[0037] Receiving vehicle information sent by a vehicle terminal includes: receiving vehicle configuration information sent by the vehicle terminal; generating feedback information according to the vehicle information includes: generating feedback information according to the vehicle configuration information.
[0038] According to an achievable method in an embodiment of the present application, the vehicle configuration information includes advanced configuration information and medium configuration information; generating feedback information according to the vehicle information includes:
[0039] A positive confirmation message is generated according to the advanced configuration information or the intermediate configuration information, the positive confirmation message being used to indicate that the vehicle requires a certificate.
[0040] According to an achievable method in an embodiment of the present application, the vehicle configuration information includes standard configuration information, and the feedback information includes negative confirmation information; generating the feedback information according to the vehicle information includes:
[0041] A negative confirmation message is generated based on the standard configuration information, the negative confirmation message being used to indicate that the vehicle does not require a certificate.
[0042] According to an achievable method in an embodiment of the present application, the certificate request information includes a certificate credential and a public key of the vehicle, and the certificate credential includes a vehicle identification code and a vehicle equipment identifier; issuing a certificate to the vehicle terminal in response to the certificate issuance request includes:
[0043] Verify the legality of the vehicle identification number and vehicle equipment identification;
[0044] If the verification is successful, a certificate is issued to the vehicle terminal based on the public key.
[0045] According to an achievable manner in an embodiment of the present application, before receiving the vehicle information sent by the vehicle terminal, the method further includes:
[0046] Receive the certificate application information sent by the production line equipment, which includes the vehicle identification code and vehicle equipment identification;
[0047] Generate a certificate credential based on the vehicle identification code and vehicle equipment identification;
[0048] The certificate credentials are sent to the production line equipment so that the certificate credentials are saved to the vehicle terminal through the production line equipment.
[0049] In a third aspect, a certificate issuing device is provided, the device comprising:
[0050] A sending module is used to send vehicle information to a cloud service device after the vehicle is started;
[0051] A receiving module, used to receive feedback information generated by a cloud service device based on vehicle information;
[0052] A generating module, used for generating certificate request information when the feedback information includes positive confirmation information, the positive confirmation information is used to indicate that the vehicle needs a certificate;
[0053] The sending module is also used to send a certificate issuance request to the cloud service device in response to detecting that the vehicle's main account has logged in. The certificate issuance request includes certificate request information and account information of the main account. The certificate issuance request is used to request the cloud service device to issue a certificate based on the certificate request information and account information of the main account.
[0054] In a fourth aspect, a certificate issuing device is provided, the device comprising:
[0055] A receiving module, used for receiving vehicle configuration information sent by the vehicle terminal;
[0056] A generating module, used for generating feedback information according to the vehicle configuration information, and sending the feedback information to the vehicle terminal;
[0057] The receiving module is further used to receive a certificate issuance request sent by the vehicle terminal according to the feedback information when the main account of the vehicle logs in, and the certificate issuance request includes certificate request information and account information of the main account;
[0058] In response to the certificate issuance request, a certificate is issued to the vehicle terminal.
[0059] According to a fifth aspect, a computer device is provided, comprising:
[0060] at least one processor; and
[0061] a memory communicatively connected to the at least one processor; wherein,
[0062] The memory stores computer instructions that can be executed by the at least one processor, and the computer instructions are executed by the at least one processor so that the at least one processor can execute the method involved in the first aspect or the second aspect mentioned above.
[0063] In a sixth aspect, a computer-readable storage medium is provided, on which computer instructions are stored, characterized in that the computer instructions are used to enable a computer to execute the method involved in the first aspect or the second aspect above.
[0064] According to the technical content provided by the embodiment of the present application, after the vehicle is started, the vehicle information is sent to the cloud service device, and the feedback information generated by the cloud service device according to the vehicle information is received. When the feedback information includes positive confirmation information, a certificate request information is generated, and the positive confirmation information is used to indicate that the vehicle needs a certificate. In response to detecting that the main account of the vehicle is logged in, a certificate issuance request is sent to the cloud service device, so that the cloud service device issues a certificate according to the certificate issuance request. The embodiment of the present application first determines whether the vehicle needs a certificate through the vehicle configuration information, and then issues a certificate when the main account login of the vehicle needs to be re-applied, avoiding unnecessary certificate issuance, reducing the waste of communication resources, improving the background certificate management capabilities, and ensuring the user's information security as much as possible. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A schematic diagram of a flow chart of a certificate issuing method in an embodiment;
[0066] Figure 2 A flowchart of a method for issuing a certificate in another embodiment;
[0067] Figure 3 A flowchart of a preferred method for issuing certificates in an embodiment;
[0068] Figure 4 A flowchart of a preferred method for issuing certificates in another embodiment;
[0069] Figure 5 It is a structural block diagram of a certificate issuing device in an embodiment;
[0070] Figure 6 It is a structural block diagram of a certificate issuing device in another embodiment;
[0071] Figure 7 FIG. 4 is a schematic structural diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0072] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0073] Figure 1 The following is a flow chart of a certificate issuing method provided in an embodiment of the present application, which can be executed by a vehicle terminal. Figure 1 As shown, the method may include the following steps:
[0074] S110, after the vehicle is started, the vehicle information is sent to the cloud service device.
[0075] Vehicle information includes vehicle identification information and / or vehicle configuration information. Among them, vehicle configuration information includes hardware configuration information and software configuration information. Combining different types of configuration information, the configuration information can be divided into advanced configuration information, medium configuration information and standard configuration information. Vehicles corresponding to different levels of configuration information have limited functions that can be realized. For example, the vehicle corresponding to the standard configuration information may not have online access functions, so there is no need to obtain a certificate from the cloud service device to access online function data. The certificate is a digital certificate used to prove the identity of the vehicle or indicate that the vehicle terminal has the authority to access online services.
[0076] After the vehicle is started, the vehicle information is sent to the cloud service device. The cloud service device will determine whether the vehicle needs a certificate based on the vehicle information to avoid issuing certificates to unnecessary vehicles.
[0077] S120, receiving feedback information generated by the cloud service device according to the vehicle information.
[0078] The feedback information includes positive confirmation information and negative confirmation information. When the cloud determines that the vehicle needs a certificate when using the online function based on the vehicle information, the feedback information sent to the vehicle terminal is positive confirmation information. When the cloud determines that the vehicle does not need a certificate when using the online function based on the vehicle information, the feedback information sent to the vehicle terminal is negative confirmation information.
[0079] The vehicle terminal receives feedback information sent by the cloud service device to determine whether to execute the operation of applying for a certificate.
[0080] S130: When the feedback information includes positive confirmation information, generate certificate request information.
[0081] The positive confirmation information is used to indicate that the vehicle needs a certificate. When the feedback information received by the vehicle terminal is positive confirmation information, it indicates that the vehicle needs a certificate when using the online function, and a certificate request information is generated at this time. The certificate request information may include information such as the certificate credential, the vehicle public key, and the signature.
[0082] After the vehicle is started, it is not necessary to use the online function. After the certificate request information is generated, it is not sent to the cloud service device to apply for a certificate. When the vehicle's main account logs in and determines that a certificate is needed, the certificate request information is sent to the cloud service device.
[0083] S140, in response to detecting that the vehicle's primary account is logged in, sending a certificate issuance request to a cloud service device.
[0084] The certificate issuance request includes certificate request information and account information of the primary account. The certificate issuance request is used to request the cloud service device to issue a certificate based on the certificate request information and account information.
[0085] The vehicle's primary account login may be logged in when the vehicle is first sold, when it is sold again, or when the primary account is changed. Before the second sale, the user will delete his or her primary account to ensure information security. When deleting or changing the primary account, the certificate corresponding to the original primary account will also be deleted.
[0086] Therefore, when the vehicle's main account logs in, it is necessary to apply for a certificate from the cloud service device and send a certificate issuance request to the cloud service device. The cloud service device issues the certificate based on the certificate request information in the certificate issuance request and the account information of the main account.
[0087] It can be seen that after the vehicle is started, the embodiment of the present application sends vehicle information to the cloud service device, receives feedback information generated by the cloud service device based on the vehicle information, and generates certificate request information when the feedback information includes positive confirmation information. The positive confirmation information is used to indicate that the vehicle needs to apply for a certificate. In response to detecting that the vehicle's main account is logged in, a certificate issuance request is sent to the cloud service device, so that the cloud service device issues a certificate according to the certificate issuance request. The embodiment of the present application first determines whether the vehicle needs to apply for a certificate based on the vehicle information, and then issues a certificate when the vehicle's main account login needs to be re-applied, avoiding unnecessary certificate issuance, reducing the waste of communication resources, improving the background certificate management capabilities, and ensuring the user's information security as much as possible.
[0088] The steps in the above method flow are described in detail below. First, the above S110, namely "sending vehicle information to a cloud service device", is described in detail in conjunction with the embodiment.
[0089] The vehicle information includes vehicle identification information and / or vehicle configuration information. As an achievable method, after the vehicle is started, the vehicle identification information is sent to the cloud service device.
[0090] Vehicle identification information includes the vehicle identification number, which includes information such as manufacturer, year, model, body type and code, engine code and assembly location. The vehicle model can be accurately identified through the vehicle identification number.
[0091] After the vehicle is started, the vehicle identification information is sent to the cloud service device, and the cloud service device can query the vehicle configuration information of the matching vehicle according to the vehicle identification information and generate feedback information.
[0092] As another feasible method, after the vehicle is started, the vehicle configuration information can be sent directly to the cloud service device.
[0093] Regardless of what kind of vehicle information the vehicle terminal can obtain, the cloud service device can determine whether the vehicle needs to apply for a certificate, avoiding the situation where the certificate cannot be obtained in time due to single information.
[0094] The above S120, namely "receiving feedback information generated by the cloud service device according to the vehicle information", is described in detail in conjunction with the embodiment.
[0095] As an achievable manner, after receiving the vehicle configuration information of the matching vehicle inquiring by the cloud service device according to the vehicle identification information, feedback information is generated based on the vehicle configuration information;
[0096] When the cloud service device receives the vehicle identification information sent by the vehicle terminal, it queries the vehicle configuration information of the matching vehicle, generates feedback information based on the vehicle configuration information, and sends the feedback information to the vehicle terminal. The vehicle terminal receives the feedback information to determine whether a certificate is required.
[0097] As another feasible manner, if the vehicle terminal directly sends the vehicle configuration information to the cloud service device, the cloud service device directly generates feedback information according to the vehicle configuration information and sends the feedback information to the vehicle terminal.
[0098] The feedback information includes positive confirmation information and negative confirmation information, wherein the negative confirmation information is used to indicate that the vehicle does not need a certificate.
[0099] As one possible implementation method, when the vehicle configuration information is high-level configuration information or medium-level configuration information, a positive confirmation message generated by a cloud service device is received.
[0100] The advanced configuration information is the configuration information for the vehicle terminal to use more advanced functions, and the medium configuration information is the configuration information for the vehicle terminal to use fewer advanced functions.
[0101] Advanced configuration information and medium configuration information are relative, and are mainly distinguished by the number of advanced functions implemented. Advanced configuration information contains configuration information of advanced functions that do not exist in medium configuration information, and medium configuration information can also contain configuration information of low-level functions that do not exist in advanced configuration information. Advanced functions and low-level functions are also relative and can be distinguished according to their degree of intelligence. When the vehicle configuration information is advanced configuration information or medium configuration information, the cloud service device determines that the vehicle supports online services and requires a certificate to use the online function, and generates a positive confirmation message. After the vehicle terminal receives the positive confirmation message, it starts to execute the operation of applying for a certificate.
[0102] As one of the achievable ways, when the vehicle configuration information is standard configuration information, negative confirmation information generated by the cloud service device is received, and the negative confirmation information is used to indicate that the vehicle does not need a certificate.
[0103] Standard configuration information is configuration information that prevents the vehicle terminal from using advanced functions. When the vehicle configuration information is standard configuration information, the cloud service device determines that the vehicle does not support the online services corresponding to the above advanced functions, and does not need a certificate to use these online services, and generates negative confirmation information. After the vehicle terminal receives the negative confirmation information fed back by the cloud service device, no operation is required. In this way, unnecessary information transmission can be reduced, thereby reducing the risk of information leakage during information transmission, and ensuring the security of user information as much as possible.
[0104] The above S130, ie, "generating certificate request information when the feedback information includes positive confirmation information", is described in detail below in conjunction with an embodiment.
[0105] As an implementable manner, when the feedback information includes positive confirmation information, obtaining a pre-stored certificate credential;
[0106] Generate public and private keys by default and save the private key;
[0107] Generate certificate request information based on certificate credentials and public key.
[0108] The certificate credentials are obtained by applying for the cloud service device in advance through the production line equipment and stored in the vehicle terminal, including the vehicle identification code and vehicle equipment identification. When the vehicle needs to apply for a certificate, the certificate credentials can be used as the basis for the vehicle's identity verification.
[0109] By pre-storing the certificate credentials in the vehicle terminal, applying for the certificate when the vehicle needs it can prevent the certificate from being leaked during filling on the production line, resulting in the loss of vehicle data, thereby ensuring the privacy and security of vehicle data. The preset method can be any method for generating a public-private key pair, for example, the Openssl command. The Openssl command generates a public key and a private key based on the vehicle identification code and the vehicle device identifier. The public key is made public by the vehicle terminal and shared by the cloud service device for encryption and signature verification. The private key is stored in the vehicle terminal for decryption and signing.
[0110] The certificate credential and the vehicle public key are encapsulated in a standard data format to obtain the certificate request information. The standard data format of the certificate request information may be PKCS#10.
[0111] When the cloud service device sends a certificate to the vehicle terminal, the cloud service device can use the public key to encrypt the certificate, securely transmit it to the vehicle terminal, and then decrypt it with the private key stored in the vehicle terminal. Since the private key is always stored inside the security chip and never leaves the vehicle, the possibility of information leakage is eliminated.
[0112] The above S140, namely "sending a certificate issuance request to a cloud service device in response to detecting that a primary account of the vehicle is logged in", is described in detail below in conjunction with the embodiments.
[0113] As an implementable manner, in response to detecting that a primary account of the vehicle is logged in, obtaining account information of the primary account and historical account information stored in the vehicle;
[0114] When the historical account information does not include the account information of the primary account, a certificate issuance request is sent to the cloud service device.
[0115] The vehicle's main account login may also be caused by the previous main account login expiration. In this case, the corresponding main account remains unchanged. If the main account remains unchanged, the previously applied certificate can continue to be used without re-application.
[0116] When the main account of the vehicle logs in, it is necessary to verify whether the main account is logging in to the vehicle for the first time, and obtain the account information and historical account information of the main account. Among them, the account information includes the account user identity, account data, login time and other information, and the historical account information includes the historical account user identity, historical account data, historical login time and other information.
[0117] When the historical account information does not include account information, it means that the primary account has not logged in on this vehicle, and the vehicle does not have a certificate corresponding to this primary account, and a certificate needs to be applied for. At this time, a certificate issuance request is sent to the cloud service device.
[0118] Through the above method, it is determined again whether a certificate needs to be applied for when the main account of the vehicle logs in, so as to avoid repeated application and issuance of certificates by the vehicle terminal, further reduce the pressure of background certificate management, and improve the efficiency of certificate issuance.
[0119] As an achievable manner, before sending the vehicle information to the cloud service device, the method further includes:
[0120] Detect whether the vehicle terminal has a certificate;
[0121] Send vehicle information to cloud devices, including:
[0122] When the vehicle terminal does not have a certificate, the vehicle information is sent to the cloud service device.
[0123] When the vehicle is started, the process of detecting whether the vehicle terminal has a certificate can be started. When the vehicle terminal has a certificate, the certificate is used normally to access the cloud service device to use online functions. When the vehicle terminal does not have a certificate, the vehicle configuration information is sent to the cloud service device to obtain the certificate.
[0124] Before sending vehicle information to the cloud service device, by detecting whether the vehicle terminal has a certificate, unnecessary certificate applications can be reduced, the waiting time for the vehicle terminal to use online functions can be saved, and the access efficiency of the vehicle terminal can be improved.
[0125] Figure 2 The following is a flow chart of a certificate issuing method provided in an embodiment of the present application, which can be executed by a cloud service device. Figure 2 As shown, the method may include the following steps:
[0126] S210, receiving vehicle information sent by the vehicle terminal.
[0127] The vehicle information includes vehicle identification information and / or vehicle configuration information. The vehicle configuration information includes hardware configuration information and software configuration information. The configuration information can be divided into advanced configuration information, medium configuration information and standard configuration information in combination with different types of configuration information.
[0128] The cloud service device can receive the vehicle configuration information sent by the vehicle terminal. The cloud service device will determine whether the vehicle needs a certificate based on the vehicle configuration information to avoid issuing certificates to unnecessary vehicles.
[0129] S220, generating feedback information according to the vehicle configuration information, and sending the feedback information to the vehicle terminal.
[0130] When the cloud determines that the vehicle needs a certificate when using the online function based on the vehicle configuration information, the generated feedback information is positive confirmation information. When the cloud determines that the vehicle does not need a certificate when using the online function based on the vehicle configuration information, the generated feedback information is negative confirmation information.
[0131] Feedback information is sent to the vehicle terminal so that the vehicle terminal can determine whether to execute the operation of applying for a certificate.
[0132] S230, receiving a certificate issuance request sent by the vehicle terminal according to the feedback information when the main account of the vehicle logs in.
[0133] When the feedback information received by the vehicle terminal is positive confirmation information, it indicates that the vehicle needs a certificate when using the online function, and a certificate request information is generated at this time. Since the online function does not necessarily need to be used after the vehicle is started, when the vehicle's main account logs in and determines that a certificate is required, a certificate request information is sent to the cloud service device.
[0134] The cloud service device receives the certificate request information sent by the vehicle terminal and determines whether to issue the certificate.
[0135] S240: issuing a certificate to the vehicle terminal in response to the certificate issuance request.
[0136] In response to the certificate request information, the cloud service device first authenticates the vehicle. When the vehicle's identity is authenticated, a certificate is issued to the vehicle terminal to prevent leakage of vehicle terminal data.
[0137] It can be seen that the embodiment of the present application receives vehicle information sent by the vehicle terminal, generates feedback information based on the vehicle information, and sends the feedback information to the vehicle terminal, receives the certificate issuance request generated by the vehicle terminal when the vehicle's main account logs in based on the feedback information, and issues a certificate to the vehicle terminal in response to the certificate issuance request. This can avoid unnecessary certificate issuance, reduce waste of communication resources, improve the certificate management capabilities of the cloud service device background, and ensure user information security as much as possible.
[0138] The following describes each step in the above method flow in detail. First, the above S210, ie, "receiving vehicle information sent by the vehicle terminal", is described in detail in conjunction with the embodiment.
[0139] The vehicle information includes vehicle identification information and / or vehicle configuration information. As an implementable method, the vehicle identification information sent by the vehicle terminal is received. The vehicle identification information can be used to find vehicle configuration information matching the vehicle.
[0140] As another achievable manner, the vehicle configuration information sent by the vehicle terminal is received.
[0141] Regardless of the type of vehicle information received, the cloud service device can determine whether the vehicle needs to apply for a certificate. This reduces the requirements for the vehicle terminal to send vehicle information and has better compatibility.
[0142] The above S220, namely "generating feedback information according to vehicle configuration information", is described in detail below in conjunction with an embodiment.
[0143] As a feasible approach, the cloud service device queries the vehicle configuration information of the matching vehicle according to the vehicle identification information, and generates feedback information according to the vehicle configuration information.
[0144] As another feasible method, the cloud service device can also directly generate feedback information based on the vehicle configuration information.
[0145] The feedback information includes positive confirmation information and negative confirmation information, wherein the positive confirmation information is used to indicate that the vehicle needs a certificate, and the negative confirmation information is used to indicate that the vehicle does not need a certificate.
[0146] The vehicle configuration information includes advanced configuration information and medium configuration information. The advanced configuration information is the configuration information for the vehicle terminal to use more advanced functions, and the medium configuration information is the configuration information for the vehicle terminal to use fewer advanced functions.
[0147] As one possible implementation manner, positive confirmation information is generated according to the high-level configuration information or the medium-level configuration information.
[0148] The advanced configuration information and the medium configuration information both include configuration information for using advanced functions. When the cloud service device determines that the vehicle can use the advanced functions based on the received advanced configuration information or the medium configuration information, a positive confirmation message is generated.
[0149] As one possible implementation method, the vehicle configuration information includes standard configuration information, and the negative confirmation information is generated according to the standard configuration information.
[0150] The standard configuration information is configuration information that the vehicle terminal cannot use the advanced functions. When the cloud service device determines that the vehicle cannot use the advanced functions based on the received standard configuration information, it generates positive confirmation information.
[0151] By determining whether a vehicle requires a certificate based on the vehicle configuration information, the cloud service device can reduce the amount of redundant information it has to process, and can respond to necessary request information more quickly.
[0152] The above S240, ie, "issuing a certificate to the vehicle terminal in response to the certificate request information", is described in detail below in conjunction with an embodiment.
[0153] The certificate request information includes the vehicle's certificate credentials and public key, and the certificate credentials include the vehicle identification code and vehicle equipment identification.
[0154] As a feasible way, verify whether the vehicle identification code and vehicle equipment identification are legitimate;
[0155] If the verification is successful, a certificate is issued to the vehicle terminal based on the public key.
[0156] To ensure the security of vehicle terminal data, the vehicle identity is first verified based on the vehicle identification code and vehicle equipment. If the verification is successful, it means that the vehicle identification code and vehicle equipment identification are legal. At this time, the cloud service device uses the public key to encrypt the certificate and sends the encrypted certificate to the vehicle terminal.
[0157] As an implementable manner, before receiving the vehicle information sent by the vehicle terminal, the method further includes:
[0158] Receive the certificate application information sent by the production line equipment, which includes the vehicle identification code and vehicle equipment identification;
[0159] Generate a certificate credential based on the vehicle identification code and vehicle equipment identification;
[0160] The certificate credentials are sent to the production line equipment so as to be saved in the vehicle through the production line equipment.
[0161] Before receiving the vehicle configuration information sent by the vehicle terminal, the production line worker sends a request to the cloud service device through the production line device to apply for the vehicle's certificate. The cloud service device generates a certificate matching the vehicle based on the vehicle identification code and vehicle device identification. The certificate can be used as the identity basis for obtaining the certificate from the cloud service device. The cloud service device sends the certificate to the production line device, and the production line device writes the certificate into the vehicle's security chip to prevent it from being erased.
[0162] After the production line equipment obtains the certificate credentials, it is loaded into the vehicle terminal instead of directly loading the certificate into the vehicle terminal. In this way, the certificate has never left the vehicle, reducing the risk of certificate leakage, avoiding illegal tampering and remote control of the certificate on the production line, and improving the security of vehicle data. At the same time, loading the certificate credentials into the vehicle terminal through the production line equipment can simplify the operation process of the production line workers compared to loading the certificate into the vehicle terminal, and minimize the impact of certificate writing errors caused by production line workers' operational errors.
[0163] The above-mentioned certificate issuance methods all use a mode combining vehicle configuration information + main account login to determine whether to issue a certificate. It is also possible to determine whether to issue a certificate based solely on vehicle configuration information or main account login.
[0164] As an implementable manner, the method for determining whether to issue a certificate based on vehicle configuration information includes: after the vehicle is started, detecting whether a certificate exists at the vehicle terminal, and if the certificate exists at the vehicle terminal, using the existing certificate to access the cloud service device to use online functions.
[0165] If the vehicle terminal does not have a certificate, the vehicle configuration information is sent to the cloud service device, and the cloud service device generates feedback information based on the vehicle configuration information and sends it to the vehicle terminal. When the feedback information is positive confirmation information, a certificate request information is generated and a certificate issuance request is sent to the cloud service device, and the cloud service device issues the certificate based on the certificate issuance request.
[0166] When the feedback information is negative confirmation information, the vehicle terminal does not need to perform any operation.
[0167] As an achievable method, the method of determining whether to issue a certificate based on the login of the master account includes: after the vehicle is started, detecting whether the vehicle terminal has a certificate, and if the vehicle terminal has a certificate, using the existing certificate to access the cloud service device to use the online function. If the vehicle terminal does not have a certificate, when the master account of the vehicle logs in, a certificate issuance request is sent to the cloud service device, and the cloud service device issues the certificate according to the certificate issuance request.
[0168] If the vehicle's main account has been logged in, then the vehicle terminal does not need to perform any operation.
[0169] Method for determining whether to issue a certificate based on vehicle configuration information and method for determining whether to issue a certificate based on primary account login Figure 1 and Figure 2 The certificate issuance method shown achieves similar technical effects and will not be repeated here.
[0170] In combination with the implementation method in the above embodiment, Figure 3 An example of a preferred method flow provided in the embodiment of the present application is described. Figure 3 As shown, the method is applied to a vehicle terminal and may include the following steps:
[0171] S301, after the vehicle is started, check whether there is a certificate on the vehicle terminal.
[0172] If it exists, execute S302; if it does not exist, execute S303.
[0173] S302, using the existing certificate of the vehicle terminal to access the cloud service device.
[0174] S303, sending vehicle configuration information to the cloud service device.
[0175] The vehicle configuration information includes advanced configuration information, medium configuration information and standard configuration information.
[0176] When the vehicle configuration information is high-level configuration information or medium-level configuration information, execute S304; when the vehicle configuration information is standard configuration information, execute S305.
[0177] S304, receiving positive confirmation information generated by the cloud service device.
[0178] When the feedback information is positive confirmation information, execute S306.
[0179] S305, receiving negative confirmation information generated by the cloud service device.
[0180] When the feedback information is negative confirmation information, the vehicle terminal does not need to perform any operation.
[0181] S306, obtaining a pre-stored certificate credential.
[0182] S307, generate a public key and a private key through the OpenSSL command, and save the private key.
[0183] S308, generating certificate request information according to the certificate credential and the public key.
[0184] When the main account of the vehicle is logged in, S309 is executed; if the main account of the vehicle is not logged in, no operation needs to be performed.
[0185] S309, obtaining the account information of the main account and the historical account information stored in the vehicle.
[0186] S310: When the historical account information does not include the account information of the primary account, a certificate issuance request is sent to the cloud service device.
[0187] In combination with the implementation method in the above embodiment, Figure 4 Another preferred method flow provided in the embodiment of the present application is described by way of example. Figure 4 As shown, the method is applied to a cloud service device and may include the following steps:
[0188] S401, receiving certificate application information sent by production line equipment.
[0189] The certificate credential application information includes the vehicle identification number and vehicle equipment identification.
[0190] S402, generating a certificate credential according to the vehicle identification code and the vehicle equipment identification.
[0191] S403, sending the certificate credentials to the production line equipment.
[0192] S404, receiving vehicle information sent by the vehicle terminal.
[0193] The vehicle configuration information includes advanced configuration information, medium configuration information and standard configuration information.
[0194] When the vehicle configuration information is high-level configuration information or medium-level configuration information, execute S405; when the vehicle configuration information is standard configuration information, execute S406.
[0195] S405: Generate positive confirmation information according to the advanced configuration information or the medium configuration information, and send the positive confirmation information to the vehicle terminal.
[0196] After sending the positive confirmation information to the vehicle terminal, S407 is executed.
[0197] S406: Generate negative confirmation information according to the standard configuration information, and send the negative confirmation information to the vehicle terminal.
[0198] S407, receiving a certificate issuance request generated by the vehicle terminal according to the feedback information when the main account of the vehicle logs in.
[0199] The certificate issuance request includes the vehicle's certificate credentials and vehicle public key, and the certificate credentials include the vehicle identification code and vehicle equipment identification.
[0200] S408, verify whether the vehicle identification code and vehicle equipment identification are legal.
[0201] If the verification is successful, execute S409; if the verification is not successful, the certificate is not issued.
[0202] S409: Issue a certificate to the vehicle terminal based on the public key.
[0203] It should be understood that although Figure 1-4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in the application, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0204] Figure 5 A schematic diagram of a certificate issuing device provided in an embodiment of the present application, for executing the following Figure 1 The method flow shown in Figure 5As shown, the device may include: a sending module 510, a receiving module 520 and a generating module 530, and may further include: a detecting module. The main functions of each component module are as follows:
[0205] The sending module 510 is used to send vehicle information to the cloud service device after the vehicle is started;
[0206] A receiving module 520, for receiving feedback information generated by a cloud service device according to vehicle information;
[0207] A generating module 530, configured to generate certificate request information when the feedback information includes positive confirmation information, the positive confirmation information being used to indicate that the vehicle requires a certificate;
[0208] The sending module 510 is also used to send a certificate issuance request to the cloud service device in response to detecting that the vehicle's main account is logged in. The certificate issuance request includes certificate request information and account information of the main account. The certificate issuance request is used to request the cloud service device to issue a certificate based on the certificate request information and account information.
[0209] As an implementable method, the vehicle information includes vehicle identification information and / or vehicle configuration information; the sending module 510 is specifically used to send the vehicle identification information to the cloud service device after the vehicle is started; the receiving module 520 is specifically used to receive feedback information generated based on the vehicle configuration information after the cloud service device queries the vehicle configuration information of the matching vehicle according to the vehicle identification information.
[0210] Alternatively, the sending module 510 is specifically used to send vehicle configuration information to the cloud service device after the vehicle is started; the receiving module 520 is specifically used to receive feedback information generated by the cloud service device according to the vehicle configuration information.
[0211] As an implementable manner, the vehicle configuration information includes advanced configuration information and medium configuration information; the receiving module 520 is specifically used to receive positive confirmation information generated by the cloud service device when the vehicle configuration information is advanced configuration information or medium configuration information.
[0212] As an achievable method, the vehicle configuration information includes standard configuration information, and the feedback information includes negative confirmation information; the receiving module 520 is specifically used to receive the negative confirmation information generated by the cloud service device when the vehicle configuration information is standard configuration information, and the negative confirmation information is used to indicate that the vehicle does not require a certificate.
[0213] As an implementable manner, the generating module 530 is specifically configured to obtain a pre-stored certificate credential when the feedback information includes positive confirmation information;
[0214] Generate public and private keys by default and save the private key;
[0215] Generate certificate request information based on the certificate credential and vehicle public key.
[0216] As an implementable manner, the sending module 510 is specifically configured to obtain the account information of the primary account and the historical account information stored in the vehicle in response to detecting that the primary account of the vehicle is logged in;
[0217] When the historical account information does not include the account information of the primary account, a certificate issuance request is sent to the cloud service device.
[0218] As an implementable manner, the device further includes a detection module for detecting whether a certificate exists in the vehicle terminal before sending the vehicle information to the cloud service device;
[0219] When the vehicle terminal does not have a certificate, the vehicle information is sent to the cloud service device.
[0220] Figure 6 A schematic diagram of a certificate issuing device provided in an embodiment of the present application, for executing the following Figure 2 The method flow shown in Figure 6 As shown, the device may include: a receiving module 610, a generating module 620 and a sending module 630. The main functions of each component module are as follows:
[0221] The receiving module 610 is used to receive the vehicle information sent by the vehicle terminal;
[0222] A generating module 620, configured to generate feedback information according to the vehicle configuration information, and send the feedback information to the vehicle terminal;
[0223] The receiving module 610 is further used to receive a certificate issuance request sent by the vehicle terminal according to the feedback information when the main account of the vehicle logs in, and the certificate issuance request includes certificate request information and account information of the main account;
[0224] The issuing module 630 is used to issue a certificate to the vehicle terminal in response to a certificate issuing request.
[0225] As an implementable manner, the vehicle information includes vehicle identification information and / or vehicle configuration information;
[0226] The receiving module 610 is specifically used to receive the vehicle identification information sent by the vehicle terminal; the generating module 620 is specifically used to query the vehicle configuration information of the matching vehicle according to the vehicle identification information, and generate feedback information according to the vehicle configuration information;
[0227] Alternatively, the receiving module 610 is specifically used to receive the vehicle configuration information sent by the vehicle terminal; the generating module 620 is specifically used to generate feedback information according to the vehicle configuration information. As an implementable manner, the vehicle configuration information includes advanced configuration information and medium configuration information; the generating module 620 is specifically used to generate positive confirmation information according to the advanced configuration information or the medium configuration information, and the positive confirmation information is used to indicate that the vehicle needs a certificate.
[0228] As an implementable manner, the vehicle configuration information includes standard configuration information, and the feedback information includes negative confirmation information; the generation module 620 is specifically used to generate negative confirmation information according to the standard configuration information, and the negative confirmation information is used to indicate that the vehicle does not need a certificate.
[0229] As an achievable method, the certificate request information includes the certificate credential and public key of the vehicle, and the certificate credential includes the vehicle identification code and the vehicle equipment identification; the issuing module 630 is specifically used to verify whether the vehicle identification code and the vehicle equipment identification are legal;
[0230] If the verification is successful, a certificate is issued to the vehicle terminal based on the public key.
[0231] As an implementable manner, before receiving the vehicle information sent by the vehicle terminal, the generating module 620 is further used to receive the certificate credential application information sent by the production line equipment, the certificate credential application information including the vehicle identification code and the vehicle equipment identification;
[0232] Generate a certificate credential based on the vehicle identification code and vehicle equipment identification;
[0233] The certificate credentials are sent to the production line equipment so that the certificate credentials are saved to the vehicle terminal through the production line equipment.
[0234] The same or similar parts between the above embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0235] According to an embodiment of the present application, the present application also provides a computer device and a computer-readable storage medium.
[0236] like Figure 7 , is a block diagram of a computer device according to an embodiment of the present application. The computer device is intended to represent various forms of digital computers or mobile devices. The digital computer may include a desktop computer, a portable computer, a workbench, a personal digital assistant, a server, a mainframe computer, and other suitable computers. The mobile device may include a tablet computer, a smart phone, a wearable device, etc.
[0237] like Figure 7 As shown, the device 700 includes a computing unit 701, a ROM 702, a RAM 703, a bus 704, and an input / output (I / O) interface 705, and the computing unit 701, ROM 702 and RAM 703 are connected to each other through the bus 704. The input / output (I / O) interface 705 is also connected to the bus 704.
[0238] The computing unit 701 can perform various processes in the method embodiment of the present application according to the computer instructions stored in the read-only memory (ROM) 702 or the computer instructions loaded from the storage unit 708 to the random access memory (RAM) 703. The computing unit 701 can be various general and / or special processing components with processing and computing capabilities. The computing unit 701 may include, but is not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. In some embodiments, the method provided in the embodiment of the present application can be implemented as a computer software program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 708.
[0239] RAM 703 may also store various programs and data required for the operation of device 700. Part or all of the computer program may be loaded and / or installed on device 700 via ROM 802 and / or communication unit 709.
[0240] The input unit 706, output unit 707, storage unit 708 and communication unit 709 in the device 700 can be connected to the I / O interface 705. The input unit 706 can be, for example, a keyboard, a mouse, a touch screen, a microphone, etc. The output unit 707 can be, for example, a display, a speaker, an indicator light, etc. The device 700 can exchange information, data, etc. with other devices through the communication unit 709.
[0241] It should be noted that the device may also include other components necessary for normal operation, or may only include components necessary for implementing the solution of the present application, rather than all the components shown in the figure.
[0242] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof.
[0243] The computer instructions for implementing the method of the present application can be written in any combination of one or more programming languages. These computer instructions can be provided to the computing unit 701, so that when the computer instructions are executed by the computing unit 701 such as a processor, the steps involved in the method embodiment of the present application are executed.
[0244] The computer-readable storage medium provided in the present application may be a tangible medium that may contain or store computer instructions for executing the steps involved in the method embodiments of the present application. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, and other forms of storage media.
[0245] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for issuing a certificate. It is characterized in that The method is applied to a vehicle terminal and includes: After the vehicle is started, the vehicle information is sent to the cloud service device, wherein the vehicle information includes vehicle configuration information, and the vehicle configuration information includes hardware configuration information and software configuration information; receiving feedback information generated by the cloud service device according to the vehicle information, wherein the feedback information includes positive confirmation information and negative confirmation information; When the feedback information includes positive confirmation information, generating certificate request information, the positive confirmation information is used to indicate that the vehicle needs a certificate, wherein the certificate request information is generated according to a pre-stored certificate credential, and the certificate credential is obtained in advance by applying to the cloud service device through the production line device and stored in the vehicle terminal; In response to detecting that the primary account of the vehicle is logged in, a certificate issuance request is sent to the cloud service device, and the certificate issuance request includes the certificate request information and the account information of the primary account. The certificate issuance request is used to request the cloud service device to issue the certificate based on the certificate request information and the account information.
2. The method according to claim 1, It is characterized in that The vehicle information includes vehicle identification information and / or vehicle configuration information; The sending of vehicle information to a cloud service device after the vehicle is started includes: sending the vehicle identification information to the cloud service device after the vehicle is started; and the receiving of feedback information generated by the cloud service device according to the vehicle information includes: receiving feedback information generated based on the vehicle configuration information after the cloud service device queries the vehicle configuration information matching the vehicle according to the vehicle identification information; or, The sending of vehicle information to a cloud service device after the vehicle is started includes: sending the vehicle configuration information to the cloud service device after the vehicle is started; and receiving feedback information generated by the cloud service device based on the vehicle information includes: receiving feedback information generated by the cloud service device based on the vehicle configuration information.
3. The method according to claim 2, It is characterized in that The vehicle configuration information includes advanced configuration information or medium configuration information; and the receiving feedback information generated by the cloud service device according to the vehicle information includes: When the vehicle configuration information is the advanced configuration information or the intermediate configuration information, positive confirmation information generated by the cloud service device is received.
4. The method according to claim 2, It is characterized in that The vehicle configuration information includes standard configuration information, and the feedback information includes negative confirmation information; the method further includes: When the vehicle configuration information is the standard configuration information, negative confirmation information generated by the cloud service device is received, where the negative confirmation information is used to indicate that the vehicle does not need a certificate.
5. The method according to any one of claims 1 to 4, It is characterized in that When the feedback information includes positive confirmation information, generating certificate request information includes: When the feedback information includes positive confirmation information, obtaining a pre-stored certificate credential; Generate a public key and a private key in a preset manner, and save the private key; The certificate request information is generated according to the certificate credential and the public key.
6. The method according to any one of claims 1 to 4, It is characterized in that In response to detecting that the primary account of the vehicle is logged in, sending a certificate issuance request to the cloud service device includes: In response to detecting a login of a primary account of the vehicle, acquiring account information of the primary account and historical account information stored in the vehicle; When the historical account information does not include the account information of the primary account, the certificate issuance request is sent to the cloud service device.
7. The method according to any one of claims 1 to 4, It is characterized in that Before sending the vehicle information to the cloud service device, the method further includes: Detecting whether a certificate exists on the vehicle terminal; The sending of vehicle information to the cloud device includes: When the vehicle terminal does not have a certificate, the vehicle information is sent to the cloud service device.
8. A method for issuing a certificate, It is characterized in that The method is applied to a cloud service device, comprising: After the vehicle is started, receiving vehicle information sent by the vehicle terminal, the vehicle information includes vehicle configuration information, and the vehicle configuration information includes hardware configuration information and software configuration information; generating feedback information according to the vehicle information, and sending the feedback information to the vehicle terminal, wherein the feedback information includes positive confirmation information and negative confirmation information; When the feedback information includes positive confirmation information, receiving a certificate issuance request sent by the vehicle terminal according to the feedback information when the vehicle's primary account logs in, the certificate issuance request including certificate request information and account information of the primary account, wherein the certificate request information is generated according to a pre-stored certificate credential, and the certificate credential is obtained by applying to the cloud service device in advance through the production line device and stored in the vehicle terminal; A certificate is issued to the vehicle terminal in response to the certificate issuance request.
9. The method according to claim 8, before receiving the vehicle information sent by the vehicle terminal, the method further include: Receiving certificate credential application information sent by the production line equipment, the certificate credential application information including a vehicle identification code and a vehicle equipment identifier; Generating the certificate credential according to the vehicle identification code and the vehicle equipment identification; The certificate credential is sent to the production line equipment so that the certificate credential is saved to the vehicle terminal through the production line equipment.
10. A certificate issuing device, It is characterized in that The device comprises: A sending module, used to send vehicle information to a cloud service device after the vehicle is started, wherein the vehicle information includes vehicle configuration information, and the vehicle configuration information includes hardware configuration information and software configuration information; A receiving module, used to receive feedback information generated by the cloud service device according to the vehicle information, wherein the feedback information includes positive confirmation information and negative confirmation information; A generating module, configured to generate certificate request information when the feedback information includes positive confirmation information, wherein the positive confirmation information is used to indicate that the vehicle needs a certificate, wherein the certificate request information is generated according to a pre-stored certificate credential, and the certificate credential is obtained by applying to the cloud service device in advance through the production line device and stored in the vehicle terminal; The sending module is also used to send a certificate issuance request to the cloud service device in response to detecting that the main account of the vehicle is logged in, and the certificate issuance request includes the certificate request information and the account information of the main account. The certificate issuance request is used to request the cloud service device to issue the certificate according to the certificate request information and the account information of the main account.
