Method and equipment for secure access to IoT devices in digital RMB consumption scenarios

By writing identity information and authenticating during the production stage of IoT devices, combined with encrypted transmission and key dispersion technology, the problem of fast and secure access and identity authentication of IoT devices in a shared environment is solved, and inter-device communication is achieved. Secure data sharing and identity authentication.

CN115102710BActive Publication Date: 2024-08-27BEIJING NAT DIGITAL FINANCIAL TECH TESTING CENT CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210488507.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-06
Publication Date
2024-08-27
Estimated Expiration
2042-05-06

AI Technical Summary

Technical Problem

In the dynamic environment of shared devices, how can consumer-grade IoT devices be quickly and securely added to the platform, and provide safe and reliable identity authentication, security and access control for digital RMB transactions between people and devices, and between devices? challenges.

Method used

By writing identity information in the production stage of IoT devices, authenticating them on the management platform, establishing connections, using encrypted transmission methods to achieve data sharing between devices, using device serial number conventions and key dispersion technology, support Asymmetric and symmetric encryption algorithms complete device secure access and identity authentication.

Benefits of technology

It realizes fast and safe access to the management platform for IoT devices, prevents man-in-the-middle attacks, ensures safe data sharing between devices, and provides safe and reliable identity authentication, which is suitable for dynamic environments of shared devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115102710B
    Figure CN115102710B
Patent Text Reader

Abstract

A secure access method and device for IoT devices in digital RMB consumption scenarios. A secure access method for IoT devices and an IoT device using the same. The production method of the IoT device includes: when producing the IoT device, writing identity information indicating that the IoT device is produced by a specific device manufacturer into a secure storage area of ​​the IoT device in a secure environment, and storing the content of the written identity information in correspondence with the information of the device manufacturer on a management platform. The identity information also preferably includes the performance parameters of the IoT device. The present invention helps the device to safely import the device key / device certificate through the device serial number agreement during the device production stage, which can not only quickly and securely connect the device to the management platform, but also realize the secure sharing of data between devices through the encrypted transmission method of the communication session key to prevent interception by man-in-the-middle attacks; even in the dynamic environment of shared devices, new devices can be quickly and securely added to the management platform for easy management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital RMB and Internet of Things technology, and specifically to a method for secure access to an Internet of Things device and an Internet of Things device using the same. Background Art

[0002] Digital RMB (e-CNY, DC / EP) is a digital legal tender issued by the People's Bank of China. Because it has the attributes of both digital RMB and legal tender, it can be deeply integrated with the Internet of Things to provide payment and other financial services for the interaction between people and devices, and between devices.

[0003] In order to facilitate user use, IoT device manufacturers basically configure WIFI, NB-IoT and other types of network access for devices. Because there are too many different types of devices that can connect to the network, the platform should give more consideration to the network access control of such devices. In addition, affected by the current sharing economy, many IoT devices are designed for leasing rather than purchase, and device authorization is restricted to only allow tenants to use it at a specific time. Shared leasing makes access control decisions more complicated. In view of the key security features of the digital RMB and its use in sensitive financial services, the digital RMB itself adopts strict key security authentication control, but consumer-grade IoT devices are unlikely to have a security authentication process, resulting in the possibility of harm the more connected devices.

[0004] When designing the consumer-grade Internet of Things, the digital RMB must be able to alleviate the following existing problems: how to quickly and securely add new devices to the platform in a dynamic environment of shared devices; how to provide secure and reliable identity authentication for digital RMB transactions between people and devices, and between devices. Therefore, how to securely authenticate and access devices in the consumer-grade Internet of Things is a technical problem that technicians in this field need to solve urgently. Summary of the invention

[0005] In view of this, the main purpose of the present invention is to provide a secure access method for an Internet of Things device and an Internet of Things device using the same, in order to at least partially solve the above technical problems.

[0006] In order to achieve the above object, as a first aspect of the present invention, a method for producing an Internet of Things device is provided, comprising the following steps:

[0007] When producing an IoT device, identity information indicating that the IoT device is produced by a specific device manufacturer is written into the secure storage area of ​​the IoT device in a secure environment, and the content of the written identity information is stored in correspondence with the information of the device manufacturer on a management platform.

[0008] As a second aspect of the present invention, there is also provided an Internet of Things device produced by the method for producing the Internet of Things device as described above.

[0009] As a third aspect of the present invention, a method for accessing an Internet of Things device is also provided, comprising the following steps:

[0010] Transmitting the identity information of the IoT device to a management platform via a communication device;

[0011] The management platform authenticates the IoT device and establishes a connection with it if the authentication is successful;

[0012] The management platform encrypts the user account, communication key and / or communication key usage period parameters and sends them to the IoT device, and establishes a connection with the IoT device.

[0013] As a fourth aspect of the present invention, a method for identity authentication during digital RMB payment of an Internet device is also provided, comprising the following steps:

[0014] (I) For devices using asymmetric encryption

[0015] The first device sends a device authentication request to the second device;

[0016] The second device returns a device authentication response to the first device;

[0017] The first device signs with the first device private key and submits the first device signature, the first device certificate, and the first device manufacturer root certificate to the second device;

[0018] The second device verifies the first device certificate and the first device signature;

[0019] The second device signs with the second device private key and submits the second device signature, the second device certificate, and the second device manufacturer root certificate to the first device to complete the device mutual recognition process;

[0020] (II) For devices using symmetric encryption

[0021] The first device sends a device authentication request to the second device;

[0022] The second device returns a device authentication response code to the first device;

[0023] The first device generates a first random number, encrypts the identity authentication information of the first device and the first random number using the first device key, and transmits the encrypted first device encrypted ciphertext to the second device;

[0024] The second device generates a second random number, uses the first device encrypted ciphertext and the second device key to encrypt the identity authentication information and the second random number of the second device, and transmits the encrypted second device encrypted ciphertext to the management platform;

[0025] The management platform uses the first device communication key (another corresponding key different from the first device key) to decrypt the first device encrypted ciphertext and verify the identity authentication information of the first device;

[0026] The management platform uses the second device communication key (another corresponding key different from the second device key) to decrypt the second device encrypted ciphertext and verify the identity authentication information of the second device;

[0027] The management platform uses the first device communication key to encrypt the identity authentication information and the second random number of the second device to obtain the first device ciphertext, uses the second device communication key to encrypt the identity authentication information and the first random number of the first device to obtain the second device ciphertext, and returns the first device ciphertext and the second device ciphertext to the second device;

[0028] The second device decrypts the information using the second device key;

[0029] The second device uses the first random number and the second random number to derive the session key K1, and returns the first device communication ciphertext and the identity authentication information of the second device encrypted with the session key K1 to the first device;

[0030] The first device uses the first device communication key to decrypt the identity authentication information of the second device to obtain the first identity information B1;

[0031] The first device uses the first random number and the second random number to derive a session key K1;

[0032] The first device uses the session key K1 to decrypt the identity authentication information of the second device to obtain the second identity information B2;

[0033] The first device determines whether the first identity information B1 is equal to the second identity information B2;

[0034] The first device uses the key K1 to complete communication transmission with the second device;

[0035] Wherein, both the first device and the second device are IoT devices produced by the IoT device production method as described above.

[0036] As the fifth aspect of the present invention, an Internet of Things device is also provided, which includes a memory and a processor, wherein the memory is used to store programs, and the processor is used to execute the program of the identity authentication method for digital RMB payment of the Internet device as described above stored in the memory.

[0037] As the sixth aspect of the present invention, a digital RMB payment system supporting the Internet of Things is also provided. The digital RMB payment system supporting the Internet of Things includes an electronic wallet at the payment end, an electronic wallet at the payment end, and a management platform, which can execute the program of the identity authentication method for digital RMB payment of the Internet device as described above.

[0038] Based on the above technical solutions, it can be seen that the secure access method for an IoT device of the present invention and the IoT device using the same have at least one of the following beneficial effects compared to the prior art:

[0039] The present invention helps the device to safely import the device key / device certificate through the device serial number agreement in the device production stage, which can not only quickly and safely connect the device to the management platform, but also realize the secure sharing of data between devices through the encrypted transmission mode of the communication session key to prevent the interception by man-in-the-middle attacks;

[0040] The IoT device of the present invention can quickly and safely add new devices to the management platform even in a dynamic environment where devices are shared, making management easier.

[0041] The IoT device security access method of the present invention can provide identity authentication and transaction authentication methods for digital RMB transactions between people and devices, and between devices, and provide secure and reliable identity authentication. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects achieved more clearly, the specific embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, it should be noted that the accompanying drawings described below are only drawings of exemplary embodiments of the present invention, and those skilled in the art can obtain drawings of other embodiments based on these drawings without creative work.

[0043] Figure 1 It is a schematic diagram of a device lifecycle authentication cycle of an Internet of Things device of the present invention;

[0044] Figure 2 is a device security boot flow chart of an Internet of Things device of the present invention;

[0045] Figure 3 is a flow chart of the IoT device production phase of the present invention;

[0046] Figure 4 is a flow chart of the IoT device access process of the present invention;

[0047] Figure 5 It is an authentication flow chart of an asymmetric device of the Internet of Things of the present invention;

[0048] Figure 6 It is an authentication flow chart of the symmetrical device of the Internet of Things of the present invention. DETAILED DESCRIPTION

[0049] Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in a variety of forms, and should not be construed as limiting the present invention to the embodiments set forth herein. On the contrary, providing these exemplary embodiments enables the present invention to be more comprehensive and complete, and is more convenient for fully conveying the inventive concept to those skilled in the art. The same reference numerals in the figures represent the same or similar elements, components or parts, and thus their repeated description will be omitted.

[0050] Under the premise of being consistent with the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.

[0051] In the description of specific embodiments, the features, structures, characteristics or other details described in the present invention are intended to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can practice the technical solutions of the present invention without one or more of the specific features, structures, characteristics or other details.

[0052] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0053] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0054] It should be understood that although the terms "first", "second", "third", etc. may be used herein to describe various devices, elements, components or parts, this should not be limited by these terms. These terms are used to distinguish one from another. For example, a first device may also be called a second device without departing from the essential technical solution of the present invention.

[0055] The term "and / or" or "and / or" includes any one and all combinations of one or more of the associated listed items.

[0056] Some terms used in this invention have the following meanings:

[0057] The Internet of Things (IoT) refers to the collection of any objects or processes that need to be monitored, connected, and interacted in real time through various devices and technologies such as information sensors, radio frequency identification technology, global positioning system, infrared sensors, laser scanners, etc., and the collection of various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, and location. Through various possible network accesses, ubiquitous connections between objects and objects and between objects and people are achieved, and intelligent perception, identification, and management of objects and processes are achieved. The Internet of Things is an information carrier based on the Internet, traditional telecommunications networks, etc. It allows all ordinary physical objects that can be independently addressed to form an interconnected network. The Internet of Things, or "Internet of Everything Connected", is an extended and expanded network based on the Internet. It combines various information sensing devices with the network to form a huge network, realizing the interconnection of people, machines, and objects at any time and any place.

[0058] The Internet of Things is an important part of the new generation of information technology. "The Internet of Things is the Internet of Things connecting everything." This has two meanings: first, the core and foundation of the Internet of Things is still the Internet, and it is an extended and expanded network based on the Internet; second, its user end extends and expands to any object to exchange information and communicate. Therefore, the definition of the Internet of Things is a network that connects any object to the Internet through information sensing devices such as radio frequency identification, infrared sensors, global positioning systems, laser scanners, etc., according to agreed protocols, to exchange information and communicate, so as to realize intelligent identification, positioning, tracking, monitoring and management of objects.

[0059] Narrow Band Internet of Things (NB-IoT) is an important branch of the Internet of Things. NB-IoT is built on cellular networks and consumes only about 180kHz of bandwidth. It can be directly deployed on GSM networks, UMTS networks or LTE networks to reduce deployment costs and achieve smooth upgrades. NB-IoT is an emerging technology in the IoT field that supports cellular data connections of low-power devices in wide area networks, also known as low-power wide area networks (LPWANs). NB-IoT supports efficient connections for devices with long standby times and high network connection requirements.

[0060] An encryption algorithm is an algorithm used to encrypt a file or data that was originally in plain text and make it unreadable. In this way, the purpose of protecting the file or data from being stolen or read by illegal persons can be achieved. The encrypted code is usually called "ciphertext".

[0061] Encryption algorithms are divided into symmetric encryption and asymmetric encryption. The encryption and decryption keys of symmetric encryption algorithms are the same, while the encryption and decryption keys of asymmetric encryption algorithms are different. Since symmetric encryption has only one key, its encryption processing time is much simpler and faster than asymmetric encryption. Asymmetric encryption usually has extremely complex encryption algorithms, security depends on algorithms and keys, and encryption and decryption efficiency is very low.

[0062] Common symmetric encryption algorithms include DES, 3DES, AES, etc., and common asymmetric algorithms include RSA, DSA, etc.

[0063] Symmetric encryption algorithm is an earlier encryption algorithm, also known as shared key encryption algorithm. In symmetric encryption algorithm, only one key is used, and both the sender and the receiver use this key to encrypt and decrypt data. This requires that both the encryptor and the decryptor must know the encryption key in advance.

[0064] Data encryption process: In a symmetric encryption algorithm, the data sender performs special encryption processing on the plaintext (original data) and the encryption key to generate a complex encrypted ciphertext for transmission.

[0065] Data decryption process: After the data recipient receives the ciphertext, if he wants to read the original data, he needs to use the encryption key and the inverse algorithm of the same algorithm to decrypt the encrypted ciphertext to restore it to readable plaintext.

[0066] Asymmetric encryption algorithm is also called public key encryption algorithm. It requires two keys, one is called public key, the other is called private key. Because encryption and decryption use two different keys, this algorithm is called an asymmetric encryption algorithm. If the public key is used to encrypt data, it can only be decrypted with the corresponding private key. If the private key is used to encrypt data, it can only be decrypted with the corresponding public key.

[0067] Key diversification refers to the technology of combining a key of a certain level with the characteristics of the next level to form a key of the next level. For example, in the 3DES algorithm, a double-length (a key length is 8 bytes) master key (MK) is used to disperse the data and derive a double-length DES encryption key (DK). The method for deriving the left half of DK is: 1. The rightmost 8 bytes of the dispersed data are used as input data; 2. MK is used as the encryption key; 3. MK is used to perform 3DES operation on the input data to obtain the left half of DK. The method for deriving the right half of DK is: 1. The rightmost 8 bytes of the dispersed data are negated as input data; 2. MK is used as the encryption key; 3. MK is used to perform 3DES operation on the input data to obtain the right half of DK. Finally, the left and right parts of DK are each 8 bytes combined into a double-length DK key, which is the 3DES key to be used obtained by dispersion. The present invention is not limited to the 3DES algorithm, and any technology that can achieve key diversification is included in the present invention.

[0068] Key derivation refers to generating a derived key from an initial value according to a key derivation function. For example, corresponding key derivation functions are defined in encryption algorithms such as SM2 and SM9. The present invention is not limited to these two encryption algorithms, and any technology that can achieve key derivation is included in the present invention.

[0069] Heartbeat transaction, in which the "heartbeat" refers to the periodic sending of information between the main server and each device in the monitoring of industrial equipment to determine the health status of the equipment and whether the other party is "alive", while the heartbeat transaction refers to the transaction conducted when the other party is judged to be a reliable trading partner through the heartbeat.

[0070] Digital currency refers to currency in digital form, which is mainly positioned at M0, which is equivalent to cash and coins in circulation. The "currency" here refers to real currency, not tokens. In other words, currency is a contract between owners regarding the right of exchange, which is based on a certain credit basis, which can be sovereign credit or group credit. Digital RMB is a type of digital currency, and the technical solution based on "digital currency" of the present invention particularly refers to digital RMB.

[0071] It should be noted that the "digital currency" referred to in this invention is essentially different from third-party electronic payment. "Digital currency" is real currency, legal tender in digital form, and is equivalent to paper money and coins, while the latter is only a payment tool that can display bills and balances, not currency.

[0072] The digital RMB is used as an example in the present invention. The "digital RMB" in the present invention is stored in the "digital RMB wallet" and is paid through the "digital RMB wallet". Therefore, the "digital RMB wallet" referred to in the present invention refers to a tool for storing and paying digital currency, which can be software, hardware or other forms. However, although the "digital RMB wallet" should have the functions of storage and payment, in practice it can be implemented by sub-devices or sub-modules, and each sub-device or module can partially implement part of the storage function or payment function. For example, for the digital RMB wallet at the entrance of the subway, it can only realize part of the payment function, and it needs to cooperate with the digital RMB wallet configured at the subway exit to realize the complete "digital RMB wallet". The "digital RMB wallet" referred to in the present invention covers software, APP or hardware devices of the "digital RMB wallet" that are fully realized and partially realized, such as mobile phone APP wallets, hardware wallets, wearable digital RMB payment devices, and Internet of Things digital RMB payment devices.

[0073] As a new type of legal tender, digital RMB has been piloted in many places in my country and will soon be promoted nationwide. The principle of digital RMB is to store a coin string through specific encryption-protected software and hardware, and to realize transactions through digital certificates and digital coin strings. In the existing digital RMB specifications, digital RMB needs to be recharged or applied for to obtain a coin string originally issued by a monetary management agency. When the digital RMB is traded, it is necessary to add various payment information (such as transaction subchain 1, balance voucher 1, transaction voucher 1, etc.) on the basis of the coin string and complete the encryption coding. When trading again, it is decoded on the basis of the last coding, and various payment information (such as transaction subchain 2, balance voucher 2, transaction voucher 2, etc.) is added again to complete the encryption coding. The encryption algorithm used in digital RMB usually requires very strict requirements and a high degree of confidentiality, such as SM1, SM2, SM3, SM4, SM9, etc., which adopt the national secret standard.

[0074] In recent years, with the construction of high-speed communication networks such as 5G in my country, the application of the Internet of Things in my country is booming. In order to facilitate user use, IoT device manufacturers basically configure WIFI (Wi-Fi), NB-IoT and other types of network access for devices. However, influenced by the current sharing economy, many IoT devices are designed for leasing rather than purchase, and device authorization is restricted to only allow tenants to use it at a specific time. Shared leasing makes access control decisions more complicated. How can the consumer-grade Internet of Things achieve fast and secure access in the dynamic environment of shared devices, and how to provide secure and reliable identity authentication for digital RMB transactions between people and devices and between devices, have become difficult problems that technicians in this field need to face.

[0075] After in-depth research and repeated experiments by the inventors, the secure access method for the Internet of Things device of the present invention and the Internet of Things device using the same have been obtained. The method helps the device to securely import the device key / device certificate through the device serial number agreement during the device production stage, which can not only quickly and securely access the device to the management platform, but also realize secure data sharing between devices through the encrypted transmission of communication session keys to prevent interception by man-in-the-middle attacks.

[0076] Specifically, the present invention discloses a method for producing an Internet of Things device, comprising the following steps:

[0077] When an IoT device is produced, identity information indicating that the IoT device is produced by a specific device manufacturer is written into the secure storage area of ​​the IoT device, and the content of the written identity information is stored in correspondence with the information of the device manufacturer on a management platform.

[0078] The identity information is, for example, a character string encoded according to a specific rule defined by the device manufacturer, such as specific letters and numbers (manufacturer number) representing the manufacturer + product serial number.

[0079] The identity information may also include some performance parameters of the IoT device, such as its data processing capability, processing rate, communication bandwidth, etc. In order to save space, several types may be pre-defined based on the computing capability that the device can support, i.e., the encryption processing capability, to distinguish the IoT devices. For example, 00 is used to indicate that the IoT device has a fast processing speed and can support asymmetric encryption technology, while 01 is used to indicate that the IoT device has a slow processing speed and can only support symmetric encryption technology. This does not mean that asymmetric encryption cannot be used at all, but that it takes too long to wait, which wears out the patience of consumers and makes it lack practicality.

[0080] Therefore, as a preferred solution, the identity information is encoded using the following specific rules customized by the device manufacturer: manufacturer number + device type + production batch + device number, so that it can be distinguished from other device manufacturers and fully match the characteristics of the Internet of Things device to give full play to its encryption and decryption capabilities.

[0081] In a preferred embodiment, the identity information is encoded using specific rules customized by the following equipment manufacturer: the cn of the equipment certificate is: 4-digit manufacturer number + 2-digit equipment type + batch number (4 digits) + year (2 digits) + week number (2 digits) + number (4 digits), such as: SD010202000121470001, where the batch and number are customized by the manufacturer.

[0082] Therefore, if Figure 1As shown, the life cycle of a device authentication includes, for example: device serial number determination (uniqueness definition); device secure boot; device authentication access and device key generation; device status monitoring; device key update; device deactivation; and device deregistration.

[0083] Among them, when producing IoT devices, more encrypted identity information such as manufacturer certificates, device initial root keys, etc. can also be written into the secure storage area of ​​the IoT device, and the content of the identity information and the information of the device manufacturer can be stored on the management platform in correspondence.

[0084] Wherein, in a preferred embodiment, Figure 2 As shown, the boot process (process of writing device certificates) for secure access to a device based on the device numbering rule of the present invention includes, for example:

[0085] The device obtains the unique device code, generates a key pair, and uses the key to sign the unique device code;

[0086] The device applies for device registration to the device management platform (such as ECPP device management platform);

[0087] The device management platform sends a device certificate request to the authentication platform (e.g., ECPP authentication platform);

[0088] The authentication platform completes the certificate issuance and returns the device certificate and root certificate to the device management platform;

[0089] The device management platform completes the device identity registration and returns the device certificate and root certificate to the device;

[0090] The device stores the certificate and root certificate in the local certificate store.

[0091] Among them, the device management platform supports national encryption algorithms and international algorithms, and you can choose one of these algorithms for docking. The main business process of writing certificates and device codes is as follows:

[0092] 1. Give the manufacturer certificate and server certificate to the manufacturer offline;

[0093] 2. The manufacturer issues an equipment certificate to the equipment through the manufacturer certificate;

[0094] 3. The cloud platform automatically selects the device communication authentication method and device key based on the device type and the business capabilities supported by the device. The device's security algorithm cannot be lower than the minimum security requirements of the business capabilities supported by the device. If the device's computing power cannot meet the requirements, its access will be prohibited.

[0095] More specifically, the production method of the Internet of Things device is performed offline or in a trusted environment, and specifically includes:

[0096] The management platform authorizes the device manufacturer and sends a trusted root certificate;

[0097] The device manufacturer generates a manufacturer key pair from this;

[0098] The management platform issues a manufacturer certificate to the equipment manufacturer;

[0099] The device manufacturer produces the device, assigns the device serial number to the device, and selects different processing steps based on different encryption algorithms:

[0100] (1) If the device supports asymmetric encryption algorithms

[0101] The device generates a device key pair and applies for a device certificate from the device manufacturer;

[0102] The device manufacturer issues a device certificate based on the manufacturer certificate, returns the device certificate, platform certificate and manufacturer certificate to the device, and asynchronously transmits the device serial number back to the management platform;

[0103] (2) If the device only supports symmetric algorithms

[0104] The device manufacturer signs the manufacturer certificate and applies for the device root key from the management platform;

[0105] The management platform verifies the manufacturer's certificate signature;

[0106] The management platform encrypts the root key using the manufacturer certificate public key and returns it to the device manufacturer;

[0107] The device manufacturer distributes the device initial key to the device serial number based on the root key, sends the device serial number and device initial key to the device, and asynchronously sends the device serial number to the platform authentication subsystem;

[0108] The device obtains a device communication subkey and a device authentication subkey based on the dispersion of the device initial key.

[0109] The invention also discloses an Internet of Things device produced by the above method.

[0110] Among them, the IoT device is, for example, a hardware wallet that supports IoT services, including: an SE encryption chip (equivalent to the above-mentioned secure storage area) for storing the key and public key of the hardware wallet; a processing module for executing the authentication, encoding and decoding operations and communication procedures of the hardware wallet. Due to the different computing capabilities of the processing modules, the processing speeds when using asymmetric encryption algorithms and symmetric encryption algorithms are different, so it is necessary to match different encryption algorithms according to their computing capabilities to avoid the encryption and decryption processing time being too long, affecting the user experience.

[0111] The present invention also discloses an access method for an Internet of Things device, comprising the following steps:

[0112] Transmitting the identity information of the IoT device to a management platform via a communication device;

[0113] The management platform determines whether the IoT device is an authenticated device, and if so, establishes a connection with it;

[0114] The management platform determines whether the IoT device is newly connected to the network. If so, the IoT device uses the identity information stored in its secure storage area for identity authentication;

[0115] The management platform determines whether the identity of the IoT device is legal. If it is, the management platform encrypts and sends the user account, communication key and / or communication key usage period parameter to the IoT device;

[0116] After verifying and confirming the sent data, the IoT device establishes a connection with the management platform through the sent data.

[0117] Among them, the communication device is, for example, a mobile phone, a customized client terminal or a tablet, which is equipped with an APP that can perform management tasks. The identity information of the IoT device can be obtained by manually entering the device number, scanning a QR code or device number, and reading the identity barcode on the device using NFC or other devices.

[0118] Among them, the method for the management platform to determine whether the IoT device is an authenticated device is, for example, reading the identity information stored in the secure storage area of ​​the IoT device, determining whether it complies with the equipment numbering rules of the designated equipment manufacturer, whether there is an equipment certificate of the designated equipment manufacturer, whether the equipment computing capability can meet the minimum business security requirements, etc.

[0119] Among them, the management platform determines whether the IoT device is newly connected to the network. For example, it can read whether a specific mark in the security storage area of ​​the IoT device is a non-networked mark, or read whether a communication key is stored in the security storage area of ​​the IoT device. If not, the encrypted data has not been sent yet.

[0120] Among them, the step in which the management platform determines whether the identity of the IoT device is legal can be combined with the previous steps of whether to authenticate the device and whether it is a new device. For some simple scenarios, multiple steps can be combined into one step, and it is only necessary to authenticate whether it is legal and newly connected to the network; for some complex scenarios, such as the situation where authentication devices are also managed in a hierarchical manner, it is necessary to first determine whether it is an authentication device, and then determine which version the authentication device should match and whether it has management authority.

[0121] The steps of the management platform determining whether the IoT device is newly connected to the network and whether the identity is legitimate include:

[0122] (1) If the device supports asymmetric encryption algorithms

[0123] The device determines whether it is the first time to access the network;

[0124] The device uses the device certificate to send a device access request to the management platform;

[0125] The management platform verifies the device status and identity;

[0126] The management platform generates a communication key and encrypts it with a device public key;

[0127] The management platform returns user information parameters and communication keys to the device to complete device access;

[0128] (2) If the device only supports symmetric algorithms

[0129] The device determines whether it is the first time to access the network;

[0130] The device generates verification information through the device authentication subkey;

[0131] The device transmits the device communication subkey to the management platform;

[0132] The management platform uses the device root key to derive subkeys in the same way to verify the device identity;

[0133] The management platform generates a new device root key and returns user information parameters and the new device root key to the device;

[0134] The device stores user information parameters and replaces the device root key.

[0135] Among them, in the step of establishing a connection between the IoT device and the management platform by sending data, the IoT device can initiate a device heartbeat to the management platform, and after the management platform receives the device heartbeat, the device access operation is completed.

[0136] In a preferred specific implementation, the user access process is as follows:

[0137] When the equipment leaves the factory, it is necessary to call the cloud platform (management platform) interface to store it in the cloud platform, or provide the corresponding equipment information and import it into the cloud platform;

[0138] Devices that meet the conditions can be bound to the merchant by scanning the QR code on the merchant APP; other devices need to scan the device SN QR code through the merchant APP to bind to the merchant;

[0139] When the device is connected to the cloud platform, the mqtt username, password and device transmission data encryption key symKey (symmetric key) are obtained by calling the interface. The cloud platform authenticates the device and determines whether it meets the computing capacity supported by the business. After the verification is passed, the device transmission data encryption key symKey is encrypted and transmitted with the device certificate public key;

[0140] When the device receives a response from the cloud platform interface, it needs to use the platform public key certificate to verify the data signature. After the signature verification is successful, the device stores the data encryption transmission key.

[0141] The present invention also discloses an identity authentication method for digital RMB payment of an Internet device, comprising the following steps:

[0142] (I) For devices using asymmetric encryption

[0143] The first device sends a device authentication request to the second device;

[0144] The second device returns a device authentication response to the first device;

[0145] The first device signs with the first device private key and submits the first device signature, the first device certificate, and the first device manufacturer root certificate to the second device;

[0146] The second device verifies the first device certificate and the first device signature;

[0147] The second device signs with the second device private key and submits the second device signature, the second device certificate, and the second device manufacturer root certificate to the first device to complete the device mutual recognition process;

[0148] (II) For devices using symmetric encryption

[0149] The first device sends a device authentication request to the second device;

[0150] The second device returns a device authentication response code to the first device;

[0151] The first device generates a first random number, encrypts the identity authentication information of the first device and the first random number using the first device key, and transmits the encrypted first device encrypted ciphertext to the second device;

[0152] The second device generates a second random number, uses the first device encrypted ciphertext and the second device key to encrypt the identity authentication information and the second random number of the second device, and transmits the encrypted second device encrypted ciphertext to the management platform;

[0153] The management platform uses the first device communication key (another corresponding key different from the first device key) to decrypt the first device encrypted ciphertext and verify the identity authentication information of the first device;

[0154] The management platform uses the second device communication key (another corresponding key different from the second device key) to decrypt the second device encrypted ciphertext and verify the identity authentication information of the second device;

[0155] The management platform uses the first device communication key to encrypt the identity authentication information and the second random number of the second device to obtain the first device ciphertext, uses the second device communication key to encrypt the identity authentication information and the first random number of the first device to obtain the second device ciphertext, and returns the first device ciphertext and the second device ciphertext to the second device;

[0156] The second device decrypts the information using the second device key;

[0157] The second device uses the first random number and the second random number to derive the session key K1, and returns the first device communication ciphertext and the identity authentication information of the second device encrypted with the session key K1 to the first device;

[0158] The first device uses the first device communication key to decrypt the identity authentication information of the second device to obtain the first identity information B1;

[0159] The first device uses the first random number and the second random number to derive a session key K1;

[0160] The first device uses the session key K1 to decrypt the identity authentication information of the second device to obtain the second identity information B2;

[0161] The first device determines whether the first identity information B1 is equal to the second identity information B2;

[0162] The first device uses the key K1 to complete communication transmission with the second device;

[0163] Wherein, both the first device and the second device are IoT devices produced by the IoT device production method as described above.

[0164] The present invention also discloses an Internet of Things device, which includes a memory and a processor, wherein the memory is used to store programs, and the processor is used to execute the program of the identity authentication method for digital RMB payment of the Internet device as described above stored in the memory.

[0165] The present invention also discloses a payment system supporting the Internet of Things, which includes an electronic wallet at the payment end, an electronic wallet at the payment end, and a management platform, and can execute the program of the identity authentication method for digital RMB payment of the Internet device as described above.

[0166] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0167] Example 1

[0168] This application innovation is mainly aimed at the first three stages. This embodiment respectively demonstrates the settings and specific operation processes of the Internet of Things devices in the first three stages.

[0169] 1. Production stage

[0170] For unified management, an authentication management platform (ECPP authentication platform, platform authentication subsystem) can be established. The authentication management platform unifies the device naming rules, such as "manufacturer number + device type + production batch + device number", etc. The computing capabilities that the device can support can be further refined in the "device type", such as symmetric encryption algorithm or asymmetric encryption algorithm. Specific examples are:

[0171] The manufacturer issues a device certificate for the device through the manufacturer certificate. The cn of the device certificate is: 4-digit manufacturer number + 2-digit device type + batch number (4 digits) + year (2 digits) + week number (2 digits) + number (4 digits), such as: SD010202000121470001, where the batch and number are customized by the manufacturer.

[0172] The device types are defined in the following table:

[0173] Device Type Device Description Business Capabilities 01 Payment tablet Supports full functions such as face recognition, QR code, hardware wallet, refund, etc. 02 Scan code terminal Without hardware wallet 03 Scan code terminal Including WeChat, Alipay, digital RMB QR code, hardware wallet 04 Cloud Speaker With dynamic code sign 05 Cloud Speaker Without dynamic code card 06 Self-service equipment Involving hardware wallet redemption, etc.

[0174] The authentication management platform assigns manufacturer numbers and issues manufacturer certificates to device manufacturers offline or in a secure network environment.

[0175] The authentication management platform automatically selects the device communication authentication method and device key based on the device type and the business capabilities supported by the device. The device's security algorithm cannot be lower than the minimum security requirements of the business capabilities supported by the device. If the device's computing power cannot meet the requirements, its access is prohibited.

[0176] For example, if the computing capability of the device can support asymmetric algorithms such as RSA or SM2, the manufacturer issues a device certificate to each device using a manufacturer certificate. The device certificate contains information such as the manufacturer information and the device serial number.

[0177] If the device can only support symmetric algorithms such as 3DES, AES, and SM4, the manufacturer uses the manufacturer certificate to apply for the device's initial root key from the platform. The root key is subsequently used to distribute sub-keys such as device authentication keys and device encryption keys.

[0178] Specifically, Figure 3 As shown, the process of the IoT device production stage of this embodiment includes the following steps, wherein the entire process is in an offline or trusted environment:

[0179] The platform authentication subsystem authorizes device manufacturers.

[0180] The platform authentication subsystem sends the trusted root certificate to the device manufacturer.

[0181] The device manufacturer generates a manufacturer key pair from this.

[0182] The equipment manufacturer applies for a manufacturer certificate from the platform authentication subsystem.

[0183] The platform authentication subsystem issues a manufacturer certificate to the device manufacturer.

[0184] The equipment manufacturer sets the equipment serial number in batches, produces the equipment, and assigns the equipment serial number to the equipment.

[0185] The device selects different branches based on different encryption algorithms:

[0186] (1) If the device supports asymmetric encryption algorithms

[0187] The device generates a device key pair.

[0188] The device applies for a device certificate from the device manufacturer.

[0189] The device manufacturer issues the device certificate based on the manufacturer certificate.

[0190] The device manufacturer returns the device certificate, platform certificate (primary root certificate), and manufacturer certificate (secondary root certificate) to the device.

[0191] The device manufacturer also asynchronously transmits the device serial number back to the platform authentication subsystem.

[0192] (2) If the device only supports symmetric algorithms

[0193] The device manufacturer first signs the manufacturer certificate.

[0194] The device manufacturer applies for the device root key from the platform authentication subsystem.

[0195] The platform authentication subsystem verifies the manufacturer's signature.

[0196] The platform authentication subsystem uses the manufacturer certificate public key to encrypt the root key and returns it to the device manufacturer.

[0197] The device manufacturer distributes the device initial key based on the root key and the device serial number.

[0198] The device manufacturer sends the device serial number and device initial key to the device, and asynchronously sends the device serial number to the platform authentication subsystem.

[0199] The device obtains a device communication subkey and a device authentication subkey based on the dispersion of the device initial key.

[0200] (II) Device Security Access Phase

[0201] The user uses the authentication management platform operation APP (platform APP) to scan the device number QR code, bind the user information and device, and send it to the authentication management platform (device management platform, platform authentication subsystem).

[0202] After the device starts to connect to the network automatically, it will determine whether it is newly connected to the network. If it is not, it will use the device certificate / device root key to initiate a device access request to the authentication management platform. The authentication management platform verifies whether the device identity is legitimate. After the verification is passed, the device parameters such as user account, communication key, and communication key validity period will be encrypted and sent down.

[0203] After the device verifies the legitimacy and integrity of the data source issued by the authentication management platform, it stores information such as device parameters and user parameters in a secure area. The device initiates a device heartbeat transaction to the authentication management platform. After the authentication management platform receives the device heartbeat, the device access operation is completed.

[0204] Specifically, Figure 4 As shown, the IoT device access process of this embodiment includes the following steps:

[0205] The user uses the platform APP (authentication management platform operation APP) to scan the device number on the device.

[0206] The platform APP applies to the device management platform (authentication management platform) to bind the device based on user information and device serial number.

[0207] The device management platform verifies the device inventory status.

[0208] The device management platform returns the device binding result to the platform APP.

[0209] The device selects different branches based on different encryption algorithms:

[0210] (1) If the device supports asymmetric encryption algorithms

[0211] The device determines whether it is the first time to access the network.

[0212] The device uses the device certificate to send a device access request to the device management platform.

[0213] The device management platform verifies device status and identity.

[0214] The device management platform generates a communication key and encrypts it with the device public key.

[0215] The device management platform returns user information parameters and communication keys to the device to complete device access.

[0216] (2) If the device only supports symmetric algorithms

[0217] The device determines whether it is the first time to access the network.

[0218] The device generates verification information through the device authentication subkey.

[0219] The device transmits the device communication subkey to the device management platform.

[0220] The device management platform uses the device root key to disperse sub-keys in the same way to verify the device identity.

[0221] The device management platform generates a new device root key.

[0222] The device management platform returns user information parameters and a new device root key to the device.

[0223] The device stores user information parameters and replaces the root key.

[0224] The device returns device access completion information to the device management platform.

[0225] (III) Identity recognition stage during digital RMB payment transactions

[0226] By establishing the identity identification foundation of the device certificate or device symmetric key inside the device, you can set up security protection for secure communication, identity authentication and integrity, and transaction non-repudiation during the payment process. The device symmetric key needs to be assisted by the platform. Devices with device certificate capabilities can use certificates to complete offline authentication between devices.

[0227] (1) Figure 5 As shown in the figure, the authentication process of asymmetric devices

[0228] Device A sends a device authentication request to device B.

[0229] Device B returns a device authentication response to device A.

[0230] Device A signs with device private key PriA.

[0231] Device A submits Device A's signature, Device A's certificate, and Device A's manufacturer's root certificate to Device B.

[0232] Device B verifies the device A certificate and certificate chain, and verifies the device A signature.

[0233] Device B signs using device private key PriB.

[0234] Device B submits Device B's signature, Device B's certificate, and Device B's manufacturer's root certificate to Device A.

[0235] Device A returns device mutual recognition completion information to device B.

[0236] (2) Figure 6 As shown, the authentication process of symmetric devices

[0237] Device A sends a device authentication request to device B.

[0238] Device B returns a device authentication response code to device A.

[0239] Device A generates a random number Sa.

[0240] Device A encrypts the A identity authentication information and the random number Sa using the device A key, and returns the information to device B.

[0241] Device B generates a random number Sb.

[0242] Device B uses device A's communication ciphertext and device B's key to encrypt B's identity information and random number Sb, and returns the information to the device management platform.

[0243] The device management platform uses device A's communication key to decrypt device A's decrypted ciphertext.

[0244] The device management platform verifies the identity information of device A.

[0245] The device management platform uses device B's communication key to decrypt device B's decrypted ciphertext.

[0246] The device management platform verifies the identity information of device B.

[0247] The device management platform uses device A's communication key to encrypt device B's identity information and random number Sb.

[0248] The device management platform uses the device B communication key to encrypt the device A identity information and the random number Sa.

[0249] The device management platform returns the device A ciphertext and the device B ciphertext to device B.

[0250] Device B decrypts the message using the Device B communications key.

[0251] Device B uses Sa+Sb to derive session key K1.

[0252] Device B returns the device A communication ciphertext and the device B identity information encrypted with key K1 to device A.

[0253] Device A uses device A's communication key to decrypt device B's identity information to obtain first identity information B1.

[0254] Device A uses Sa+Sb to derive session key K1.

[0255] Device A uses key K1 to decrypt the identity information of device B to obtain second identity information B2.

[0256] Device A determines whether B1 is equal to B2.

[0257] Device A uses the K1 key to complete the communication transmission.

[0258] It can be seen from this embodiment that the present invention sets a series of identity authentication information such as the manufacturer number at the production and manufacturing stage, and can determine whether the device to be identified is a certified legal device during processes such as network registration and authentication, thereby ensuring the security of encryption information such as key certificates; in addition, the present invention indicates the computing power supported by the device (matching the encryption algorithm) at the production and manufacturing stage, and can quickly select a matching encryption algorithm in the subsequent process, thereby improving the key distribution speed and processing capability.

[0259] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for producing an Internet of Things device, characterized in that: The steps include: The authentication management platform uniformly agrees on a device naming rule, which is: manufacturer number + device type + production batch + device number. The device type includes the computing power that the device can support, and the computing power matches the encryption algorithm. When producing IoT devices, device manufacturers write a device serial number, manufacturer certificate and / or device initial root key indicating that the IoT device is produced by a specific device manufacturer into the secure storage area of ​​the IoT device according to the device naming rules offline or in a trusted environment; the written device serial number, manufacturer certificate and / or device initial root key are stored in an authentication management platform in correspondence with the information of the device manufacturer; specifically, the authentication management platform authorizes the device manufacturer and sends a trusted root certificate; the device manufacturer generates a manufacturer key pair; the authentication management platform issues a manufacturer certificate to the device manufacturer; the device manufacturer produces the device, assigns the device serial number to the device, and selects different processing step branches based on different encryption algorithms that match the computing power: (1) If the device supports asymmetric encryption The device manufacturer issues a device certificate based on the manufacturer certificate, returns the device certificate, platform certificate and manufacturer certificate to the device, and asynchronously transmits the device serial number back to the authentication management platform; (2) if the device only supports symmetric algorithms, the device manufacturer signs the manufacturer certificate and applies to the authentication management platform for a device root key; the authentication management platform verifies the manufacturer certificate signature; the authentication management platform encrypts the root key using the manufacturer certificate public key and returns it to the device manufacturer; the device manufacturer disperses the device initial key based on the root key to the device serial number, sends the device serial number and device initial key to the device, and asynchronously sends the device serial number to the authentication management platform; the device obtains the device communication subkey and device authentication subkey based on the dispersion of the device initial key; Based on the device serial number, the device unique code is obtained, a key pair is generated, the key is used to sign the device unique code, and an application for device registration is submitted to the device management platform; the device management platform sends a device certificate request to the authentication management platform; the authentication management platform completes the certificate issuance and returns the device certificate and root certificate to the device management platform; the device management platform completes the device identity registration and returns the device certificate and root certificate to the device; the device stores the certificate and root certificate in the local certificate store.

2. The production method according to claim 1, characterized in that The device serial number is a character string of specific letters and numbers representing the manufacturer and the product serial number, which is encoded according to specific rules customized by the device manufacturer. The device serial number also includes the performance parameters of the Internet of Things device.

3. An Internet of Things device produced by the method for producing an Internet of Things device as claimed in claim 1 or 2.

4. A method for accessing an Internet of Things device, characterized in that: The steps include: Transmitting the identity information of the IoT device to an authentication management platform via a communication device; The authentication management platform authenticates the IoT device and establishes a connection with it if the authentication is successful; The authentication management platform encrypts the user account, communication key and / or communication key usage period parameter and sends it to the IoT device, and establishes a connection with the IoT device; The Internet of Things device is produced by the production method of the Internet of Things device as described in claim 1 or 2.

5. The access method according to claim 4, characterized in that: The access method specifically includes: Transmitting the identity information of the IoT device to an authentication management platform via a communication device; The authentication management platform determines whether the IoT device is an authentication device, and if so, establishes a connection with it; The authentication management platform determines whether the IoT device is newly connected to the network. If so, the IoT device uses the identity information stored in its secure storage area for identity authentication; The authentication management platform determines whether the identity of the IoT device is legitimate. If it is, the user account, communication key and / or communication key usage period parameter are encrypted and sent to the IoT device; After the IoT device verifies and confirms the sent data, it establishes a connection with the authentication management platform through the sent data; The communication device is a mobile phone, a customized client terminal or a tablet, which is loaded with an APP capable of performing management tasks, and the identity information of the IoT device is obtained by manually entering the device number, scanning a QR code or device number, or reading the identity barcode on the device with an NFC device; The steps of the authentication management platform determining whether the IoT device is newly connected to the network and whether the identity is legitimate include: (1) If the device supports asymmetric encryption algorithms The device determines whether it is the first time to access the network; The device uses the device certificate to send a device access request to the authentication management platform; The authentication management platform verifies the device status and identity; The authentication management platform generates a communication key and encrypts it with a device public key; The authentication management platform returns user information parameters and communication keys to the device to complete device access; (2) If the device only supports symmetric algorithms The device determines whether it is the first time to access the network; The device generates verification information through the device authentication subkey; The device transmits the device communication subkey to the authentication management platform; The authentication management platform uses the device root key to derive subkeys in the same way to verify the device identity; The authentication management platform generates a new device root key and returns user information parameters and the new device root key to the device; The device stores user information parameters and replaces the device root key; In the step of establishing a connection between the IoT device and the authentication management platform by sending data, the IoT device can initiate a device heartbeat to the authentication management platform. After receiving the device heartbeat, the authentication management platform completes the device access operation.

6. An identity authentication method for digital RMB payment of an Internet device, characterized in that: The steps include:

1. For devices using asymmetric encryption The first device sends a device authentication request to the second device; The second device returns a device authentication response to the first device; The first device signs with the first device private key and submits the first device signature, the first device certificate, and the first device manufacturer root certificate to the second device; The second device verifies the first device certificate and the first device signature; The second device signs with the second device private key and submits the second device signature, the second device certificate, and the second device manufacturer root certificate to the first device to complete the device mutual recognition process; 2. For devices using symmetric encryption The first device sends a device authentication request to the second device; The second device returns a device authentication response code to the first device; The first device generates a first random number, encrypts the identity authentication information of the first device and the first random number using the first device key, and transmits the encrypted first device encrypted ciphertext to the second device; The second device generates a second random number, uses the first device encrypted ciphertext and the second device key to encrypt the identity authentication information and the second random number of the second device, and transmits the encrypted second device encrypted ciphertext to the authentication management platform; The authentication management platform uses the first device communication key to decrypt the first device encrypted ciphertext and verify the identity authentication information of the first device, wherein the first device communication key is another corresponding key different from the first device key; The authentication management platform uses the second device communication key to decrypt the second device encrypted ciphertext and verify the identity authentication information of the second device, wherein the second device communication key is another corresponding key different from the second device key; The authentication management platform uses the first device communication key to encrypt the identity authentication information and the second random number of the second device to obtain the first device ciphertext, uses the second device communication key to encrypt the identity authentication information and the first random number of the first device to obtain the second device ciphertext, and returns the first device ciphertext and the second device ciphertext to the second device; The second device decrypts the information using the second device key; The second device uses the first random number and the second random number to derive the session key K1, and returns the first device communication ciphertext and the identity authentication information of the second device encrypted with the session key K1 to the first device; The first device uses the first device communication key to decrypt the identity authentication information of the second device to obtain the first identity information B1; The first device uses the first random number and the second random number to derive a session key K1; The first device uses the session key K1 to decrypt the identity authentication information of the second device to obtain the second identity information B2; The first device determines whether the first identity information B1 is equal to the second identity information B2; The first device uses the key K1 to complete communication transmission with the second device; Wherein, both the first device and the second device are Internet of Things devices produced by the production method of Internet of Things devices as described in claim 1 or 2.

7. An Internet of Things device, characterized in that: The Internet of Things device includes a memory and a processor, wherein the memory is used to store programs, and the processor is used to execute the program of the identity authentication method for digital RMB payment of the Internet device as described in claim 6 stored in the memory.

8. A digital RMB payment system supporting the Internet of Things, characterized in that: The digital RMB payment system supporting the Internet of Things includes an electronic wallet at the payment end, an electronic wallet at the payment end, and an authentication management platform, and can execute the program of the identity authentication method for digital RMB payment of an Internet device as described in claim 6.