A digital certificate storage management method, system, terminal and medium

By performing identity verification and hash operations in the distributed business system, and storing the hash value of the digital certificate in the blockchain network, it solves the problems of digital certificate supervision and security in the distributed environment, and realizes the unified storage of data and business. manage.

CN118733598BActive Publication Date: 2024-10-29GUIZHOU UNIVERSITY OF FINANCE AND ECONOMICS +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411217143.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-10-29
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve unified supervision and governance of digital credentials in a distributed business environment, and there are security risks and can easily be stolen or tampered with by illegal users.

Method used

By responding to the user's business interaction signals in real time, the identity information and business interaction data are obtained, identity verification is performed, digital credentials are created and stored on a specific node of the distributed business system, and a hash operation is performed on the node to generate a hash The Greek value is stored in the blockchain network to realize the storage management of digital certificates.

Benefits of technology

It avoids illegal user transactions, ensures the security of transaction data, prevents digital certificate tampering, and realizes unified storage management of digital certificates in distributed business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733598B_ABST
    Figure CN118733598B_ABST
Patent Text Reader

Abstract

The present invention discloses a digital certificate storage management method, system, terminal and medium, including: responding to a first business interaction signal initiated by a user terminal in real time, and authenticating the user terminal based on the first identity information of the user terminal; if the user terminal passes the identity authentication, then based on the first identity information of the user terminal and the first business interaction data, creating a first digital certificate and determining the first business node where the target business is located in the distributed business system, and storing the first digital certificate, the first identity information and the first business interaction data in the first business node, and then storing the hash value generated by the hash operation of the first business node in the blockchain network; managing the corresponding digital certificate based on the hash value in the blockchain network. The present invention avoids business transactions with illegal / non-target users, and quickly locates digital certificates in the distributed business system via the blockchain network to prevent digital certificates from being tampered with.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital certificate management, and in particular to a digital certificate storage management method, system, terminal and medium. Background Art

[0002] In a distributed business environment, digital certificates are used to carry data and business, and digital certificates are circulated between different business nodes, driving the flow of data and the realization of business. During the process of certificate circulation, for businesses that require full-process supervision, certificates are required to provide evidence storage capabilities. By setting up evidence storage rules in the certificate, the certificate circulation can be realized while automatically storing it in the evidence storage center. At the same time, the evidence storage center can provide certificate fairness and full-process supervision.

[0003] At present, the implementation of digital credential storage is mainly to store digital credentials directly in the business system. It cannot cope with distributed business scenarios where data and business are dispersed, it is difficult to conduct unified supervision and governance, and there are major security risks. Once the business system server is compromised, the digital credentials will face a high risk of being stolen or tampered with, causing losses to both parties in the business interaction. Summary of the invention

[0004] The embodiments of the present invention provide a digital certificate storage management method, system, terminal and medium, which can quickly locate digital certificates in a distributed business system and avoid business transactions with illegal users or non-target transaction users, thereby realizing unified digital certificate storage management in distributed business scenarios with dispersed data and business.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a digital certificate storage management method, including:

[0006] Responding in real time to a first service interaction signal initiated by a user terminal, and acquiring first identity information and first service interaction data of the user terminal;

[0007] Performing identity authentication on the user terminal based on the first identity identification information;

[0008] If the user terminal passes the identity authentication, based on the first identity identification information and the first business interaction data, a corresponding first digital certificate is created and a first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the first business node, and then a hash operation is performed on the first business node to generate a hash value corresponding to the first business node, and the hash value corresponding to the first business node is stored in the blockchain network;

[0009] Based on the hash value within the blockchain network, the corresponding digital certificate is managed.

[0010] By implementing the embodiment of the present invention, the first business interaction signal initiated by the user terminal is responded to in real time, the first identity information and the first business interaction data of the user terminal are obtained, and then the identity authentication of the user terminal is performed in advance based on the first identity information of the user terminal. After the user terminal passes the identity authentication, the subsequent digital certificate creation and evidence management are performed, which can avoid business transactions with illegal users or non-target transaction users, thereby ensuring that the transaction data will not be obtained by illegal users or non-target users, and jointly protecting the rights and interests of the target user and the distributed business system. In addition, after the user terminal passes the identity authentication, based on the first identity information and the first business interaction data of the user terminal, the corresponding first digital certificate is created and the first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity information and the first business interaction data are stored in the predetermined first business node, and then the hash value obtained by the hash operation of the first business node is stored in the blockchain network. Through the hash value in the blockchain network, not only can the first digital certificate and other data be prevented from being tampered with, but also the specific location of the first digital certificate in the distributed business system can be quickly located, so as to realize the unified evidence management of digital certificates in distributed business scenarios where data and business are dispersed.

[0011] As a preferred solution, the management of the corresponding digital certificate based on the hash value in the blockchain network is specifically as follows:

[0012] When the distributed service system receives the second service interaction signal sent by the service initiator, the distributed service system parses the second service interaction signal to obtain the second identity information and second service interaction data of the service initiator;

[0013] Query the database of the distributed business system. If the second identity identification information and the second business interaction data exist in the database of the distributed business system, determine the first business node to be interacted with based on the second identity identification information and the second business interaction data, and then obtain the corresponding first digital certificate on the business node to be interacted.

[0014] According to a preferred solution for implementing the embodiment of the present invention, when the distributed business system receives a second business interaction signal sent by a business initiator, it analyzes whether the second identity information and second business interaction data of the business initiator exist in the database of the distributed business system. If so, it indicates that a digital certificate corresponding to the target business of the business initiator has been created and stored before. Therefore, the first business node to be interacted can be directly determined based on the second identity information and the second business interaction data, and then the corresponding first digital certificate can be directly obtained without repeatedly creating and storing evidence, so as to reduce the waste of computer resources.

[0015] As a preferred solution, the management of the corresponding digital certificate based on the hash value in the blockchain network is specifically as follows:

[0016] When the distributed service system receives the second service interaction signal sent by the service initiator, the distributed service system parses the second service interaction signal to obtain the second identity information and second service interaction data of the service initiator;

[0017] querying a database of the distributed business system, and if the second identity identification information and the second business interaction data do not exist in the database of the distributed business system, authenticating the business initiator based on the second identity identification information;

[0018] If the business initiator passes the identity authentication, then based on the second identity information and the second business interaction data, a second digital certificate corresponding to the business initiator is created and the second business node where the target business of the business initiator is located in the distributed business system is determined, and the second digital certificate corresponding to the business initiator, the second identity information and the second business interaction data are stored in the second business node, and then a hash operation is performed on the second business node to generate a hash value corresponding to the second business node, and the hash value corresponding to the second business node is stored in the blockchain network.

[0019] According to a preferred solution for implementing the embodiment of the present invention, when the distributed business system receives a second business interaction signal sent by a business initiator, if the second identity identification information and the second business interaction data of the business initiator do not exist in the database of the distributed business system, it is necessary to implement the digital certificate storage of the business initiator based on the second identity identification information and the second business interaction data of the business initiator.

[0020] As a preferred solution, if the user terminal passes the identity authentication, based on the first identity identification information and the first business interaction data, a corresponding first digital certificate is created and the first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the first business node, and then a hash operation is performed on the first business node to generate a hash value corresponding to the first business node, and the hash value corresponding to the first business node is stored in the blockchain network, specifically:

[0021] If the user terminal passes the identity authentication, then based on the first identity identification information and the first business interaction data, a corresponding first digital certificate is created and a first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the first business node, and then the integrity of the first digital certificate in the first business node is verified;

[0022] If the first digital certificate at the first business node passes the integrity verification, a hash operation is performed on the first business node to generate a hash value corresponding to the first business node, and the hash value corresponding to the first business node is stored in the blockchain network;

[0023] If the first digital certificate on the first business node fails the integrity verification, a first prompt signal is fed back to the user terminal, and then the first digital certificate is iteratively processed. During each iterative processing, a corresponding first digital certificate is created based on the first identity information and the first business interaction data, and the current first digital certificate is stored in the corresponding first business node. Then, the integrity of the first digital certificate on the first business node is verified until the first digital certificate currently on the first business node passes the integrity verification or the number of iterations is greater than the set number, then the iteration ends.

[0024] According to a preferred solution for implementing the embodiment of the present invention, after the user terminal passes the identity authentication, the first identity identification information and the first business interaction data of the user terminal, as well as the first digital certificate created based on the first identity identification information and the first business interaction data of the user terminal, are correspondingly stored in the first business node in the distributed business system, and then the integrity of the first digital certificate at the first business node is verified. If the integrity of the first digital certificate at the first business node is verified, a hash operation is performed on the first business node, and the hash value obtained by the operation is stored in the blockchain network to prevent the digital certificate stored in the distributed business system from being tampered with during the transmission process and affecting the evidence storage effect.

[0025] As a preferred solution, if the user terminal passes the identity authentication, based on the first identity identification information and the first business interaction data, a corresponding first digital certificate is created and a first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the first business node, and then the integrity of the first digital certificate in the first business node is verified, specifically:

[0026] If the user terminal passes the identity authentication, encrypting the first identity identification information and the first service interaction data to generate a corresponding first digital certificate, and performing a hash operation on the first digital certificate to generate a corresponding first hash value;

[0027] Based on the first service interaction data, determine a first service node where the target service of the user terminal is located in the distributed service system, and store the first digital certificate, the first identity information and the first service interaction data in the first service node in the distributed service system;

[0028] Performing a hash operation on the first digital certificate on the first service node to generate a corresponding second hash value;

[0029] comparing the second Hash value with the first Hash value;

[0030] If the second hash value is consistent with the first hash value, it is determined that the first digital certificate at the first service node passes the integrity verification;

[0031] If the second hash value is inconsistent with the first hash value, it is determined that the first digital certificate at the first service node has failed the integrity verification.

[0032] According to a preferred solution for implementing the embodiment of the present invention, when generating a first digital certificate, a hash operation is performed on the first digital certificate to generate a corresponding first hash value. After the first digital certificate is stored in a first business node in a distributed business system, a hash operation is performed again on the first digital certificate to generate a corresponding second hash value. The hash value is unique. By comparing the second hash value with the first hash value, it is possible to accurately determine whether the first digital certificate currently stored in the distributed business system has been tampered with, thereby improving the accuracy of evidence storage.

[0033] As a preferred solution, the identity authentication of the user terminal based on the first identity identification information is specifically:

[0034] Performing semantic analysis on the first identity information of the user terminal to identify whether the user terminal is in the current preset interactive device list;

[0035] If the user terminal is in the current preset interactive device list, determining that the user terminal has passed the identity authentication;

[0036] If the user terminal is not in the preset interactive device list, it is determined that the user terminal has not passed the identity authentication, and then a second prompt signal is fed back to the user terminal, and the reception of the service interaction signal of the user terminal is stopped until the current preset interactive device list changes. Then, based on the comparison between the identity identification information of the user terminal and the current preset interactive device list, the user terminal is authenticated again.

[0037] A preferred solution for implementing the embodiment of the present invention is to perform semantic analysis on the first identity identification information of the user terminal, and in combination with a pre-set interaction device identification list, identify whether the user terminal is in the current preset interaction device list. If the user terminal is not in the current preset interaction device list, it indicates that the current user terminal is an illegal user or a non-target user. At this time, the service interaction signal of the user terminal is stopped until the current preset interaction device list changes, and then re-verify whether the user terminal complies with the current preset interaction device list to meet business needs that may change at any time.

[0038] In order to solve the same technical problem, an embodiment of the present invention further provides a digital certificate storage management system, including:

[0039] An acquisition module, used to respond in real time to a first service interaction signal initiated by a user terminal, and acquire first identity information and first service interaction data of the user terminal;

[0040] A verification module, used for performing identity authentication on the user terminal based on the first identity identification information;

[0041] A certificate storage module, which is used to create a corresponding first digital certificate based on the first identity information and the first business interaction data if the user terminal passes the identity authentication, and determine the first business node where the target business of the user terminal is located in the distributed business system, and store the first digital certificate, the first identity information and the first business interaction data in the first business node, and then perform a hash operation on the first business node to generate a hash value corresponding to the first business node, and store the hash value corresponding to the first business node in the blockchain network;

[0042] A management module is used to manage corresponding digital certificates based on the hash value in the blockchain network.

[0043] As a preferred solution, the management module specifically includes:

[0044] A parsing unit, configured to parse a second service interaction signal sent by a service initiator when the distributed service system receives the second service interaction signal, and obtain second identity information and second service interaction data of the service initiator;

[0045] A database query unit is used to query the database of the distributed business system. If the second identity identification information and the second business interaction data exist in the database of the distributed business system, the first business node to be interacted is determined based on the second identity identification information and the second business interaction data, and then the corresponding first digital certificate is obtained on the business node to be interacted.

[0046] In order to solve the same technical problem, the present invention also provides a terminal, including a processor, a memory and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement the digital certificate storage management method.

[0047] In order to solve the same technical problem, the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the digital certificate storage management method.

[0048] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0049] The present invention provides a digital certificate storage management method, system, terminal and medium, which respond to a first business interaction signal initiated by a user terminal in real time, obtain the first identity identification information and first business interaction data of the user terminal, and then pre-identify the user terminal based on the first identity identification information of the user terminal. After the user terminal passes the identity authentication, subsequent digital certificate creation and storage management are performed, which can avoid business transactions with illegal users or non-target transaction users, thereby ensuring that transaction data will not be obtained by illegal users or non-target users, and jointly protecting the rights and interests of target users and distributed business systems. In addition, after the user terminal passes the identity authentication, based on the first identity identification information and the first business interaction data of the user terminal, a corresponding first digital certificate is created and the first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the predetermined first business node, and then the hash value obtained by the hash operation of the first business node is stored in the blockchain network. Through the hash value in the blockchain network, not only can the first digital certificate and other data be prevented from being tampered with, but the specific location of the first digital certificate in the distributed business system can also be quickly located, thereby realizing the unified evidence management of digital certificates in distributed business scenarios where data and business are dispersed.

[0050] Furthermore, after the generated first digital certificate is stored in the distributed business system, the integrity of the first digital certificate in the distributed business system is verified to prevent the digital certificate from being tampered with during transmission and affecting the storage effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 : A flowchart of a method for storing and managing digital certificates provided in the first embodiment of the present invention;

[0052] Figure 2 : A structural diagram of a digital certificate storage management system provided in Example 1 of the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] Embodiment one:

[0055] Please refer to Figure 1 , a digital certificate storage management method provided by an embodiment of the present invention, the method includes steps S1 to S4, each step is specifically as follows:

[0056] Step S1, responding in real time to a first service interaction signal initiated by a user terminal, and acquiring first identity information and first service interaction data of the user terminal.

[0057] In this embodiment, the first identity information of the user terminal can be a unique ID code of the user terminal, or a unique code pre-agreed between the user terminal and the distributed service system, or other unique identification information. The first service interaction data of the user terminal includes, but is not limited to: service interaction content of the target service of the user terminal, target interaction object of the user terminal, and identity information of the target interaction object of the user terminal.

[0058] Step S2: authenticating the user terminal based on the first identity information.

[0059] As a preferred solution, step S2 includes step S21 to step S23, and each step is specifically as follows:

[0060] Step S21, semantically parse the first identity information of the user terminal to identify whether the user terminal is in the current preset interactive device list; if the user terminal is in the current preset interactive device list, execute step S22; if the user terminal is not in the preset interactive device list, execute step S23.

[0061] In this embodiment, if the first identity identification information of the user terminal is text data information, before semantic analysis is performed on the first identity identification information of the user terminal, in order to improve the accuracy of the semantic analysis, the first identity identification information of the user terminal can be pre-processed by word segmentation, removal of garbled characters, etc.

[0062] Step S22, determining whether the user terminal passes identity authentication.

[0063] Step S23, determines that the user terminal has not passed the identity authentication, and then feeds back a second prompt signal to the user terminal to prompt the user terminal that it does not meet the preset business interaction requirements, and stops receiving the user terminal's business interaction signals until the current preset interaction device list changes. Based on the comparison between the user terminal's identity identification information and the current preset interaction device list, the user terminal is authenticated again.

[0064] It should be noted that, in the process of creating, storing and managing digital credentials, the preset interactive device list may change with the changes in user application requirements. Therefore, when the preset interactive device list changes, based on the changed preset interactive device list, the user terminal that has not passed the identity authentication before continues to be authenticated. The number of repetitions of the above-mentioned authentication process can be limited or unlimited, and the limited number of times can be adaptively adjusted according to actual application requirements. As an example, according to actual application requirements, the authentication process is set to be repeated a limited number of times, and the number of times is set to 2, specifically: if it is identified that the user terminal is not in the preset interactive device list during the first authentication, it is determined that the user terminal has not passed the identity authentication, and the service interaction signal of the user terminal is stopped. At a subsequent moment, it is detected that the preset interactive device list has changed, then based on the comparison of the user terminal's identity identification information with the current preset interactive device list, the user terminal is authenticated for the second time, but the user terminal still fails to pass the identity authentication this time, then the service interaction signal of the user terminal is stopped again. Since the number of times is limited to 2, even if the preset interactive device list is detected to have changed, the user terminal will not be authenticated again.

[0065] Step S3, if the user terminal passes the identity authentication, then based on the first identity identification information and the first business interaction data, a corresponding first digital certificate is created and the first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the first business node, and then a hash operation is performed on the first business node to generate a hash value corresponding to the first business node, and the hash value corresponding to the first business node is stored in the blockchain network to achieve stable and secure evidence storage.

[0066] As a preferred solution, step S3 includes step S31 to step S33, and each step is specifically as follows:

[0067] Step S31, if the user terminal passes the identity authentication, then based on the first identity identification information and the first business interaction data, a corresponding first digital certificate is created and the first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the first business node, and then the integrity of the first digital certificate at the first business node is verified; if the first digital certificate at the first business node passes the integrity verification, step S32 is executed; if the first digital certificate at the first business node fails the integrity verification, step S33 is executed.

[0068] As a preferred solution, step S31 includes step S311 to step S316, and each step is specifically as follows:

[0069] Step S311: If the user terminal passes the identity authentication, the first identity identification information and the first service interaction data are encrypted to generate a corresponding first digital certificate, and a hash operation is performed on the first digital certificate to generate a corresponding first hash value.

[0070] It should be noted that the first hash value generated by hashing the first digital certificate here is not used as an index address to trace the digital certificate, but rather uses the uniqueness of the hash value to compare the current first hash value with the second hash value corresponding to the first digital certificate stored on the first business node to indicate whether the first digital certificate has been tampered with before and after storage.

[0071] Step S312, based on the first business interaction data, determine the first business node where the target business of the user terminal is located in the distributed business system, and store the first digital certificate, the first identity information and the first business interaction data in the first business node in the distributed business system.

[0072] Step S313: Perform a hash operation on the first digital certificate on the first business node to generate a corresponding second hash value.

[0073] Step S314: compare the second Hash value with the first Hash value.

[0074] Step S315: If the second hash value is consistent with the first hash value, it is determined that the first digital certificate at the first business node passes the integrity verification.

[0075] Step S316: If the second hash value is inconsistent with the first hash value, it indicates that the first digital certificate at the first business node is different from the first digital certificate before being stored in the first business node. Therefore, it is determined that the first digital certificate at the first business node has not passed the integrity verification.

[0076] Step S32: perform a hash operation on the first business node to generate a hash value corresponding to the first business node, and store the hash value corresponding to the first business node in the blockchain network, using the hash value corresponding to the first business node as the unique index address of the first business node.

[0077] Step S33, feed back a first prompt signal to the user end, and then iterate the first digital certificate. During each iterative processing, based on the first identity information and the first business interaction data, a corresponding first digital certificate is created and the current first digital certificate is stored in the corresponding first business node. Then, integrity verification is performed on the first digital certificate at the first business node until the first digital certificate currently at the first business node passes the integrity verification or the iteration number is greater than the set number, then the iteration ends.

[0078] Step S4, managing the corresponding digital certificate based on the hash value in the blockchain network.

[0079] As a preferred solution, step S4 may include step S41 to step S42, each of which is specifically as follows:

[0080] Step S41: When the distributed service system receives a second service interaction signal sent by a service initiator, the distributed service system parses the second service interaction signal to obtain the second identity information and second service interaction data of the service initiator.

[0081] Step S42, query the database of the distributed business system. If the second identity identification information and the second business interaction data exist in the database of the distributed business system, determine the first business node to be interacted based on the second identity identification information and the second business interaction data, and then obtain the corresponding first digital certificate on the business node to be interacted.

[0082] In this embodiment, the first business interaction data of the user end and the second business interaction data of the business initiator also include the validity period of the target business. The first identity information and the first business interaction data are encrypted to generate the corresponding first digital certificate, and the second identity information and the second business interaction data are encrypted to generate the corresponding second digital certificate. The validity period of the first digital certificate and the second digital certificate is the same as the validity period of the target business. When the validity period is exceeded, the first digital certificate and the second digital certificate are invalid. At this time, the database of the distributed business system is queried. Even if the second identity information and the second business interaction data of the business initiator are queried in the database of the distributed business system, and the first business node to be interacted is determined, the first digital certificate on the first business node to be interacted is invalid. Therefore, in order to complete the business interaction / transaction, it is necessary to re-create the second digital certificate corresponding to the business initiator based on the second identity information and the second business interaction data, and determine the second business node where the target business of the business initiator is located in the distributed business system, and store the second digital certificate, the second identity information and the second business interaction data corresponding to the business initiator in the second business node, and then perform a hash operation on the second business node to generate a hash value corresponding to the second business node, and store the hash value corresponding to the second business node in the blockchain network.

[0083] As a preferred solution, step S4 may include steps S43 to S45, each of which is specifically as follows:

[0084] Step S43: When the distributed service system receives the second service interaction signal sent by the service initiator, it parses the second service interaction signal to obtain the second identity information and second service interaction data of the service initiator.

[0085] Step S44, querying the database of the distributed business system, if the second identity information and the second business interaction data do not exist in the database of the distributed business system, then performing identity authentication on the business initiator based on the second identity information.

[0086] Step S45, if the business initiator passes the identity authentication, then based on the second identity information and the second business interaction data, a second digital certificate corresponding to the business initiator is created and the second business node where the target business of the business initiator is located in the distributed business system is determined, and the second digital certificate, second identity information and second business interaction data corresponding to the business initiator are stored in the second business node, and then a hash operation is performed on the second business node to generate a hash value corresponding to the second business node, and the hash value corresponding to the second business node is stored in the blockchain network.

[0087] Please refer to Figure 2, is a structural diagram of a digital certificate storage management system provided by an embodiment of the present invention, the system includes an acquisition module M1, a verification module M2, a storage module M3 and a management module M4, and the specifics of each module are as follows:

[0088] The acquisition module M1 is used to respond in real time to the first service interaction signal initiated by the user terminal and acquire the first identity information and first service interaction data of the user terminal;

[0089] The verification module M2 is used to authenticate the user terminal based on the first identity information;

[0090] The evidence storage module M3 is used to create a corresponding first digital certificate based on the first identity information and the first business interaction data if the user terminal passes the identity authentication, and determine the first business node where the target business of the user terminal is located in the distributed business system, and store the first digital certificate, the first identity information and the first business interaction data in the first business node, and then perform a hash operation on the first business node to generate a hash value corresponding to the first business node, and store the hash value corresponding to the first business node in the blockchain network;

[0091] The management module M4 is used to manage the corresponding digital certificate based on the hash value in the blockchain network.

[0092] As a preferred solution, the management module M4 specifically includes a parsing unit 41 and a database query unit 42, and the details of each unit are as follows:

[0093] The parsing unit 41 is configured to parse the second service interaction signal when the distributed service system receives the second service interaction signal sent by the service initiator, and obtain the second identity information and the second service interaction data of the service initiator;

[0094] The database query unit 42 is used to query the database of the distributed business system. If the second identity identification information and the second business interaction data exist in the database of the distributed business system, the first business node to be interacted is determined based on the second identity identification information and the second business interaction data, and then the corresponding first digital certificate is obtained on the business node to be interacted.

[0095] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0096] In addition, an embodiment of the present invention further provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a digital certificate storage management method of embodiment one.

[0097] In addition, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement a digital certificate storage management method of embodiment one.

[0098] Preferably, the computer program can be divided into one or more modules / units (such as computer program, computer program), one or more modules / units are stored in the memory and executed by the processor to complete the present invention. One or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal.

[0099] The processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor can also be any conventional processor. The processor is the control center of the terminal, and uses various interfaces and lines to connect various parts of the terminal.

[0100] The memory mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card (Flash Card), etc., or the memory can also be other volatile solid-state storage devices.

[0101] It should be noted that the above-mentioned terminal may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that the above-mentioned terminal is merely an example and does not constitute a limitation on the terminal. It may include more or fewer components, or a combination of certain components, or different components.

[0102] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0103] The present invention provides a digital certificate storage management method, system, terminal and medium, which respond to a first business interaction signal initiated by a user terminal in real time, obtain the first identity identification information and first business interaction data of the user terminal, and then pre-identify the user terminal based on the first identity identification information of the user terminal. After the user terminal passes the identity authentication, subsequent digital certificate creation and storage management are performed, which can avoid business transactions with illegal users or non-target transaction users, thereby ensuring that transaction data will not be obtained by illegal users or non-target users, and jointly protecting the rights and interests of target users and distributed business systems. In addition, after the user terminal passes the identity authentication, based on the first identity identification information and the first business interaction data of the user terminal, a corresponding first digital certificate is created and the first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the predetermined first business node, and then the hash value obtained by the hash operation of the first business node is stored in the blockchain network. Through the hash value in the blockchain network, not only can the first digital certificate and other data be prevented from being tampered with, but the specific location of the first digital certificate in the distributed business system can also be quickly located, thereby realizing the unified evidence management of digital certificates in distributed business scenarios where data and business are dispersed.

[0104] Furthermore, after the generated first digital certificate is stored in the distributed business system, the integrity of the first digital certificate in the distributed business system is verified to prevent the digital certificate from being tampered with during transmission and affecting the storage effect.

[0105] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A digital certificate storage management method, characterized in that: include: Responding in real time to a first service interaction signal initiated by a user terminal, and acquiring first identity information and first service interaction data of the user terminal; Performing identity authentication on the user terminal based on the first identity identification information; If the user terminal passes the identity authentication, based on the first identity identification information and the first business interaction data, a corresponding first digital certificate is created and a first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the first business node, and then a hash operation is performed on the first business node to generate a hash value corresponding to the first business node, and the hash value corresponding to the first business node is stored in the blockchain network; Based on the hash value in the blockchain network, manage the corresponding digital certificate; Wherein, the management of the corresponding digital certificate based on the hash value in the blockchain network is specifically as follows: When the distributed service system receives the second service interaction signal sent by the service initiator, the distributed service system parses the second service interaction signal to obtain the second identity information and second service interaction data of the service initiator; querying a database of the distributed business system, and if the second identity information and the second business interaction data exist in the database of the distributed business system, determining a first business node to be interacted with based on the second identity information and the second business interaction data, and then obtaining a corresponding first digital certificate on the business node to be interacted with; Query the database of the distributed business system. If the second identity information and the second business interaction data do not exist in the database of the distributed business system, authenticate the business initiator based on the second identity information; if the business initiator passes the identity authentication, create a second digital certificate corresponding to the business initiator based on the second identity information and the second business interaction data, determine the second business node where the target business of the business initiator is located in the distributed business system, store the second digital certificate corresponding to the business initiator, the second identity information and the second business interaction data in the second business node, then perform a hash operation on the second business node to generate a hash value corresponding to the second business node, and store the hash value corresponding to the second business node in the blockchain network; The first service interaction data includes the validity period of the target service, the second service interaction data includes the validity period of the target service, the validity period of the first digital certificate is the same as the validity period of the target service, and the validity period of the second digital certificate is the same as the validity period of the target service; The digital certificate storage management method further includes: If the current time exceeds the validity period of the first digital certificate or the current time exceeds the validity period of the second digital certificate, the second digital certificate corresponding to the business initiator is created based on the second identity information and the second business interaction data, and the second business node where the target business of the business initiator is located in the distributed business system is determined, and the second digital certificate corresponding to the business initiator, the second identity information and the second business interaction data are stored in the second business node, and then a hash operation is performed on the second business node to generate a hash value corresponding to the second business node, and the hash value corresponding to the second business node is stored in the blockchain network.

2. A digital certificate storage management method as claimed in claim 1, characterized in that: If the user terminal passes the identity authentication, based on the first identity information and the first business interaction data, a corresponding first digital certificate is created and the first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity information and the first business interaction data are stored in the first business node, and then a hash operation is performed on the first business node to generate a hash value corresponding to the first business node, and the hash value corresponding to the first business node is stored in the blockchain network, specifically: If the user terminal passes the identity authentication, then based on the first identity identification information and the first business interaction data, a corresponding first digital certificate is created and a first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the first business node, and then the integrity of the first digital certificate in the first business node is verified; If the first digital certificate at the first business node passes the integrity verification, a hash operation is performed on the first business node to generate a hash value corresponding to the first business node, and the hash value corresponding to the first business node is stored in the blockchain network; If the first digital certificate on the first business node fails the integrity verification, a first prompt signal is fed back to the user terminal, and then the first digital certificate is iteratively processed. During each iterative processing, a corresponding first digital certificate is created based on the first identity information and the first business interaction data, and the current first digital certificate is stored in the corresponding first business node. Then, the integrity of the first digital certificate on the first business node is verified until the first digital certificate currently on the first business node passes the integrity verification or the number of iterations is greater than the set number, then the iteration ends.

3. A digital certificate storage management method as claimed in claim 2, characterized in that: If the user terminal passes the identity authentication, based on the first identity identification information and the first business interaction data, a corresponding first digital certificate is created and a first business node where the target business of the user terminal is located in the distributed business system is determined, and the first digital certificate, the first identity identification information and the first business interaction data are stored in the first business node, and then the integrity of the first digital certificate in the first business node is verified, specifically: If the user terminal passes the identity authentication, encrypting the first identity identification information and the first service interaction data to generate a corresponding first digital certificate, and performing a hash operation on the first digital certificate to generate a corresponding first hash value; Based on the first service interaction data, determine a first service node where the target service of the user terminal is located in the distributed service system, and store the first digital certificate, the first identity information and the first service interaction data in the first service node in the distributed service system; Performing a hash operation on the first digital certificate on the first service node to generate a corresponding second hash value; comparing the second Hash value with the first Hash value; If the second hash value is consistent with the first hash value, it is determined that the first digital certificate at the first service node passes the integrity verification; If the second hash value is inconsistent with the first hash value, it is determined that the first digital certificate at the first service node has failed the integrity verification.

4. A digital certificate storage management method as claimed in claim 1, characterized in that: The performing identity authentication on the user terminal based on the first identity identification information is specifically: Performing semantic analysis on the first identity information of the user terminal to identify whether the user terminal is in the current preset interactive device list; If the user terminal is in the current preset interactive device list, determining that the user terminal has passed the identity authentication; If the user terminal is not in the preset interactive device list, it is determined that the user terminal has not passed the identity authentication, and then a second prompt signal is fed back to the user terminal, and the reception of the service interaction signal of the user terminal is stopped until the current preset interactive device list changes. Then, based on the comparison between the identity identification information of the user terminal and the current preset interactive device list, the user terminal is authenticated again.

5. A digital certificate storage management system, characterized in that: include: An acquisition module, used to respond in real time to a first service interaction signal initiated by a user terminal, and acquire first identity information and first service interaction data of the user terminal; A verification module, used for performing identity authentication on the user terminal based on the first identity identification information; A certificate storage module, which is used to create a corresponding first digital certificate based on the first identity information and the first business interaction data if the user terminal passes the identity authentication, and determine the first business node where the target business of the user terminal is located in the distributed business system, and store the first digital certificate, the first identity information and the first business interaction data in the first business node, and then perform a hash operation on the first business node to generate a hash value corresponding to the first business node, and store the hash value corresponding to the first business node in the blockchain network; A management module, used to manage corresponding digital certificates based on the hash value in the blockchain network; Wherein, the management module specifically includes: A parsing unit, configured to parse a second service interaction signal sent by a service initiator when the distributed service system receives the second service interaction signal, and obtain second identity information and second service interaction data of the service initiator; a database query unit, configured to query a database of the distributed business system, and if the second identity information and the second business interaction data exist in the database of the distributed business system, determine a first business node to be interacted with based on the second identity information and the second business interaction data, and then obtain a corresponding first digital certificate on the business node to be interacted with; Wherein, the database query unit is also used to query the database of the distributed business system. If the second identity identification information and the second business interaction data do not exist in the database of the distributed business system, the business initiator is authenticated based on the second identity identification information; if the business initiator passes the identity authentication, a second digital certificate corresponding to the business initiator is created based on the second identity identification information and the second business interaction data, and the second business node where the target business of the business initiator is located in the distributed business system is determined, and the second digital certificate corresponding to the business initiator, the second identity identification information and the second business interaction data are stored in the second business node, and then a hash operation is performed on the second business node to generate a hash value corresponding to the second business node, and the hash value corresponding to the second business node is stored in the blockchain network; The first service interaction data includes the validity period of the target service, the second service interaction data includes the validity period of the target service, the validity period of the first digital certificate is the same as the validity period of the target service, and the validity period of the second digital certificate is the same as the validity period of the target service; Among them, the digital certificate storage management system also includes another module; the other module is used to create a second digital certificate corresponding to the business initiator and determine the second business node where the target business of the business initiator is located in the distributed business system based on the second identity information and the second business interaction data if the current time exceeds the validity period of the first digital certificate or the current time exceeds the validity period of the second digital certificate, and store the second digital certificate corresponding to the business initiator, the second identity information and the second business interaction data in the second business node, then perform a hash operation on the second business node to generate a hash value corresponding to the second business node, and store the hash value corresponding to the second business node in the blockchain network.

6. A terminal, characterized in that: It comprises a processor, a memory and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement a digital certificate storage management method as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a digital certificate storage management method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Identity authentication method, device and system based on block chain

    CN115208642A

  • Architecture and Methods for Self-Sovereign Digital identity

    US20190097812A1