Off-line activation method and system based on trust transfer, terminal and storage medium
By using the server private key signature in offline activation scenarios and passing public key verification, the problem that the terminal cannot directly obtain authorization is solved, and the security authorization activation of the terminal device is realized, ensuring data integrity and security.
Patent Information
- Application Number
- CN202411115662.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-15
Smart Images

Figure CN118972069A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of offline activation, and in particular to an offline activation method, system, terminal and storage medium based on trust transfer. Background Art
[0002] During the authorization and activation process between the server and the terminal, the security of the device-side data is extremely important. For offline activation scenarios, authorization and activation of the terminal is undoubtedly necessary to protect the security of the device.
[0003] Currently, for offline activation scenarios, the terminal cannot directly obtain authorization from the server. At the same time, in order to protect the security of the terminal, the authorized server private key is not set in the terminal, which makes it inconvenient to activate the authorization of the terminal device in the offline activation scenario, thereby affecting the operation of the program on the terminal.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide an offline activation method, system, terminal and computer-readable storage medium based on trust transfer, aiming to solve the problem that in the offline activation scenario in the prior art, the terminal cannot directly obtain the authorization of the server, and at the same time, in order to protect the security of the terminal, the authorized server private key will not be set in the terminal, which will lead to inconvenience in the authorization activation of the terminal device in the offline activation scenario, thereby affecting the operation of the program on the terminal.
[0006] To achieve the above object, the present invention provides an offline activation method based on trust transfer, and the offline activation method based on trust transfer comprises the following steps:
[0007] When performing offline authorization activation, obtaining license data, signing the license data according to the private key stored in the local terminal by the server, and obtaining signed license data;
[0008] Obtain the signature server public key, the server public key, the signature permission data, the permission data and the public key of the local terminal, and send them to the device;
[0009] Obtain a first verification result of the device side verifying the signature server public key through the server public key. When the first verification result is passed, obtain a second verification result of the device side verifying the signature license data and the license data through the public key. When the second verification result is passed, activate the current terminal according to the license data.
[0010] Optionally, when performing offline authorization activation, obtaining license data, signing the license data according to a private key stored locally by the server to obtain signed license data, and the process also includes:
[0011] The server generates a set of public-private key pairs in advance, and signs the public key in the public-private key pair with the server private key to obtain a signed server public key, wherein the public-private key pair includes a public key and a private key;
[0012] The signature server public key, the server public key and the public-private key pair are stored in an encrypted storage medium, and the encrypted storage medium is loaded into a local terminal.
[0013] Optionally, the obtaining of a first verification result of the device verifying the signature server public key by using the server public key further includes:
[0014] The device receives the signature server public key, the server public key, the signature permission data, the permission data and the public key;
[0015] The device end decrypts the signature server public key through the server public key, obtains the decrypted data when the decryption is successful, generates the first verification result based on the decrypted data, and sends the first verification result to the local terminal.
[0016] Optionally, generating the first verification result according to the decrypted data specifically includes:
[0017] Obtain data pre-stored on the device;
[0018] Compare the decrypted data with the data pre-stored on the device, and when the decrypted data is consistent with the data pre-stored on the device, generate a first verification result, wherein the first verification result is passed;
[0019] When the decrypted data is inconsistent with the data pre-stored on the device, the generated first verification result is failure.
[0020] Optionally, the obtaining of a second verification result of the device end verifying the signed license data and the license data by using the public key further includes:
[0021] The device end decrypts the signed permission data according to the public key to obtain a decryption result;
[0022] A second verification result is generated according to the decryption result and the permission data, and the second verification result is sent to the local terminal.
[0023] Optionally, generating a second verification result according to the decryption result and the license data specifically includes:
[0024] comparing the decryption result with the license data;
[0025] When the decryption result is consistent with the license data, generating a second verification result, wherein the second verification result is passed;
[0026] When the decryption result is inconsistent with the license data, a second verification result is generated as failure.
[0027] Optionally, the encrypted storage medium is an independent security chip or a TEE-based mirror storage medium.
[0028] In addition, to achieve the above-mentioned purpose, the present invention further provides an offline activation system based on trust transfer, wherein the offline activation system based on trust transfer includes:
[0029] A data acquisition module, used to acquire license data when performing offline authorization activation, and to sign the license data according to a private key stored in the local terminal by the server to obtain signed license data;
[0030] A sending module, used to obtain the signature server public key of the local terminal, the server public key, the signature permission data, the permission data and the public key, and send them to the device end;
[0031] The result generation module is used to obtain a first verification result of the device side verifying the signature server public key through the server public key, and when the first verification result is passed, obtain a second verification result of the device side verifying the signature license data and the license data through the public key, and when the second verification result is passed, activate the current terminal according to the license data.
[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and an offline activation program based on trust transfer stored in the memory and executable on the processor, wherein the offline activation program based on trust transfer, when executed by the processor, implements the steps of the offline activation method based on trust transfer as described above.
[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an offline activation program based on trust transfer, and when the offline activation program based on trust transfer is executed by a processor, the steps of the offline activation method based on trust transfer as described above are implemented.
[0034] In the present invention, when offline authorization activation is performed, the license data is obtained, and the license data is signed according to the private key stored in the local terminal by the server to obtain the signed license data; the signature server public key of the local terminal, the server public key, the signed license data, the license data and the public key are obtained, and sent to the device end; the first verification result of the device end verifying the signature server public key by the server public key is obtained, and when the first verification result is passed, the second verification result of the device end verifying the signature license data and the license data by the public key is obtained, and when the second verification result is passed, the current terminal is activated according to the license data. The present invention realizes the authorization activation of the terminal device in the offline activation scenario, while the server private key does not leave the server, and the local terminal private key does not leave the encrypted storage medium, thereby ensuring the security of each link of the whole process; at the same time, in the whole process, it relies on the principle of public key encryption, that is, only the corresponding private key can generate a valid signature, and the public key can be widely distributed for signature verification; in this way, even if the public key is public, a valid signature cannot be forged without the private key, thereby ensuring the security of the whole process. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of a preferred embodiment of the offline activation method based on trust transfer of the present invention;
[0036] Figure 2 It is a structural diagram of a preferred embodiment of an offline activation system based on trust transfer of the present invention;
[0037] Figure 3 It is a structural diagram of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0039] During the authorization and activation process between the server and the terminal, the security of the device-side data is extremely important. For offline activation scenarios, authorization and activation of the terminal is undoubtedly necessary to protect the security of the device.
[0040] Currently, for offline activation scenarios, the terminal cannot directly obtain authorization from the server. At the same time, in order to protect the security of the terminal, the authorized server private key is not set in the terminal, which makes it inconvenient to activate the authorization of the terminal device in the offline activation scenario, thereby affecting the operation of the program on the terminal.
[0041] In response to one or more of the above-mentioned problems, the present invention obtains license data when performing offline authorization activation, signs the license data according to the private key stored by the server in the local terminal to obtain signed license data; obtains the signature server public key of the local terminal, the server public key, the signed license data, the license data and the public key, and sends them to the device side; obtains a first verification result of the device side verifying the signature server public key through the server public key, and when the first verification result is passed, obtains a second verification result of the device side verifying the signed license data and the license data through the public key, and when the second verification result is passed, activates the current terminal according to the license data.
[0042] The offline activation method based on trust transfer described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the offline activation method based on trust transfer includes the following steps:
[0043] Step S10: when performing offline authorization activation, obtain the license data, sign the license data according to the private key stored in the local terminal by the server, and obtain the signed license data.
[0044] It should be noted that in this application, the license data is the data to be activated, and since most device ends allow root, when the program logic of the corresponding API is provided in the form of a library or application, it is easy to be replaced. The license data mainly contains some descriptive information about the License. Due to the existence of root, no matter how it is handled, the device-side data can be obtained and modified; therefore, this application needs to ensure that this data is unavailable after tampering. The local terminal is the local client, and the current terminal is the program or software to be activated.
[0045] Among them, in this application, the public-private key pair established is created in pairs, the public key can be made public, but the private key cannot. The content encrypted by the public key can be decrypted by the private key, and vice versa. Since the public key can be made public, the private key is usually not used to encrypt the complete data, but only the hash of the data is encrypted with the private key, which can ensure that the data comes from the private key holder and that the data is not tampered with; this method is called signature.
[0046] Considering the terminal offline activation scenario, the corresponding license data cannot come directly from the server. For security reasons, it is impossible to allow the terminal to hold the server private key. Therefore, it is necessary to use the offline activation method based on trust transmission in this application to activate the data.
[0047] In this application, when offline authorization activation is to be performed, the corresponding license data is first obtained, and the private key stored locally by the server is used to sign the corresponding data to generate the signed license data, that is, the signed license data. The signing process is also the encryption process. The signing can protect the license data from tampering.
[0048] Furthermore, when performing offline authorization activation, obtaining license data, signing the license data according to the private key stored locally by the server, and obtaining signed license data, the above also includes:
[0049] The server generates a set of public-private key pairs in advance, and signs the public key in the public-private key pair with the server private key to obtain a signed server public key, wherein the public-private key pair includes a public key and a private key;
[0050] The signature server public key, the server public key and the public-private key pair are stored in an encrypted storage medium, and the encrypted storage medium is loaded into a local terminal.
[0051] Specifically, in this application, before offline authorization activation, the corresponding content must be deployed in advance, that is, the corresponding encrypted content is generated by the server. The server itself contains the server public key and the server private key, and a set of public and private key teams are generated at the same time, and the public and private key teams contain public keys and private keys.
[0052] The public key in the public-private key pair is signed by the server private key to obtain a signed server public key, wherein when the public key in the public-private key pair is signed by the server private key, the server private key is used to sign the public key itself and the certificate containing the public key, and this signature is data encrypted by the private key, which can only be decrypted by the corresponding public key, that is, only the server public key can decrypt.
[0053] Furthermore, the encrypted storage medium is an independent security chip or a TEE-based mirror storage medium.
[0054] It should be noted that the security chip is a trusted platform module, a device that can independently generate keys and encrypt and decrypt. It has an independent processor and storage unit inside, which can store keys and feature data, provide encryption and security authentication services for the device, and use a security chip for encryption. The key is stored in the hardware, and the stolen data cannot be decrypted, thereby protecting data security; this application uses an independent security chip. The TEE-based mirror storage medium is a storage medium that uses TTE (Time-Triggered Ethernet, TTEthernet, time-triggered Ethernet) and uses mirror storage for storage.
[0055] Step S20: Obtain the signature server public key, the server public key, the signature permission data, the permission data and the public key of the local terminal, and send them to the device.
[0056] Specifically, in the present application, when the current terminal is activated, the corresponding data needs to be sent to the device side for verification, so as to determine that the current license data is trusted data, wherein the data to be sent to the device side includes the signature server public key of the local terminal, the server public key, the signature license data and the public key.
[0057] Step S30, obtaining a first verification result of the device side verifying the signature server public key through the server public key; when the first verification result is passed, obtaining a second verification result of the device side verifying the signature license data and the license data through the public key; when the second verification result is passed, activating the current terminal according to the license data.
[0058] Specifically, in this application, the signature server public key is first verified by the server public key to ensure that the signature is valid, and then the signed license data and license data are verified by the public key to ensure that the license data is valid, so the current terminal can be activated according to the corresponding license data.
[0059] During this process, the server private key does not leave the server, and the private key of the local terminal does not leave the encrypted storage medium. The writing of the encrypted storage medium is controlled by the server operation and maintenance personnel, the reading security is guaranteed by the encrypted storage medium manufacturer, and the customer protects the physical hardware of the encrypted storage medium from being stolen. Every link is safe.
[0060] Further, the obtaining of a first verification result of the device end verifying the signature server public key by using the server public key also includes:
[0061] The device receives the signature server public key, the server public key, the signature permission data, the permission data and the public key;
[0062] The device end decrypts the signature server public key through the server public key, obtains the decrypted data when the decryption is successful, generates the first verification result based on the decrypted data, and sends the first verification result to the local terminal.
[0063] Before obtaining the first verification result, in order to protect the security of the private key stored by the corresponding server in the local terminal, the device performs corresponding verification. In the device, the signature server public key, server public key, signature permission data, permission data and public key are first received, and the first verification is performed accordingly.
[0064] In the first verification, the device uses the server public key to decrypt the signature server public key. When the decryption is successful, it means that the public and private key pair of the server is safe at this time. Therefore, the first verification result can be generated based on the decrypted data, where the first verification result includes two results: pass and fail.
[0065] Furthermore, generating the first verification result according to the decrypted data specifically includes:
[0066] Obtain data pre-stored on the device;
[0067] Compare the decrypted data with the data pre-stored on the device, and when the decrypted data is consistent with the data pre-stored on the device, generate a first verification result, wherein the first verification result is passed;
[0068] When the decrypted data is inconsistent with the data pre-stored on the device, the generated first verification result is failure.
[0069] Specifically, corresponding data, namely, the server public key and the certificate containing the public key, are stored in advance on the device side. When the decrypted data is the same as the data pre-stored on the device side, it means that the signature is valid at this time, and the corresponding first verification result is passed; when the decrypted data is different from the data pre-stored on the device side, it means that the signature is invalid, and the protected file has been tampered with, then the first verification result is failed, and the current terminal will not be activated.
[0070] Furthermore, the obtaining device end verifies the signed license data and the license data using the public key as a second verification result, and also includes:
[0071] The device end decrypts the signed permission data according to the public key to obtain a decryption result;
[0072] A second verification result is generated according to the decryption result and the permission data, and the second verification result is sent to the local terminal.
[0073] Specifically, in the present application, when the first verification result passes, it indicates that the signature is valid, and the protection of the signed license data by the signature is effective. The signed license data is then decrypted using the public key to obtain the corresponding decryption result, and the corresponding second verification result can be generated through the decryption result, wherein the second verification result includes two results: pass and fail.
[0074] Further, generating a second verification result according to the decryption result and the license data specifically includes:
[0075] comparing the decryption result with the license data;
[0076] When the decryption result is consistent with the license data, generating a second verification result, wherein the second verification result is passed;
[0077] When the decryption result is inconsistent with the license data, a second verification result is generated as failure.
[0078] Specifically, when the decryption result is consistent with the license data, it means that the license data has not been tampered with during the transmission process, and the signature is valid, and the corresponding second verification result is passed; when the decryption result is inconsistent with the license data, it means that the license data has been tampered with, and the current terminal cannot be activated according to the license data. Through the above comparison verification, the device side can confirm the integrity and authenticity of the license data to ensure that they have not been changed during the transmission process. When both verifications pass, it means that the license data is valid, and the current terminal can be activated through the license data. The entire verification process relies on the basic principle of public key encryption, that is, only the corresponding private key can generate a valid signature, and the public key can be widely distributed for signature verification. In this way, even if the public key is public, a valid signature cannot be forged without the private key, which is both convenient and safe.
[0079] When performing offline authorization activation, the present invention obtains license data, signs the license data according to the private key stored in the local terminal by the server, and obtains the signed license data; obtains the signature server public key of the local terminal, the server public key, the signed license data, the license data and the public key, and sends them to the device; obtains the first verification result of the device end verifying the signature server public key by the server public key, and when the first verification result is passed, obtains the second verification result of the device end verifying the signature license data and the license data by the public key, and when the second verification result is passed, activates the current terminal according to the license data. The present invention realizes the authorization activation of the terminal device in the offline activation scenario, while the server private key does not leave the server, and the terminal private key does not leave the encrypted storage medium, thereby ensuring the security of each link of the whole process; at the same time, in the whole process, it relies on the principle of public key encryption, that is, only the corresponding private key can generate a valid signature, and the public key can be widely distributed for signature verification; in this way, even if the public key is public, a valid signature cannot be forged without the private key, thereby ensuring the security of the whole process.
[0080] Furthermore, if Figure 2 As shown, based on the above offline activation method based on trust transfer, the present invention also provides an offline activation system based on trust transfer, wherein the offline activation system based on trust transfer includes:
[0081] The data acquisition module 21 is used to acquire the license data when performing offline authorization activation, and to sign the license data according to the private key stored in the local terminal by the server to obtain the signed license data;
[0082] The sending module 22 is used to obtain the signature server public key, the server public key, the signature permission data, the permission data and the public key of the local terminal, and send them to the device end;
[0083] The result generation module 23 is used to obtain a first verification result of the device side verifying the signature server public key through the server public key, and when the first verification result is passed, obtain a second verification result of the device side verifying the signature license data and the license data through the public key, and when the second verification result is passed, activate the current terminal according to the license data.
[0084] Furthermore, if Figure 3 As shown, based on the above-mentioned offline activation method and system based on trust transfer, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 3 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0085] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, an offline activation program 40 based on trust transfer is stored on the memory 20, and the offline activation program 40 based on trust transfer can be executed by the processor 10, thereby realizing the offline activation method based on trust transfer in the present application.
[0086] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the offline activation method based on trust transfer.
[0087] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
[0088] In one embodiment, when the processor 10 executes the offline activation program 40 based on trust transfer in the memory 20, the steps in the above offline activation method based on trust transfer are implemented.
[0089] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an offline activation program based on trust transfer, and when the offline activation program based on trust transfer is executed by a processor, the following steps of the offline activation method based on trust transfer are implemented:
[0090] When performing offline authorization activation, obtaining license data, signing the license data according to the private key stored in the local terminal by the server, and obtaining signed license data;
[0091] Obtain the signature server public key, the server public key, the signature permission data, the permission data and the public key of the local terminal, and send them to the device;
[0092] Obtain a first verification result of the device side verifying the signature server public key through the server public key. When the first verification result is passed, obtain a second verification result of the device side verifying the signature license data and the license data through the public key. When the second verification result is passed, activate the current terminal according to the license data.
[0093] Wherein, when performing offline authorization activation, obtaining license data, signing the license data according to the private key stored locally by the server, and obtaining signed license data, the above also includes:
[0094] The server generates a set of public-private key pairs in advance, and signs the public key in the public-private key pair with the server private key to obtain a signed server public key, wherein the public-private key pair includes a public key and a private key;
[0095] The signature server public key, the server public key and the public-private key pair are stored in an encrypted storage medium, and the encrypted storage medium is loaded into a local terminal.
[0096] Wherein, the obtaining of a first verification result of the device end verifying the signature server public key by using the server public key also includes:
[0097] The device receives the signature server public key, the server public key, the signature permission data, the permission data and the public key;
[0098] The device end decrypts the signature server public key through the server public key, obtains the decrypted data when the decryption is successful, generates the first verification result based on the decrypted data, and sends the first verification result to the local terminal.
[0099] The step of generating the first verification result according to the decrypted data specifically includes:
[0100] Obtain data pre-stored on the device;
[0101] Compare the decrypted data with the data pre-stored on the device, and when the decrypted data is consistent with the data pre-stored on the device, generate a first verification result, wherein the first verification result is passed;
[0102] When the decrypted data is inconsistent with the data pre-stored on the device, the generated first verification result is failure.
[0103] Wherein, the obtaining device end verifies the signed license data and the license data by using the public key, and before that, it also includes:
[0104] The device end decrypts the signed permission data according to the public key to obtain a decryption result;
[0105] A second verification result is generated according to the decryption result and the permission data, and the second verification result is sent to the local terminal.
[0106] The step of generating a second verification result according to the decryption result and the license data specifically includes:
[0107] comparing the decryption result with the license data;
[0108] When the decryption result is consistent with the license data, generating a second verification result, wherein the second verification result is passed;
[0109] When the decryption result is inconsistent with the license data, a second verification result is generated as failure.
[0110] The encrypted storage medium is an independent security chip or a TEE-based mirror storage medium.
[0111] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or terminal including the element.
[0112] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0113] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. An offline activation method based on trust transfer, characterized in that: The offline activation method based on trust transfer includes: When performing offline authorization activation, obtaining license data, signing the license data according to the private key stored in the local terminal by the server, and obtaining signed license data; Obtain the signature server public key, the server public key, the signature permission data, the permission data and the public key of the local terminal, and send them to the device; Obtain a first verification result of the device side verifying the signature server public key through the server public key. When the first verification result is passed, obtain a second verification result of the device side verifying the signature license data and the license data through the public key. When the second verification result is passed, activate the current terminal according to the license data.
2. The offline activation method based on trust transfer according to claim 1, characterized in that: When performing offline authorization activation, obtaining license data, signing the license data according to the private key stored locally by the server, and obtaining signed license data, the method also includes: The server pregenerates a set of public-private key pairs, and signs the public key in the public-private key pair with the server private key to obtain a signed server public key, wherein the public-private key pair includes a public key and a private key; The signature server public key, the server public key and the public-private key pair are stored in an encrypted storage medium, and the encrypted storage medium is loaded into a local terminal.
3. The offline activation method based on trust transfer according to claim 1, characterized in that: The obtaining of a first verification result of the device end verifying the signature server public key by the server public key also includes: The device receives the signature server public key, the server public key, the signature permission data, the permission data and the public key; The device end decrypts the signature server public key through the server public key, obtains the decrypted data when the decryption is successful, generates the first verification result based on the decrypted data, and sends the first verification result to the local terminal.
4. The offline activation method based on trust transfer according to claim 3 is characterized in that: The generating the first verification result according to the decrypted data specifically includes: Obtain data pre-stored on the device; Compare the decrypted data with the data pre-stored on the device, and when the decrypted data is consistent with the data pre-stored on the device, generate a first verification result, wherein the first verification result is passed; When the decrypted data is inconsistent with the data pre-stored on the device side, the generated first verification result is failure.
5. The offline activation method based on trust transfer according to claim 1, characterized in that: The obtaining of the second verification result of the device end verifying the signed license data and the license data by the public key also includes: The device end decrypts the signed permission data according to the public key to obtain a decryption result; A second verification result is generated according to the decryption result and the permission data, and the second verification result is sent to the local terminal.
6. The offline activation method based on trust transfer according to claim 5, characterized in that: The generating a second verification result according to the decryption result and the permission data specifically includes: comparing the decryption result with the license data; When the decryption result is consistent with the license data, generating a second verification result, wherein the second verification result is passed; When the decryption result is inconsistent with the license data, a second verification result is generated as failure.
7. The offline activation method based on trust transfer according to claim 2, characterized in that: The encrypted storage medium is an independent security chip or a TEE-based mirror storage medium.
8. An offline activation system based on trust transfer, characterized in that: The offline activation system based on trust transfer includes: A data acquisition module, used to acquire license data when performing offline authorization activation, and to sign the license data according to a private key stored in the local terminal by the server to obtain signed license data; A sending module, used to obtain the signature server public key of the local terminal, the server public key, the signature permission data, the permission data and the public key, and send them to the device end; The result generation module is used to obtain a first verification result of the device side verifying the signature server public key through the server public key, and when the first verification result is passed, obtain a second verification result of the device side verifying the signature license data and the license data through the public key, and when the second verification result is passed, activate the current terminal according to the license data.
9. A terminal, characterized in that: The terminal includes: a memory, a processor, and an offline activation program based on trust transfer stored in the memory and executable on the processor. When the offline activation program based on trust transfer is executed by the processor, the steps of the offline activation method based on trust transfer as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an offline activation program based on trust transfer, and when the offline activation program based on trust transfer is executed by a processor, the steps of the offline activation method based on trust transfer according to any one of claims 1 to 7 are implemented.
