Equipment identity authentication method and device, electronic equipment and storage medium
Through the method of device private key encryption and public key list verification, the problem of insufficient identity authentication of IoT devices is solved, effective verification of device identity is achieved, data security is improved, and the risk of identity fraud is reduced.
Patent Information
- Application Number
- CN202410631832.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-03
AI Technical Summary
Insufficient identity authentication of IoT devices leads to data security risks, and it is easy for illegal devices to access the network, and identity fraud leads to the leakage of important data.
By obtaining the device binding information, encrypting it with the device private key, generating a private key signature, and using the public key list to verify the signature, the device identity authentication result is generated. When the authentication is passed, the public and private key pairs are updated to reduce identity fraud. risk.
It achieves effective verification of device identity and improves data security, reduces the risk of device identity fraud and ensures the safe operation of IoT devices.
Smart Images

Figure CN118590239A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of device management, and in particular to a device identity authentication method, apparatus, electronic device and storage medium. Background Art
[0002] With the rapid development and widespread application of the Internet of Things, the identity authentication of IoT devices has become increasingly important. Device identity authentication is the basis for ensuring the safe operation of IoT devices and can effectively prevent illegal devices from accessing the network. IoT devices may store a large amount of user privacy data, enterprise management data and other important data. If effective device identity authentication cannot be performed, it is easy for others to invade the network and impersonate the device identity, resulting in the leakage of important data and data security risks. Summary of the invention
[0003] In order to solve at least one of the technical problems existing in the above-mentioned related technologies, the embodiments of the present application propose a device identity authentication method, apparatus, electronic device and storage medium, which can realize effective device identity authentication, reduce the risk of device identity misuse, and improve data security.
[0004] On the one hand, an embodiment of the present application proposes a device identity authentication method, the method comprising the following steps:
[0005] In response to a user's binding operation on a device to be verified in a client, obtaining device binding information corresponding to the device to be verified; the device binding information includes a device identifier and a device service token;
[0006] The device to be verified uses a device private key to encrypt the device binding information to obtain a device private key signature;
[0007] According to the device binding information, obtain the corresponding device public key list;
[0008] Using the device public key list to verify the device private key signature, and generate a device identity authentication result corresponding to the device to be verified;
[0009] When the device identity authentication result shows that the device identity authentication is passed, the device public-private key pair corresponding to the device to be verified is updated, the device update public key contained in the device public-private key pair is stored in the device public key list, and the device update private key contained in the device public-private key pair and the device identity authentication result are returned to the device to be verified.
[0010] In some embodiments, the step of verifying the device private key signature using the device public key list to generate a device identity authentication result corresponding to the device to be verified specifically includes:
[0011] Determine, according to the device binding information, a device public key corresponding to the device identifier from the device public key list;
[0012] The device public key is used to verify the device private key signature, verify the device identity and device activation service of the device to be verified, and obtain the device identity authentication result.
[0013] In some embodiments, when the device identity authentication result shows that the device identity authentication is passed, the step of updating the device public-private key pair corresponding to the device to be authenticated, storing the device update public key included in the device public-private key pair to the device public key list, and returning the device update private key included in the device public-private key pair and the device identity authentication result to the device to be authenticated specifically includes:
[0014] Encrypting the device update private key using the device public key, and returning the encrypted device update private key to the device to be verified;
[0015] Decrypting the encrypted device update private key by using the device private key stored in the device to be verified, obtaining and storing the device update public key, and generating a private key update instruction;
[0016] The private key update instruction is obtained, and according to the private key update instruction, the device update public key is stored in the device public key list.
[0017] In some embodiments, the method further comprises:
[0018] After storing the device update public key in the device public key list, generating a public key update instruction;
[0019] The public key update instruction is fed back to the device to be verified, and the device private key is deleted through the device to be verified.
[0020] In some embodiments, before executing the step of encrypting the device binding information by using the device to be verified using the device private key to obtain the device private key signature, the method further includes:
[0021] Sending the device binding information to the device manufacturer platform through the client;
[0022] The device manufacturer platform generates a binding encryption instruction according to the device binding information, and sends the binding encryption instruction and the device binding information to the device to be verified; the binding encryption instruction is used to control the device to be verified to encrypt the device binding information.
[0023] In some embodiments, the step of using the device public key to verify the device private key signature, verifying the device identity and device activation service of the device to be verified, and obtaining the device identity authentication result specifically includes:
[0024] Decrypting the device private key signature using the device public key to obtain the device identification and the device service token;
[0025] Acquire device identity information from the device manufacturer platform, verify the device identifier according to the device identity information, and determine a first authentication result;
[0026] Acquire device service information, verify the device service token according to the device service information, and determine a second authentication result;
[0027] The device identity authentication result is generated according to the first authentication result and the second authentication result.
[0028] In some embodiments, the method further comprises:
[0029] When the device identity authentication result shows that the device identity authentication is passed, the device to be authenticated is determined as a verified device, and a device service execution instruction corresponding to the verified device is generated according to the device binding information, and the device service execution instruction is returned to the verified device.
[0030] On the other hand, an embodiment of the present application provides a device identity authentication device, the device comprising:
[0031] The first module is used to obtain device binding information corresponding to the device to be verified in response to the user's binding operation on the device to be verified in the client; the device binding information includes a device identifier and a device service token;
[0032] The second module is used to encrypt the device binding information using the device private key through the device to be verified to obtain the device private key signature;
[0033] The third module is used to obtain a corresponding device public key list according to the device binding information;
[0034] The fourth module is used to verify the device private key signature using the device public key list to generate a device identity authentication result corresponding to the device to be verified;
[0035] The fifth module is used to update the device public-private key pair corresponding to the device to be verified when the device identity authentication result shows that the device identity authentication is passed, store the device update public key contained in the device public-private key pair into the device public key list, and return the device update private key contained in the device public-private key pair and the device identity authentication result to the device to be verified.
[0036] On the other hand, an embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the device identity authentication method described above when executing the computer program.
[0037] On another aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device identity authentication method described above is implemented.
[0038] The present application provides a device identity authentication method, apparatus, electronic device and storage medium, which obtains the device binding information corresponding to the device to be verified, encrypts the device binding information with the device private key through the device to be verified, obtains the device private key signature, verifies the device private key signature with the device public key list, generates the device identity authentication result corresponding to the device to be verified, and updates the device public-private key pair corresponding to the device to be verified when the device identity authentication result shows that the device identity authentication is passed. The present application can realize effective device identity authentication, and update the device public-private key pair after the device identity authentication is passed, thereby reducing the risk of device identity fraud and improving data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a flow chart of a device identity authentication method provided in an embodiment of the present application;
[0040] Figure 2 is a flowchart of step S104 in an embodiment of the present application;
[0041] Figure 3 is a flowchart of step S105 in an embodiment of the present application;
[0042] Figure 4 is a flowchart of step S202 in an embodiment of the present application;
[0043] Figure 5 is another flow chart of a device identity authentication method provided by an embodiment of the present application;
[0044] Figure 6 is another flow chart of a device identity authentication method provided by an embodiment of the present application;
[0045] Figure 7It is a schematic diagram of the connection between the device to be verified and each platform in the embodiment of the present application;
[0046] Figure 8 It is a schematic diagram of data interaction between the device to be verified and each platform in an embodiment of the present application;
[0047] Fig. 9 It is a structural diagram of a device identity authentication device provided in an embodiment of the present application;
[0048] Fig.10 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, 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.
[0050] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0052] First, some nouns involved in this application are analyzed:
[0053] Asymmetric key: It consists of a pair of asymmetric public key and private key. The public key is open to the public, and the private key is kept secret by the individual. If you encrypt with one key, you can only decrypt with the other key. They are cryptographically related to each other. The public key can be distributed to anyone, while the private key must be securely protected and can only be used by trusted people.
[0054] SM2: An asymmetric encryption algorithm based on the public key cryptographic algorithm standard of elliptic curve cryptography. Its secret key length is 256 bits. It includes digital signatures, key exchange and public key encryption. It can meet the security requirements of identity authentication, data integrity and authenticity in various cryptographic applications. For key exchange in commercial cryptographic applications, it can meet the communication between the two parties through 2 or 3 information transmission processes to calculate a shared session key determined by both parties.
[0055] Token: In computer science and network security, a token usually refers to a token used for authentication and authorization. This token is used to verify the identity of users and grant them permission to access specific resources or perform specific operations.
[0056] SDK (software development kit): refers to a software development kit, which is a set of tools provided by the manufacturer of a hardware platform, operating system (OS) or programming language. SDK can assist software developers in creating applications for specific platforms, systems or programming languages. A basic SDK usually consists of a compiler, debugger and application programming interface (API), but may also include other content, such as: documentation, libraries, runtime / development environment, testing / analysis tools, network protocols, etc.
[0057] WSS: WSS protocol refers to WebSocket over SSL / TLS protocol, which is a secure WebSocket protocol based on SSL / TLS security. The WSS protocol uses SSL / TLS encryption to protect data from malicious theft and tampering during communication.
[0058] Hash algorithm: Hash, generally translated as hash, hash, or transliterated as hash, is to transform an input of arbitrary length (also called pre-image) into an output of fixed length through a hash algorithm, and the output is the hash value. This conversion is a compression mapping, that is, the space of hash values is usually much smaller than the space of inputs, and different inputs may hash to the same output, so it is impossible to determine the unique input value from the hash value. Simply put, it is a function that compresses a message of arbitrary length into a message digest of a fixed length.
[0059] With the rapid development and widespread application of the Internet of Things, the identity authentication of IoT devices has become increasingly important. Device identity authentication is the basis for ensuring the safe operation of IoT devices and can effectively prevent illegal devices from accessing the network. IoT devices may store a large amount of user privacy data, enterprise management data and other important data. If effective device identity authentication cannot be performed, it is easy for others to invade the network and impersonate the device identity, resulting in the leakage of important data and data security risks.
[0060] Devices with the function of making phone calls can be connected to the Internet and make calls. They can be in the form of smart speakers, smart doorbells, smart door locks, smart access control, etc., freeing people's hands to make calls and making it more convenient for the elderly at home. However, while making people's lives more convenient, if the device identity authentication cannot be effectively performed, it may bring the risk of being impersonated by illegal elements for telecommunications fraud and marketing. Therefore, it is necessary to verify the device identity when the device is connected to the call platform. First, to ensure that the device has been bound to the call service, and second, to prevent the device from being counterfeited, especially counterfeited in batches, and connected to the call platform in batches, which brings the risk of illegal marketing and telecommunications fraud by criminals.
[0061] Based on this, the embodiments of the present application propose a device identity authentication method, apparatus, electronic device and storage medium, which can achieve effective device identity authentication, reduce the risk of device identity fraud, and improve data security.
[0062] Reference Figure 1 , Figure 1 This is an optional flowchart of a device identity authentication method provided in an embodiment of the present application. The method may include but is not limited to steps S101 to S105:
[0063] Step S101, in response to a user's binding operation on a device to be verified in a client, obtaining device binding information corresponding to the device to be verified;
[0064] Step S102, the device to be verified uses the device private key to encrypt the device binding information to obtain the device private key signature;
[0065] Step S103, obtaining a corresponding device public key list according to the device binding information;
[0066] Step S104, verifying the device private key signature using the device public key list to generate a device identity authentication result corresponding to the device to be verified;
[0067] Step S105, when the device identity authentication result shows that the device identity authentication is passed, the device public-private key pair corresponding to the device to be verified is updated, the device update public key contained in the device public-private key pair is stored in the device public key list, and the device update private key contained in the device public-private key pair and the device identity authentication result are returned to the device to be verified.
[0068] In step S101 of some embodiments, the user binds the device to be verified in the client, and the centralized service platform responds to the device binding operation and generates corresponding device binding information. The device binding information may include but is not limited to device identification, device service token and user account information, wherein the device service token is the device binding Token. Then, the device binding information is sent to the centralized capability platform through the centralized service platform.
[0069] In step S102 of some embodiments, optionally, the device to be verified includes a device SDK, and the device SDK uses a device private key to encrypt the device identifier and the device binding Token in the device binding information to obtain a device private key signature.
[0070] In some embodiments, the transmission public key of the centralized capability platform is pre-set in the device SDK of the device to be verified. The device SDK uses the transmission public key to encrypt the device private key signature and transmits it to the centralized capability platform. The centralized capability platform obtains the device private key signature and uses the transmission private key paired with the transmission public key to decrypt the encrypted device private key signature to obtain the device private key signature.
[0071] In step S103 of some embodiments, the centralized capability platform obtains a device public key list corresponding to the device identifier according to the device identifier in the device binding information, and the device public key list stores the device public key currently in use and the historical device public keys used by the device identifier.
[0072] In some embodiments, reference Figure 2 , Figure 2 This is an optional flowchart of step S104 in the embodiment of the present application. Step S104 may include but is not limited to steps S201 to S202:
[0073] Step S201, determining a device public key corresponding to the device identifier from a device public key list according to the device binding information;
[0074] Step S202: Use the device public key to verify the device private key signature, verify the device identity and device activation service of the device to be verified, and obtain the device identity authentication result.
[0075] In step S201 of some embodiments, the centralized capability platform determines the device public key in use corresponding to the device identifier from the device public key list based on the device identifier in the device binding information. Optionally, there is only one device public key in use in the device public key list, and the rest are historical device public keys, and the status of the historical device public keys is set to unusable.
[0076] In step S202 of some embodiments, the device public key is used to verify the device private key signature. Exemplarily, the device public key is used to verify the signature value and original data corresponding to the device private key signature. A digest algorithm such as a hash algorithm is used to convert the original message into a message digest (Message Digest). The device public key is then used to decrypt the device private key signature to obtain a signature digest. The message digest and the signature digest are compared. If they are equal, it indicates that the device private key signature is valid, otherwise it is invalid.
[0077] In some embodiments, reference Figure 3 , Figure 3 This is an optional flowchart of step S105 in the embodiment of the present application. Step S105 may include but is not limited to steps S301 to S303:
[0078] Step S301, encrypting the device update private key using the device public key, and returning the encrypted device update private key to the device to be verified;
[0079] Step S302, decrypting the encrypted device update private key by using the device private key stored in the device to be verified, obtaining the device update private key and storing it, and generating a private key update instruction;
[0080] Step S303, obtaining a private key update instruction, and storing the device update public key into the device public key list according to the private key update instruction.
[0081] In some embodiments, the centralized capability platform uses the device public key to encrypt the device update private key, and then the centralized capability platform sends the encrypted device update private key to the device to be verified. The device to be verified uses the old private key (the above-mentioned device private key) to decrypt the new private key (the encrypted device update private key) to obtain the device update private key. After confirming that the private key has been updated, it generates a corresponding private key update instruction and sends the private key update instruction to the centralized capability platform.
[0082] In some embodiments, after the centralized capability platform receives the above-mentioned private key update instruction feedback from the device to be verified, it updates the device public key list. Specifically, the centralized capability platform stores the new public key (the above-mentioned device update public key) corresponding to the device updated private key into the device public key list, and sets the old public key (the above-mentioned device public key) to an unusable state, and sets the new public key to an in-use state.
[0083] In some embodiments, reference Figure 4 , Figure 4 This is an optional flowchart of step S202 in the embodiment of the present application. Step S202 may include but is not limited to steps S401 to S404:
[0084] Step S401, using the device public key to decrypt the device private key signature to obtain the device identification and device service token;
[0085] Step S402, obtaining device identity information from the device manufacturer platform, verifying the device identifier according to the device identity information, and determining a first authentication result;
[0086] Step S403, obtaining device service information, verifying the device service token according to the device service information, and determining a second authentication result;
[0087] Step S404: Generate a device identity authentication result according to the first authentication result and the second authentication result.
[0088] In some embodiments, the centralized capability platform uses the device public key to decrypt the device private key signature to obtain the device identifier and the device business token. Then, the centralized capability platform connects to the device manufacturer platform to obtain the device identity information sent by the device manufacturer platform. The device identity information includes the device identifiers corresponding to all devices produced by the device manufacturer platform. The device identifier is verified according to the device identity information to determine whether the device identifier is included in the device identity information. Assuming that the device identifier is not included in the device identity information, the first authentication result is determined to be identity authentication failure. Assuming that the device identifier is included in the device identity information, the first authentication result is determined to be identity authentication success.
[0089] In some embodiments, the device service information includes specific content information of various services, such as service functions, service numbers, service scopes, service identifiers, etc. The centralized capability platform performs service activation verification on the device-bound Token (the above-mentioned device service token) based on the device service information. Specifically, the centralized capability platform verifies the device-bound Token based on the device service information to confirm whether the device to be verified has activated the corresponding service. When it is confirmed that the device to be verified has activated the corresponding service, the second authentication result is determined to be that the service has been activated. Otherwise, the second authentication result is determined to be that the service has not been activated.
[0090] In some embodiments, optionally, when the first authentication result is that the identity authentication is passed and the second authentication result is that the service is activated, the device identity authentication result is determined to be that the device identity authentication is passed; otherwise, the device identity authentication result is determined to be that the device identity authentication is not passed.
[0091] In some embodiments, reference Figure 5 , Figure 5 This is another optional flow chart of a device identity authentication method provided in an embodiment of the present application. The device identity authentication method may further include steps S501 to S503:
[0092] Step S501, after storing the device update public key in the device public key list, a public key update instruction is generated;
[0093] Step S502, feeding back the public key update instruction to the device to be verified, and deleting the device private key through the device to be verified;
[0094] Step S503, when the device identity authentication result shows that the device identity authentication is passed, the device to be authenticated is determined as a verified device, and a device service execution instruction corresponding to the verified device is generated according to the device binding information, and the device service execution instruction is returned to the verified device.
[0095] In some embodiments, after the centralized capability platform stores the device updated public key in the device public key list and sets the device updated public key to be in use, it generates a public key update instruction and sends the public key update instruction to the device to be verified. After receiving the public key update instruction, the device to be verified deletes the old private key (the above-mentioned device private key).
[0096] In some embodiments, the centralized capability platform returns a device service execution instruction to the verified device, and the device service execution instruction is used to control the verified device to execute relevant service functions corresponding to the device-bound Token.
[0097] In some embodiments, reference Figure 6 , Figure 6 This is another optional flow chart of a device identity authentication method provided in an embodiment of the present application. Before executing the above step S102, the method may also include but is not limited to steps S601 to S602:
[0098] Step S601, sending device binding information to the device manufacturer platform through the client;
[0099] Step S602: Generate a binding encryption instruction based on the device binding information through the device manufacturer platform, and send the binding encryption instruction and the device binding information to the device to be verified, wherein the binding encryption instruction is used to control the device to be verified to encrypt the device binding information.
[0100] In some embodiments, the centralized service platform synchronously sends the device binding information to the device manufacturer platform. The device manufacturer platform generates a binding encryption instruction based on the device binding information and sends the binding encryption instruction and the device binding information to the device to be verified. The device manufacturer platform and the device to be verified can communicate through a long link method of protocols such as WSS.
[0101] In some embodiments, reference Figure 7 and Figure 8 , Figure 7 is an optional schematic diagram of the connection between the device to be verified and each platform in the embodiment of the present application, Figure 8 It is an optional data interaction diagram between the device to be verified and each platform in the embodiment of the present application, wherein the client is connected to the centralized business platform, the user performs the business binding operation of the device to be verified on the client, generates a business binding instruction, and sends the business binding instruction to the centralized business platform. The centralized business platform generates device binding information, the centralized business platform is connected to the device manufacturer platform and the centralized capability platform, and the device binding information is synchronously sent to the device manufacturer platform and the centralized capability platform. The device manufacturer platform is connected to the centralized capability platform and the device identity information is sent to the centralized capability platform. The device manufacturer platform is connected to the device to be verified and the device binding information and binding encryption instructions are sent to the device to be verified. The device to be verified is connected to the centralized capability platform and the device private key signature is sent to the centralized capability platform. The centralized capability platform decrypts and verifies the device private key signature. After the verification is passed, a new device public-private key pair is generated and the device update private key is sent to the device to be verified.
[0102] In some embodiments, the device to be verified may be a smart device with multiple business functions. Optionally, assuming that the device to be verified is a smart device with a phone call service, the corresponding centralized capability platform may be the operator's call capability platform, and the centralized business platform may be the operator's centralized business account management platform.
[0103] Exemplarily, a device identity authentication method provided in an embodiment of the present application is applied to perform device identity authentication, and the specific process is as follows:
[0104] In the first step, it is assumed that the device to be verified is a smart device with a screen, wherein each smart device with a screen SDK generates an initial asymmetric public-private key pair (asymmetric key algorithms such as SM2 can be used) by the smart device manufacturer's production line (device manufacturer platform) with a screen, and writes it into the device's updateable storage area when the device is produced. The device manufacturer platform synchronizes the device public key to the operator's call capability platform, and the operator's call capability platform saves an updateable list of device public keys corresponding to each smart device with a screen (the above-mentioned device public key list);
[0105] In the second step, the user binds the device to be verified on the client and activates the call service on the device to be verified. In response to the user's binding operation in the client, the operator's centralized service account management platform generates a device binding token corresponding to this user binding operation, and binds the device binding token with the user account information and device identifier to obtain the device binding information;
[0106] In the third step, the operator's centralized service account management platform synchronously sends the device binding information to the device manufacturer platform and the operator's call capability platform;
[0107] In the fourth step, the device manufacturer platform transmits the binding encryption instruction and device binding information to the device to be verified. The device manufacturer platform and the device to be verified communicate through a long link method such as WSS.
[0108] Step 5: The device SDK in the device to be verified obtains the device binding information, encrypts the device binding information with the device private key, obtains the device private key signature, and the device SDK encrypts the device private key signature with the asymmetric public key of the operator's call capability platform. The private key of the operator's call capability platform is only stored inside the capability platform. The asymmetric public key of the operator's call capability platform is preset in the device SDK. The device to be verified sends the encrypted device private key signature to the operator's call capability platform.
[0109] Step 6: The operator's call capability platform receives the encrypted device private key signature, decrypts it using the platform's asymmetric private key, obtains the device private key signature, and uses the device ID in the device binding information to find the list of saved device public keys. It uses the device's corresponding public key to verify the signature to verify the device identity and the device binding Token to confirm that the device has activated the corresponding service.
[0110] Step 7: After verification, the operator's call capability platform generates a new device asymmetric public and private key pair;
[0111] Step 8: The operator's call capability platform uses the old device public key to encrypt the new device private key and sends it to the verified device. The verified device uses the old device private key to decrypt the new device private key.
[0112] The ninth step is to verify that the new device private key is saved by the device to replace the old device private key. The verification device sends the private key update instruction to the operator's call capability platform. The private key update instruction is used to feedback the operator's call capability platform that the device private key update is successful.
[0113] Step 10: After receiving the private key update instruction, the operator's call capability platform updates the device public key list, stores the new device public key in the device public key list, and sends the public key update instruction to the verified device; the public key update instruction is used to feedback the successful public key update on the verified device platform side;
[0114] Step 11: After verifying that the device receives the public key update instruction, delete the old device private key;
[0115] In the twelfth step, when the device that has passed the verification is powered off and restarted, the new device private key still exists. The verified device uses the new private key signature to register and communicate with the operator's call capability platform. If the user rebinds / activates / changes the service of the verified device, the operator's centralized service account management platform will generate a new device binding Token.
[0116] In some embodiments, the operator's centralized service account management platform needs to connect to multi-brand manufacturer equipment, and the device Token needs to be transmitted to the device by each device manufacturer platform. In this scenario, the centralized capability platform is controlled by the device operator and has a higher security level, while smart devices need to be connected to different device manufacturer platforms. Compared with the centralized capability platform, each device manufacturer platform has a higher risk of information leakage and a lower security level. Based on this, the above-mentioned device identity authentication method uses the device private key to sign and verify the device identity, and specifically adds a device update mechanism that updates the private key after the device completes identity authentication and registers to connect to the centralized capability platform, which greatly reduces the risk of counterfeit devices impersonating others to access the centralized capability platform.
[0117] A device identity authentication method provided in an embodiment of the present application uses a device binding Token to verify the device, which can play a role in verifying that the device has opened the corresponding service. On the basis of the device signing with an asymmetric private key, a step is added in which a high-security level intensive capability platform updates the private key for the device. When the device is connected to multiple platforms, especially multiple platforms with different security levels, a device private key update mechanism is adopted, and the verified devices will update the device private key in real time. Therefore, even if a batch of device information leakage occurs on a low-security platform, it will not be counterfeited by a counterfeit device to impersonate the identity to access the intensive capability platform for communication, reducing the risk of illegal devices impersonating the high-security platform to access.
[0118] Reference Fig. 9 , Fig. 9 : is an optional structural diagram of a device identity authentication device provided in an embodiment of the present application. The device can be used to implement the above-mentioned device identity authentication method. The device may include:
[0119] The first module is used to obtain device binding information corresponding to the device to be verified in response to the user's binding operation on the device to be verified in the client; the device binding information includes a device identifier and a device service token;
[0120] The second module is used to encrypt the device binding information using the device private key through the device to be verified to obtain the device private key signature;
[0121] The third module is used to obtain the corresponding device public key list according to the device binding information;
[0122] The fourth module is used to verify the device private key signature using the device public key list to generate a device identity authentication result corresponding to the device to be verified;
[0123] The fifth module is used to update the device public-private key pair corresponding to the device to be verified when the device identity authentication result shows that the device identity authentication is passed, store the device update public key contained in the device public-private key pair into the device public key list, and return the device update private key contained in the device public-private key pair and the device identity authentication result to the device to be verified.
[0124] The specific implementation of the device identity authentication apparatus is substantially the same as the specific implementation of the device identity authentication method described above, and will not be described in detail herein.
[0125] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above device identity authentication method when executing the computer program. The electronic device can be any intelligent terminal including a vehicle-mounted computer.
[0126] See also Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0127] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0128] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the device identity authentication method of the embodiment of this application;
[0129] Input / output interface 903, used to implement information input and output;
[0130] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0131] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0132] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0133] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned device identity authentication method is implemented.
[0134] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0135] The embodiment of the present application provides a device identity authentication method, apparatus, electronic device and storage medium, which obtains the device binding information corresponding to the device to be verified, encrypts the device binding information with the device private key through the device to be verified, obtains the device private key signature, verifies the device private key signature with the device public key list, generates a device identity authentication result corresponding to the device to be verified, and updates the device public-private key pair corresponding to the device to be verified when the device identity authentication result shows that the device identity authentication is passed. The present application can realize effective device identity authentication, and update the device public-private key pair after the device identity authentication is passed, thereby reducing the risk of device identity fraud and improving data security.
[0136] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0137] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0138] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0139] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0140] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0141] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0142] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0143] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0144] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0145] It should be appreciated that embodiments of the present invention can be implemented or enforced by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable memory. The above method can be implemented in a computer program using standard programming techniques-including a non-transitory computer-readable storage medium configured with a computer program, wherein the storage medium so configured causes the computer to operate in a specific and predefined manner-according to the methods and drawings described in the specific embodiments. Each program can be implemented in a high-level process or object-oriented programming language to communicate with a computer system. However, if necessary, the program can be implemented in an assembly or machine language. In any case, the language can be a compiled or interpreted language. In addition, the program can be run on a programmed ASIC for this purpose.
[0146] Further, the above methods can be implemented in any type of computing platform that is operably connected to a suitable computer, including but not limited to a personal computer, a minicomputer, a mainframe, a workstation, a network or distributed computing environment, a separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, etc. Various aspects of the present invention can be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, an optical read and / or write storage medium, RAM, ROM, etc., so that it can be read by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the process described herein. In addition, the machine-readable code, or portions thereof, can be transmitted via a wired or wireless network. When such media includes instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor, the invention described in this embodiment includes these and other different types of non-transitory computer-readable storage media.
[0147] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0148] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A device identity authentication method, characterized in that: The method comprises the following steps: In response to a user's binding operation on a device to be verified in a client, obtaining device binding information corresponding to the device to be verified; the device binding information includes a device identifier and a device service token; The device to be verified uses a device private key to encrypt the device binding information to obtain a device private key signature; According to the device binding information, obtain the corresponding device public key list; Using the device public key list to verify the device private key signature, and generate a device identity authentication result corresponding to the device to be verified; When the device identity authentication result shows that the device identity authentication is passed, the device public-private key pair corresponding to the device to be verified is updated, the device update public key contained in the device public-private key pair is stored in the device public key list, and the device update private key contained in the device public-private key pair and the device identity authentication result are returned to the device to be verified.
2. The device identity authentication method according to claim 1, characterized in that: The step of using the device public key list to verify the device private key signature to generate a device identity authentication result corresponding to the device to be verified specifically includes: Determine, according to the device binding information, a device public key corresponding to the device identifier from the device public key list; The device public key is used to verify the device private key signature, verify the device identity and device activation service of the device to be verified, and obtain the device identity authentication result.
3. The device identity authentication method according to claim 2, characterized in that: When the device identity authentication result shows that the device identity authentication is passed, the device public-private key pair corresponding to the device to be authenticated is updated, the device update public key included in the device public-private key pair is stored in the device public key list, and the device update private key included in the device public-private key pair and the device identity authentication result are returned to the device to be authenticated. This step specifically includes: Encrypting the device update private key using the device public key, and returning the encrypted device update private key to the device to be verified; Decrypting the encrypted device update private key by using the device private key stored in the device to be verified, obtaining and storing the device update public key, and generating a private key update instruction; The private key update instruction is obtained, and according to the private key update instruction, the device update public key is stored in the device public key list.
4. The device identity authentication method according to claim 1, characterized in that: The method further comprises: After storing the device update public key in the device public key list, generating a public key update instruction; The public key update instruction is fed back to the device to be verified, and the device private key is deleted through the device to be verified.
5. The device identity authentication method according to claim 2, characterized in that: Before executing the step of encrypting the device binding information by using the device to be verified with a device private key to obtain a device private key signature, the method further includes: Sending the device binding information to the device manufacturer platform through the client; The device manufacturer platform generates a binding encryption instruction according to the device binding information, and sends the binding encryption instruction and the device binding information to the device to be verified; the binding encryption instruction is used to control the device to be verified to encrypt the device binding information.
6. The device identity authentication method according to claim 5, characterized in that: The step of using the device public key to verify the device private key signature, verifying the device identity and device activation service of the device to be verified, and obtaining the device identity authentication result specifically includes: Decrypting the device private key signature using the device public key to obtain the device identification and the device service token; Acquire device identity information from the device manufacturer platform, verify the device identifier according to the device identity information, and determine a first authentication result; Acquire device service information, verify the device service token according to the device service information, and determine a second authentication result; The device identity authentication result is generated according to the first authentication result and the second authentication result.
7. The device identity authentication method according to claim 1, characterized in that: The method further comprises: When the device identity authentication result shows that the device identity authentication is passed, the device to be authenticated is determined as a verified device, and a device service execution instruction corresponding to the verified device is generated according to the device binding information, and the device service execution instruction is returned to the verified device.
8. A device identity authentication device, characterized in that: The device comprises: The first module is used to obtain device binding information corresponding to the device to be verified in response to the user's binding operation on the device to be verified in the client; the device binding information includes a device identifier and a device service token; The second module is used to encrypt the device binding information using the device private key through the device to be verified to obtain the device private key signature; The third module is used to obtain a corresponding device public key list according to the device binding information; The fourth module is used to verify the device private key signature using the device public key list to generate a device identity authentication result corresponding to the device to be verified; The fifth module is used to update the device public-private key pair corresponding to the device to be verified when the device identity authentication result shows that the device identity authentication is passed, store the device update public key contained in the device public-private key pair into the device public key list, and return the device update private key contained in the device public-private key pair and the device identity authentication result to the device to be verified.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the device identity authentication method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the device identity authentication method according to any one of claims 1 to 7 is implemented.
