A software authorization authentication method

By using public key encryption and private key decryption mechanisms in the software authorization and authentication system to generate and verify authorization application and activation files, the problem of difficulty in obtaining host hardware information under docker containerized and clustered deployment is solved, and software authorization and authentication is realized Improved reliability and safety.

CN113886771BActive Publication Date: 2024-12-06NEWCAPEC ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111152354.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-12-06
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

The existing software authorization authentication method cannot obtain host hardware information under docker containerized environment and clustered deployment, resulting in unreliable authentication.

Method used

The public key encryption and private key decryption mechanism between the authorization authentication server and the authorization management platform are adopted. By generating authorization application documents and activation documents, the business system can complete authorization authentication without obtaining host hardware information. Improves the reliability of certification.

Benefits of technology

It realizes reliable authorization and authentication of software in any environment (including docker containerized and clustered deployment), and enhances the security and reliability of authorization and authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886771B_ABST
    Figure CN113886771B_ABST
Patent Text Reader

Abstract

The present invention relates to a software authorization authentication method, and belongs to the field of software encryption technology. The method comprises: a business system initiates authorization application information to an authorization authentication server, and the authorization authentication server uses a platform public key to encrypt the authorization application information to generate an authorization application file; an authorization management platform uses a platform private key to decrypt the authorization application file to obtain the authorization application information, and then generates authorization activation information, and then uses the platform private key to sign the authorization activation information to generate an authorization activation file; the authorization authentication server uses the platform public key to verify the signature of the authorization activation file, and parses the authorization activation information; the business system queries the authorization information according to the customer code, and performs authorization authentication after decrypting the authorization information through the software public key. In the authorization authentication process of the present invention, there is no need to obtain the hardware information of the host, which improves the reliability of the authorization authentication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a software authorization authentication method, belonging to the technical field of software encryption. Background Art

[0002] In order to protect their own rights, software developers have implemented various protections on the software. When clients use the software, they need to obtain authorization and certification for the software.

[0003] At present, the authorization and authentication of software systems are all realized by obtaining the user's host hardware information. For example, the Chinese invention patent application document with application publication number CN 111625783 A discloses a software authorization management system based on multi-level encryption, and its authentication method includes: first, when the software authorization client obtains the user's registration request for the target software, it forms an application file based on the collection and encryption of the user's host hardware fingerprint information, and sends the application file to the software authorization management server. The software authorization management server encrypts and signs the application file to form a registration file, and feeds it back to the software authorization client. The software authorization client verifies the signature of the received registration file to complete the software authorization. When the software authorization client obtains the registration request for the target software, the authentication method encrypts the target software to form an application file to form the first line of protection for the software, and then the software authorization management server encrypts and signs the application file to form a unique registration file to form the second line of protection for the software. Multi-level encryption is used to form effective protection for the software, thereby preventing unauthorized users from using the software.

[0004] The premise of the above authentication method is to obtain the user's host hardware information. However, in the actual authentication process, the authentication method of obtaining the user's host hardware information has the following defects:

[0005] 1. When the user software is installed and deployed based on the Docker container environment, the hardware information of the user host cannot be obtained, and thus the software authorization authentication cannot be achieved.

[0006] 2. When the software is deployed in a cluster and multiple user hosts provide services through load balancing, the user hardware information obtained is not fixed to a certain host and there are cases where verification fails.

[0007] In summary, existing authentication methods have poor reliability. Summary of the invention

[0008] The purpose of this application is to provide a software authorization authentication method to solve the problem of poor reliability of existing authentication methods.

[0009] To achieve the above purpose, the present application proposes a technical solution for a software authorization authentication method, which includes the following steps:

[0010] 1) The business system initiates the authorization application information to the authorization authentication server. The authorization authentication server uses the platform public key to encrypt the authorization application information to generate an authorization application file, and sends the authorization application file to the business system; the authorization application information includes the software product code, customer code, authorization application type, and expected authorization expiration date; the platform public key is generated by the authorization management platform and exported to the authorization authentication server;

[0011] 2) The business system sends the authorization application file to the authorization management platform. The authorization management platform uses the platform private key to decrypt the authorization application file to obtain the authorization application information, generates the authorization activation information according to the authorization application information, and then uses the platform private key to sign the authorization activation information to generate the authorization activation file, and sends the generated authorization activation file to the business system; the authorization activation information includes the customer code and the corresponding authorization information encrypted with the software private key; the authorization information includes the authorized function and the system expiration time;

[0012] 3) The business system sends the authorization activation file to the authorization authentication server. The authorization authentication server uses the platform public key to verify the signature of the authorization activation file, parses the authorization activation information, and sends the authorization activation information to the business system;

[0013] 4) The business system queries the authorization information according to the customer code, decrypts the authorization information through the software public key, and then performs authorization authentication; the software public key is generated by the authorization management platform and exported to the business system.

[0014] The technical solution of the software authorization authentication method of the present invention has the beneficial effect that: the business system of the present invention generates an authorization application file by calling the authorization authentication server, and the authorization management platform generates an authorization activation file according to the authorization application file, and finally the business system calls the authorization authentication server again to decrypt the authorization activation file to obtain the authorization activation information, so that the business system performs authorization authentication according to the authorization activation information. In the authorization authentication process of the present invention, it is not necessary to obtain the hardware information of the host, thereby improving the reliability of the authorization authentication.

[0015] Furthermore, in order to improve security, in step 1), the process in which the authorization authentication server uses the platform public key to encrypt the authorization application information to generate an authorization application file includes:

[0016] The authorization authentication server uses the service private key in its own service public-private key pair to encrypt the authorization application information, and combines the encrypted authorization application information and the service public key into the authorization application information plain text, and then uses the platform public key to encrypt the authorization application information plain text to generate an authorization application file;

[0017] The step in step 2) where the authorization management platform uses the platform private key to decrypt the authorization application file to obtain the authorization application information includes:

[0018] The authorization management platform uses the platform private key to decrypt the authorization application file to obtain the plain text of the authorization application information, and parses out the service public key in the plain text of the authorization application information, and then uses the service public key to decrypt the encrypted authorization application information to obtain the decrypted authorization application information.

[0019] Furthermore, in order to improve security, the authorization management platform in step 2) also includes a step of encrypting the authorization activation information using the service public key, and signing the encrypted authorization activation information ciphertext using the platform private key to obtain an authorization activation file; the authorization authentication server in step 3) also includes a step of decrypting the authorization activation information using the service private key.

[0020] Furthermore, in order to improve security, the authorization activation information in step 2) also includes sensitive information of the business system encrypted using the software private key, and step 4) also includes a step in which the business system verifies the sensitive information of the business system using the software public key.

[0021] Furthermore, both the authorization application document and the authorization activation document adopt a chain structure.

[0022] Furthermore, in order to avoid importing authorization activation information into the business system multiple times, the authorization activation file includes the hash value of the last authorization activation. In the step 3), the authorization authentication server also includes a step of comparing the hash value of the last authorization activation in the authorization activation file with the hash value of the last authorization application stored locally. If the hash values ​​are the same, the verification is successful and the authorization activation information is sent to the business system. If they are not the same, it is considered illegal and an illegal result is returned to the business system.

[0023] Furthermore, in order to improve security, when the business system and the authorization server interact with each other in the authorization activation information, it also includes the steps of encrypting and decrypting using the shared session key agreed upon by both parties.

[0024] Furthermore, the authorization activation information also includes business system differentiation information, and the business system differentiation information includes hardware feature codes, database feature codes, and key data unique identifiers. The business system in step 4) also includes a step of verifying the business system differentiation information.

[0025] Furthermore, the business system and the authorization authentication server use a JWT interface for communication.

[0026] Furthermore, the platform's public and private key pairs adopt the national secret SM2 algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a system block diagram of the software authorization authentication system of the present invention;

[0028] Figure 2 It is a flow chart of the software authorization authentication method of the present invention. DETAILED DESCRIPTION

[0029] Software authorization authentication method embodiment:

[0030] The main idea of ​​the present invention is to solve the problem that the existing authentication method needs to obtain the host hardware information, which leads to the failure of authorization authentication. The software authorization authentication system of the present invention includes an authorization management platform, an authorization authentication server, and a business system. The business system generates an application document by calling the authorization authentication server, and then sends the application document to the authorization management platform. The authorization management platform generates an authorization activation document according to the application document and sends it to the business system. Then the business system calls the authorization authentication server again to complete the decryption of the authorization activation document, and finally realizes authorization authentication, thereby improving the reliability of authentication.

[0031] Software authorization and certification system Figure 1 As shown in the figure, it includes the authorization management platform, authorization authentication server, and business system. The authorization authentication server is deployed on-site by the staff of the software developer. The interface communication between the authorization authentication server and the business system adopts the JWT method. Before using the business interface, you need to log in first and get the token for accessing the business interface.

[0032] At the same time, for the convenience of deploying the authorization authentication server, if the user software is deployed in a docker containerized environment, the authorization authentication server is directly deployed in the docker containerized environment. Of course, as other implementation methods, the authorization authentication server can also be deployed in other locations, and the present invention does not limit this.

[0033] In the above software authorization and authentication system, the authorization management platform is used for business system software product maintenance, asymmetric key generation and management, etc.; the authorization and authentication server is deployed at the customer site to provide authorization and authentication services for the business system software; the business system is deployed at the customer site or in the cloud to call the authorization application file obtained by the authorization and authentication server, import the authorization activation file, and verify the authorization status of the business system.

[0034] Specifically, the software authorization authentication method for the software authorization authentication system to perform authorization authentication is as follows: Figure 2 As shown, the following steps are included:

[0035] 1) The authorization management platform generates a platform public and private key pair, pre-stores the platform public key in the authorization authentication server in a secure environment, and saves the platform private key in ciphertext.

[0036] The process of pre-fabricating the platform public key on the authorization authentication server in a secure environment includes: breaking up the platform public key according to a custom algorithm and exporting it to the authorization authentication server.

[0037] 2) The authorization management platform configures the business system software information and the software public and private key pairs, pre-fabricates the software public key into the business system in a secure environment, and saves the software private key.

[0038] Business system software information includes the product code and name of the business system software and the product code and name of its subsystems.

[0039] The process of prefabricating the business system public key into the business system in a secure environment includes: breaking up the business system public key according to a custom algorithm and exporting it to the business system.

[0040] In step 1) and step 2), the platform public and private key pairs and the software public and private key pairs adopt the national secret SM2 cryptographic algorithm. Of course, other cryptographic algorithms in the prior art such as the national secret SM3 cryptographic algorithm may also be adopted, and the present invention does not impose any limitation on this.

[0041] 3) The business system calls the authorization authentication server to generate an authorization application file and sends the authorization application file to the business system.

[0042] The specific steps are: a. The business system initiates authorization application information to the authorization authentication server; the authorization application information includes software product code, customer code, business system differentiation information, ERP number, authorization application type, expected authorization expiration date, and current time of the business system platform.

[0043] b. Generate a service public and private key pair when the authorization authentication server is started for the first time; the service public and private key pair adopts the national secret SM2 cryptographic algorithm;

[0044] c. Use the service private key to encrypt the authorization application information, and combine the encrypted authorization application information and the service public key to form the authorization application information plain text;

[0045] d. Use the platform public key to encrypt the authorization application information, generate an authorization application file, and send the authorization application file to the business system. The authorization application file adopts a chain structure.

[0046] The differentiated information of the business system includes hardware feature codes, database feature codes, unique identifiers of key data, etc. It is required to ensure the uniqueness of the business system software platform, require the participation of business information, and be able to prevent duplication, mirroring, and virtual machines.

[0047] 4) The business system sends the authorization application document to the authorization management platform by email. The authorization management platform generates an authorization activation document based on the authorization application document and sends the authorization activation document to the business system.

[0048] The specific steps are as follows: a. The authorization management platform decrypts the authorization application file through the platform private key to obtain the plain text of the authorization application information (the plain text of the authorization application information includes the encrypted authorization application information and the service public key);

[0049] b. The authorization management platform parses the plain text of the authorization application information and obtains the service public key;

[0050] c. Use the service public key to decrypt the encrypted authorization application information to obtain the authorization application information;

[0051] d. Authorize the business system according to the authorization application information and generate authorization activation information; the authorization activation information adopts a chain structure, including customer code, whether it is the first application, whether the chain is broken, the hash value of the last authorization activation information, business system sensitive information, authorization information, etc. (the authorization management platform uses the software private key to sign the business system sensitive information and authorization information according to the authorization requirements of the business system); the authorization information includes the authorized function, system expiration time, and business system differentiation information;

[0052] e. Use the service public key to encrypt the authorization activation information;

[0053] f. Use the platform private key to sign the encrypted authorization activation information, obtain the authorization activation file, and send the authorization activation file to the business system by email.

[0054] 5) The business system imports the authorization activation file into the authorization authentication server, and the authorization authentication server verifies the authorization activation file and exports the verification result to the business system.

[0055] The specific steps are as follows: a. The authorization authentication server uses the platform public key to verify the signature of the authorization activation file and parse the encrypted authorization activation information;

[0056] b. Use the service private key to obtain the decrypted authorization activation information;

[0057] c. Compare the hash value of the last authorization activation information in the plain text of the authorization activation information with the hash value of the last authorization activation information stored locally (when it is determined to be the first application or the link is broken, the hash value comparison is not performed);

[0058] d. If they are consistent, the authorization activation information is stored in the database, and the authorization activation information is encrypted using the shared session key (referred to as the shared key) and returned to the business system;

[0059] e. If they are inconsistent, they are considered illegal and an illegal result is returned to the business system.

[0060] In this step, the data interaction between the business system and the authorization authentication server is encrypted using the shared session key agreed upon by both parties, and the algorithm for the shared session key uses a custom algorithm involving random numbers.

[0061] In this step, the purpose of comparing hash values ​​is to avoid multiple imports of authorization activation information. If the hash values ​​are inconsistent, it is marked as a multiple import state, which is an illegal state. If the hash values ​​are consistent, it indicates that it is not a multiple import.

[0062] 7) The business system verifies the authorization activation information and completes the authorization authentication.

[0063] The specific steps are as follows: a. The business system shared session key is decrypted and authorized to open the file;

[0064] b. Query the corresponding authorization information and sensitive information of the business system according to the customer code;

[0065] c. Use the software public key to verify the signature of the authorization information and sensitive information of the business system, and parse the authorization information;

[0066] d. Verify the authorized function, system expiration time, and business system differentiation information in the authorization information to complete the authorization authentication.

[0067] The business system of the present invention generates an authorization application file by calling an authorization authentication server. When using application software in a Windows system, a Linux system, a Docker container environment, or a clustered deployment environment, software authorization application information can be obtained, thereby expanding the scope of application software authorization authentication and improving the reliability of authentication.

Claims

1. A software authorization authentication method, characterized in that: The following steps are involved: 1) The business system initiates the authorization application information to the authorization authentication server. The authorization authentication server uses the platform public key to encrypt the authorization application information to generate an authorization application file, and sends the authorization application file to the business system; the authorization application information includes the software product code, customer code, authorization application type, and expected authorization expiration date; the platform public key is generated by the authorization management platform and exported to the authorization authentication server; 2) The business system sends the authorization application file to the authorization management platform. The authorization management platform uses the platform private key to decrypt the authorization application file to obtain the authorization application information, generates the authorization activation information according to the authorization application information, and then uses the platform private key to sign the authorization activation information to generate the authorization activation file, and sends the generated authorization activation file to the business system; the authorization activation information includes the customer code and the corresponding authorization information encrypted by the software private key; Authorization information includes authorized functions and system expiration time; 3) The business system sends the authorization activation file to the authorization authentication server. The authorization authentication server uses the platform public key to verify the signature of the authorization activation file, parses the authorization activation information, and sends the authorization activation information to the business system; 4) The business system queries the authorization information according to the customer code, decrypts the authorization information through the software public key, and then performs authorization authentication; The software public key is generated by the authorization management platform and exported to the business system.

2. The software authorization authentication method according to claim 1, characterized in that: In step 1), the process in which the authorization authentication server uses the platform public key to encrypt the authorization application information to generate an authorization application file includes: The authorization authentication server uses the service private key in its own service public-private key pair to encrypt the authorization application information, and combines the encrypted authorization application information and the service public key into the authorization application information plain text, and then uses the platform public key to encrypt the authorization application information plain text to generate an authorization application file; The step in step 2) where the authorization management platform uses the platform private key to decrypt the authorization application file to obtain the authorization application information includes: The authorization management platform uses the platform private key to decrypt the authorization application file to obtain the plain text of the authorization application information, and parses out the service public key in the plain text of the authorization application information, and then uses the service public key to decrypt the encrypted authorization application information to obtain the decrypted authorization application information.

3. The software authorization authentication method according to claim 2, characterized in that: In the step 2), the authorization management platform also includes the step of encrypting the authorization activation information using the service public key, and signing the encrypted authorization activation information ciphertext using the platform private key to obtain the authorization activation file; in the step 3), the authorization authentication server also includes the step of decrypting the authorization activation information using the service private key.

4. The software authorization authentication method according to claim 1, characterized in that: The authorization activation information in step 2) also includes the sensitive information of the business system encrypted using the software private key, and step 4) also includes the step of the business system verifying the sensitive information of the business system using the software public key.

5. The software authorization authentication method according to claim 1, characterized in that: Both the authorization application document and the authorization activation document adopt a chain structure.

6. The software authorization authentication method according to claim 5, characterized in that: The authorization activation file includes the hash value of the last authorization activation. In step 3), the authorization authentication server also includes a step of comparing the hash value of the last authorization activation in the authorization activation file with the hash value of the last authorization application stored locally. If the hash values ​​are the same, the verification is successful and the authorization activation information is sent to the business system. If they are not the same, it is considered illegal and an illegal result is returned to the business system.

7. The software authorization authentication method according to claim 6, characterized in that: When the business system and the authorization server interact with each other for authorization activation information, it also includes the steps of encryption and decryption using the shared session key agreed upon by both parties.

8. The software authorization authentication method according to claim 1, characterized in that: The authorization activation information also includes business system differentiation information, which includes hardware feature codes, database feature codes, and key data unique identifiers. In step 4), the business system also includes a step of verifying the business system differentiation information.

9. The software authorization authentication method according to claim 1, characterized in that: The business system and the authorization and authentication server use the JWT interface for communication.

10. The software authorization authentication method according to claim 1, characterized in that: The platform's public and private key pairs use the national secret SM2 algorithm.