Distributed certificate management system and construction method thereof, certificate management method

By adopting a heterogeneous chain structure of certificate chain, revocation chain and custody chain on the blockchain, the problems of chaotic certificate storage and low query efficiency under the CA hierarchical structure are solved, efficient storage and query of certificates are achieved, and the PKI system is improved. Service efficiency and scalability.

CN115189883BActive Publication Date: 2024-10-22XIDIAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210603332.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2024-10-22
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

The existing blockchain-based certificate management system has problems such as certificate storage confusion and low query efficiency under the CA hierarchical structure, which affects the expansion and service efficiency of the PKI system.

Method used

The heterogeneous chain structure of certificate chain, revocation chain and custody chain is used to store certificate issuance, revocation and important operation records respectively. The main chain and sub-chain separately store CA and ordinary certificate information, and use smart contracts and multi-chain concurrent traversal query mechanisms. Improve query efficiency.

Benefits of technology

It realizes efficient storage and query of different attribute certificates, improves the service efficiency and scalability of the distributed PKI system, and ensures the security and stability of the PKI system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115189883B_ABST
    Figure CN115189883B_ABST
Patent Text Reader

Abstract

The present invention relates to a distributed certificate management system and a construction method thereof, and a certificate management method. The distributed certificate management system includes: a certificate chain, a revocation chain and a supervision chain. The certificate chain, the revocation chain and the supervision chain all adopt a heterogeneous chain structure, wherein the certificate chain is used to store certificate information issued by a certificate issuing authority; the revocation chain is used to store certificate information revoked by a certificate issuing authority; the supervision chain is used to count and store some important operations performed on certificates in the certificate issuing authority. The distributed certificate management system implements different certificate management services, and certificates with different attributes are stored in different blockchains, which improves the efficiency of querying and traversing certificate information on the chain, and improves the efficiency of distributed PKI in providing services to the outside world; the certificate management system has a clear framework structure and is easy to expand, which is convenient for supervising and managing certificate records on the chain, and ensures the safe and stable expansion of the PKI system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of blockchain, and specifically relates to a distributed certificate management system and a construction method thereof, and a certificate management method. Background Art

[0002] With the rapid rise of the Internet, especially the rapid development of e-commerce, online payment, smart government affairs and other applications, the Public Key Infrastructure (PKI) system, which is the foundation and core of network security construction, provides basic protection for the security of Internet applications. However, while bringing convenience to the people, the security issues hidden behind it are becoming increasingly prominent, such as single point failures, vulnerability to attacks, and contaminated certificates are still in normal use.

[0003] In view of the above background and problems, more and more research has been conducted on blockchain, which has inherent trust characteristics, and traditional public key infrastructure (PKI) that transfers trust. Trust upgrade of PKI technology based on blockchain has become one of the important research directions. However, factors such as the structure of blockchain have hindered the further development of PKI systems based on blockchain.

[0004] The current research is mainly to realize a certificate management system based on blockchain, and on this basis, provide certificate services for external scenarios and applications, solving the problem that the traditional PKI system is untrustworthy and vulnerable to attacks. The first existing technology uses the decentralized and tamper-proof characteristics of blockchain to solve the single point failure problem and the difficulty of mutual trust among multiple certificate issuing agencies (CA) in traditional PKI technology, reducing the construction, operation and maintenance costs of CA centers in traditional PKI technology, and improving the efficiency of certificate application and configuration. The second existing technology publishes CA signed certificates and their revocation status information as transactions in the global certificate blockchain; the certificate blockchain acts as an additional public log to monitor CA's certificate signing and revocation operations, and grants the server collaborative control over its certificates. The third existing technology establishes a blockchain for identity certificate management through multiple CA nodes, and manages identity certificates with the help of the decentralized, multi-party decision-making, and tamper-proof characteristics of blockchain, which can be deployed in a distributed and seamless manner, greatly improving the availability and security of identity certificate management. Based on the characteristics of blockchain's immutability and traceability, the fourth prior art builds a highly reliable certificate processing environment in the blockchain, replacing the centralized storage method in the prior art, making the certificate processing process public and markable, and each certificate operation record will be permanently stored, thereby avoiding the occurrence of false authentication.

[0005] It can be seen that the focus of existing technologies is to implement a certificate management system based on blockchain to provide more reliable services to external applications. However, there are the following problems: (1) The existing scheme only considers the distributed management of certificates under a single CA or ordinary multiple CAs, and does not consider the distributed management of certificates under a hierarchical CA structure. At present, CA certificates and ordinary certificates (certificates issued by CA to users) are cross-stored in the blockchain. The chaotic storage affects the management of on-chain certificates and the safe and stable expansion of the PKI system. In addition, the issuance and revocation records of certificates are stored together in the blockchain. A large number of historical records with different attributes lead to low efficiency in querying and traversing on-chain certificate information, which affects the efficiency of distributed PKI in providing external services. Summary of the invention

[0006] In order to solve the above problems existing in the prior art, the present invention provides a distributed certificate management system and a construction method thereof, and a certificate management method. The technical problem to be solved by the present invention is achieved through the following technical solutions:

[0007] The embodiment of the present invention provides a distributed certificate management system based on blockchain, including: a certificate chain, a revocation chain and a supervision chain, wherein the certificate chain, the revocation chain and the supervision chain all adopt a heterogeneous chain structure, wherein:

[0008] The certificate chain is used to store certificate information issued by a certificate issuing authority;

[0009] The revocation chain is used to store revoked certificate information;

[0010] The custody chain is used to count and store some important operations performed on the certificate by the certificate issuing authority.

[0011] In one embodiment of the present invention, the certificate chain and the revocation chain each include a main chain and several subchains, wherein:

[0012] In the certificate chain, the main chain is used to store the CA certificate in the strict hierarchical trust model; the subchains are linked to the blocks of the main chain in a one-to-one correspondence, and are used to store the common certificates issued to users by the leaf certificate issuing authority in the strict hierarchical trust model;

[0013] In the revocation chain, the main chain is used to store the revoked CA certificate; a plurality of sub-chains are linked to a plurality of blocks of the main chain in a one-to-one correspondence, and are used to store the revoked common certificates.

[0014] In one embodiment of the present invention, the main chain and the sub-chain each include a number of blocks, each of which includes a block header, a block transaction and metadata, wherein:

[0015] The block header is used to define the block number, the hash value of the previous block, and the hash value of the transaction in this block;

[0016] The block transaction is used to store multiple certificate information transactions, and generate a hash value recorded in the block header;

[0017] The metadata is used to define sorting node information, consensus type, and signature.

[0018] In one embodiment of the present invention, the CA certificate and the ordinary certificate both include: version number, serial number, signature algorithm, issuer name, start / end time, certificate holder information, certificate holder public key, issuer unique identifier, chain number, block number, transaction number, certificate signature algorithm and signature data.

[0019] Another embodiment of the present invention provides a method for constructing a distributed certificate management system based on blockchain, comprising the steps of:

[0020] The blockchain system starts, creates the initial block, registers and authenticates the certificate issuing authority in the PKI system, and obtains the attribute information of the blockchain node;

[0021] According to the hierarchical level of the strict hierarchical trust model, the CA certificate is put on the chain starting from the highest root CA, and a smart contract transaction is generated and packaged in the first block. CAs of the same level generate smart contract transactions one by one according to the certificate issuance time, and each generates a block transaction until the leaf CA node completes the certificate chain operation and builds the main chain;

[0022] The common certificates issued by the leaf CA in the strict hierarchical trust model are packaged to generate a block, and the subchain linked to the leaf CA is found, and the block corresponding to the common certificate is recorded at the end of the subchain to construct the subchain.

[0023] In one embodiment of the present invention, the method for constructing a distributed certificate management system based on blockchain further includes the steps of:

[0024] When a new leaf CA is generated in the strict hierarchical trust model, the identity of the new leaf CA is registered and authenticated in the PKI system, and through smart contract transactions, the certificate information issued by the new leaf CA is linked to the end of the main chain to achieve the expansion of the main chain.

[0025] Another embodiment of the present invention provides a certificate management method of a distributed certificate management system based on blockchain, which uses the distributed certificate management system based on blockchain as described in the above embodiment to manage certificates, including:

[0026] A distributed certificate management system based on blockchain for certificate application or certificate revocation;

[0027] Certificate query based on blockchain-based distributed certificate management system.

[0028] In one embodiment of the present invention, a distributed certificate management system based on blockchain performs certificate application or certificate revocation, including the steps of:

[0029] The CA sends certificate issuance information or certificate revocation information to the terminal according to the verified certificate application information or certificate revocation information, and forwards the certificate issuance information or the certificate revocation information to the blockchain node;

[0030] The blockchain node generates a certificate transaction according to the smart contract and uploads the certificate issuance information or the certificate revocation information to the certificate chain or the revocation chain.

[0031] The distributed certificate management system based on blockchain performs certificate query based on the distributed certificate management system of blockchain, including the steps of:

[0032] Determine the first target chain in the certificate chain by the chain number of the certificate to be queried, determine the first target block in the first target chain by the block number, and verify whether the certificate information stored in the first target block is consistent with the information of the certificate to be queried by the transaction number;

[0033] When it is determined that the certificate information stored in the first target block is consistent with the information of the certificate to be queried, determining the second target chain in the revocation chain by the chain number, and querying all revoked certificate transactions in the second target chain;

[0034] When the certificate to be queried is not found in the revocation chain, the certificate to be queried is authenticated; when the certificate to be queried is found in the revocation chain, the certificate to be queried has been revoked.

[0035] Based on the distributed certificate management system of blockchain, query all certificate revocation transactions in the second target chain, including:

[0036] A multi-chain concurrent traversal query mechanism is adopted to traverse from the latest blocks of multiple sub-chains to the initial block, and query all revocation certificate transactions in the second target chain.

[0037] Compared with the prior art, the present invention has the following beneficial effects:

[0038] 1. The distributed certificate management system of the present invention includes a certificate chain, a revocation chain and a supervision chain, which realizes different certificate management services. Certificates with different attributes are stored in different blockchains, which improves the efficiency of querying and traversing certificate information on the chain, and improves the efficiency of distributed PKI in providing services to the outside world. The certificate chain, the revocation chain and the supervision chain all adopt a heterogeneous chain structure, which realizes the process of converting the PKI model of strict hierarchical trust to a heterogeneous chain. The certificate management system has a clear framework structure and is easy to expand, which is convenient for supervising and managing certificate records on the chain, and ensures the safe and stable expansion of the PKI system.

[0039] 2. The block structure and certificate structure in the distributed certificate management system based on blockchain of the present invention can realize the rapid query and traversal process of certificates. Combined with the heterogeneous chain framework, the certificate structure records the specific location of the certificate in the system, and the certificate records in the blockchain can be quickly queried through function calls; in the revocation chain, the revoked certificates can be synchronously traversed through multiple sub-chains to speed up the query speed.

[0040] 3. In the construction method of the blockchain-based distributed certificate management system of the present invention, when a new CA is added, the CA certificate is recorded on the main chain and a related sub-chain is added; when a new ordinary certificate is added, a new certificate is issued by the CA and recorded on the related sub-chain; the expansion process matches the certificate management system framework and has good scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A member interaction diagram of a distributed certificate management system based on blockchain provided by an embodiment of the present invention;

[0042] Figure 2 A framework diagram of a distributed certificate management system based on blockchain provided by an embodiment of the present invention;

[0043] Figure 3 A block structure diagram of a distributed certificate management system based on blockchain provided by an embodiment of the present invention;

[0044] Figure 4 A certificate structure diagram of a distributed certificate management system based on blockchain provided by an embodiment of the present invention;

[0045] Figure 5 A flow chart of converting a strict hierarchical trust PKI model to a heterogeneous chain provided by an embodiment of the present invention;

[0046] Figure 6 A flowchart of a distributed certificate management system based on blockchain for certificate application or certificate revocation provided in an embodiment of the present invention;

[0047] Figure 7A flowchart of certificate query in a distributed certificate management system based on blockchain provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.

[0049] Embodiment 1

[0050] See also Figure 1 , Figure 2 , Figure 3 and Figure 4 , Figure 1 A member interaction diagram of a distributed certificate management system based on blockchain provided by an embodiment of the present invention, Figure 2 A framework diagram of a distributed certificate management system based on blockchain provided by an embodiment of the present invention, Figure 3 A block structure diagram of a distributed certificate management system based on blockchain provided by an embodiment of the present invention, Figure 4 A certificate structure diagram of a distributed certificate management system based on blockchain provided in an embodiment of the present invention.

[0051] like Figure 1 As shown, the distributed certificate management system based on blockchain is interacted by four different types of members, including terminals, domain servers, CAs and blockchain nodes.

[0052] Specifically, the terminal (which can be a user or a device) obtains various data from the network as required, sends an access request to the target server, and then attempts to establish a trusted link with the domain server through the certificate.

[0053] A domain server refers to a collection of services, such as browsers and apps. A domain server establishes a trusted link with the Transport Layer Security (TLS) protocol through the CA's service interface, and provides computing or application services to other clients in the network.

[0054] Blockchain nodes are the corresponding nodes of CA in maintaining the blockchain certificate system. A CA organization can have one or more blockchain nodes. Blockchain nodes are responsible for uploading certificate information to the chain and managing uplinked certificates, providing certificate authentication service interfaces to users or domain servers, and achieving the purpose of decentralized and tamper-proof certificates through sharing of blockchain ledger information nodes.

[0055] like Figure 2 As shown, the distributed certificate management system based on blockchain includes: a certificate chain, a revocation chain and a supervision chain, and the certificate chain, the revocation chain and the supervision chain all adopt a heterogeneous chain structure.

[0056] Specifically, the certificate chain is used to store certificate information issued by a certificate issuing authority. Furthermore, the certificate chain includes a main chain and several subchains, the main chain is used to store CA certificates in a strict hierarchical trust model; the subchains are linked to several blocks of the main chain in a one-to-one correspondence, and are used to store ordinary certificates issued to users by a certificate issuing authority in the strict hierarchical trust model, and the ordinary certificates stored in the subchains are related to the linked CA.

[0057] Specifically, the revocation chain is used to store the certificate information revoked by the certificate issuing authority. For example, when the certificate becomes unsafe due to special circumstances such as key loss, the certificate information that needs to be revoked is stored in the revocation chain. Furthermore, the revocation chain includes a main chain and several subchains, the main chain is used to store the revoked CA certificate; the several subchains are linked to several blocks of the main chain in a one-to-one correspondence, and are used to record the revoked ordinary certificates.

[0058] Specifically, the supervision chain is used to count and store some important operations on the certificate in the certificate issuing authority to supervise the operations of each certificate issuing authority so that each CA node can take correct operations. Furthermore, the supervision chain includes a main chain and several sub-chains, and the several sub-chains are linked to the several blocks of the main chain in a one-to-one correspondence.

[0059] like Figure 3 As shown, the main chain and the sub-chain each include a number of blocks, and each block includes a block header, block transactions and metadata.

[0060] Specifically, the block header is used to define the block number, the hash value of the previous block, and the hash value of the transaction in this block. The block forms a chain by recording the hash value of the previous block, and uses the one-way hash function characteristics to prevent the block data from being tampered with.

[0061] Specifically, the block transaction is used to store multiple certificate information transactions and generate a hash value to be recorded in the block header. It can be understood that the block transaction aggregates the certificate information transactions in multiple transaction pools and stores the certificate information; the block transaction has only one data array, which is a collection of block transactions and also the location for storing certificate information.

[0062] Specifically, metadata includes information about defined sorting nodes, consensus types, signatures, and more.

[0063] like Figure 4 As shown, the CA certificate and the ordinary certificate include: version number, serial number, signature algorithm, issuer name, start / end time, certificate holder information, certificate holder public key, issuer unique identifier, chain number, block number, transaction number, certificate signature algorithm and signature data.

[0064] Specifically, the certificate structure is based on the traditional X.509 certificate format and adds new fields. The traditional X.509 certificate format includes version number, serial number, signature algorithm, issuer name, start / end time, certificate holder information, certificate holder public key, issuer unique identifier, certificate signature algorithm and signature data. The new fields include: blockchain number (SubchainNumber), block number (BlockNumber) and transaction number (T RAN nsactionNumber). The blockchain number mainly distinguishes the numbers of the main chain and subchain. The main chain number is 0, and each of the remaining subchains has a number related to the main chain link CA, which is designed to facilitate the determination and query of chain information. The block header of each block has a block number to distinguish each block and facilitate block query. In the subchain, each block can have more than one hundred certificate transactions at most. Each transaction is stored in the array structure of data by sorting. The transaction number can quickly determine the location of a certificate.

[0065] In order to solve the problem of chaotic storage of certificates with many attributes, this embodiment designs a certificate management model including three different functional chains, namely, certificate chain, revocation chain and supervision chain, and realizes different certificate management services; the certificate chain, revocation chain and supervision chain all adopt heterogeneous chain structure, realizing the process of converting the PKI model of strict hierarchical trust to heterogeneous chain; the certificate management system has a clear framework structure, is easy to expand, and is convenient for supervising and managing certificate records on the chain.

[0066] Embodiment 2

[0067] Based on Example 1, this example provides a method for constructing a distributed certificate management system based on blockchain. The method converts a PKI model based on strict hierarchical trust into a heterogeneous chain, thereby constructing the distributed certificate management system described in Example 1.

[0068] See also Figure 5 , Figure 5 A flow chart of converting a strict hierarchical trust PKI model to a heterogeneous chain is provided in an embodiment of the present invention.

[0069] The construction method includes the steps of:

[0070] Initialization phase: The blockchain system starts, creates the initial block, registers and authenticates the certificate issuing authority in the PKI system, and obtains the attribute information of the blockchain node. Specifically, the certificate issuing authority in the PKI system is registered and authenticated in the Fabric system.

[0071] Main chain construction phase: According to the hierarchical level of the strict hierarchical trust model, the CA certificate is chained from the highest root CA, and a smart contract transaction is generated and packaged in the first block. CAs of the same level generate smart contract transactions one by one according to the certificate issuance time, and each generates a block transaction until the leaf CA node completes the certificate chain operation and builds the main chain.

[0072] Subchain construction phase: The common certificates issued by the leaf CA in the strict hierarchical trust model are packaged to generate a block, the block searches for the subchain linked to the leaf CA, and the block corresponding to the common certificate is recorded at the end of the subchain to construct the subchain.

[0073] Furthermore, the construction method also includes the steps of:

[0074] Extension phase: When a new leaf CA node is generated in the strict hierarchical trust model, the identity of the new leaf CA node is registered and authenticated in the PKI system, and through smart contract transactions, the certificate information issued by the new CA leaf node is linked to the end of the main chain to achieve the extension of the main chain.

[0075] In the construction method of the distributed certificate management system based on blockchain of this embodiment, the connection between each CA is determined based on the strict hierarchical trust model of PKI, the process of transforming the strict hierarchical trust model into a heterogeneous chain is designed, and an expansion scheme of the certificate management system is designed. Furthermore, based on the strict hierarchical trust model, this embodiment designs a heterogeneous chain model including a main chain and a sub-chain.

[0076] In this embodiment, when a new CA is added, the CA certificate is recorded on the main chain and a related sub-chain is added; when a new ordinary certificate is added, a new certificate is issued by the CA and recorded on the related sub-chain; the expansion process matches the certificate management system framework and has good scalability.

[0077] Embodiment 3

[0078] Based on Example 1, this example provides a certificate management method for a distributed certificate management system based on blockchain. The certificate management method uses the distributed certificate management system based on blockchain as described in Example 1 to manage certificates.

[0079] In this embodiment, the certificate management method includes applying for or revoking a certificate using a distributed certificate management system based on blockchain, and querying a certificate using a distributed certificate management system based on blockchain.

[0080] See also Figure 6 , Figure 6 A flowchart of a distributed certificate management system based on blockchain for certificate application or certificate revocation provided in an embodiment of the present invention.

[0081] Specifically, the distributed certificate management system based on blockchain performs certificate application or certificate revocation including the following steps:

[0082] S1. The CA node sends certificate issuance information or certificate revocation information to the terminal according to the verified certificate application information or certificate revocation information, and forwards the certificate issuance information or the certificate revocation information to the blockchain node.

[0083] In this embodiment, the terminal may include a user or a domain server.

[0084] Specifically, first, the user or domain server sends a certificate application or certificate revocation information to a registration authority (RA). Then the RA verifies the true situation of the user or domain server, and if the verification is successful, the certificate application or certificate revocation information is sent to a CA node. Finally, the CA sends the certificate issuance or certificate revocation information to the user or domain server, and forwards the certificate issuance or certificate revocation information to the blockchain node.

[0085] S2. The blockchain node generates a certificate transaction according to the smart contract and uploads the certificate issuance information or the certificate revocation information to the certificate chain or revocation chain.

[0086] Specifically, the blockchain node generates a certificate transaction based on the smart contract and uploads the certificate information to the certificate chain or revocation chain system.

[0087] See also Figure 7 , Figure 7 A flowchart of certificate query in a distributed certificate management system based on blockchain provided in an embodiment of the present invention.

[0088] Specifically, the distributed certificate management system based on blockchain performs certificate query including two stages: certificate chain authentication and revocation chain authentication, including the following steps:

[0089] S1. Determine the first target chain in the certificate chain by the chain number of the certificate to be queried, determine the first target block in the first target chain by the block number, and verify whether the certificate information stored in the first target block is consistent with the information of the certificate to be queried by the transaction number.

[0090] Specifically, step S1 is the certificate chain authentication stage. If it is determined that the certificate information stored in the first target block is consistent with the information of the certificate to be queried, the verification is passed and the next step of revoking the chain authentication is performed. Otherwise, the certificate does not exist.

[0091] S2. When it is determined that the certificate information stored in the first target block is consistent with the information of the certificate to be queried, the second target chain in the revocation chain is determined by the chain number, and all revocation certificate transactions in the second target chain are queried.

[0092] S3. When the certificate to be queried is not found in the revocation chain, the certificate to be queried is authenticated; when the certificate to be queried is found in the revocation chain, the certificate to be queried has been revoked.

[0093] Specifically, steps S2 and S3 are the revocation chain authentication stage, that is, by traversing the revocation chain, if the target certificate is not found, it is determined that the certificate authentication is passed, otherwise the target certificate has been revoked.

[0094] In a specific embodiment, a multi-chain concurrent traversal query mechanism based on a heterogeneous certificate chain model is adopted to traverse from the latest block of multiple sub-chains to the initial block to query all revoked certificate transactions in the second target chain.

[0095] In this embodiment, the traversal query starts from the latest block of multiple sub-chains and traverses one by one to the initial block. Since multiple sub-chains are independent of each other, concurrent execution improves the query efficiency.

[0096] This embodiment is based on the distributed certificate management system of blockchain, and designs a new fast query method based on heterogeneous chains. In addition, in order to solve the problem of slow block traversal, an optimization method of parallel traversal of multiple sub-chains is proposed, so that in the revocation chain, the revocation certificate can be synchronously traversed through multiple sub-chains to speed up the query. At the same time, the block structure and certificate structure in the management system can realize the fast query and traversal process of certificates. Combined with the heterogeneous chain framework, the certificate structure records the specific location of the certificate in the system, and the certificate record in the blockchain can be quickly queried through function calls.

[0097] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A distributed certificate management system based on blockchain, It is characterized in that include: The certificate chain, the revocation chain and the supervision chain all adopt heterogeneous chain structures, wherein: The certificate chain is used to store certificate information issued by a certificate issuing authority; The revocation chain is used to store certificate information revoked by the certificate issuing authority; The custody chain is used to count and store some important operations performed on the certificate by the certificate issuing authority; The certificate chain, the revocation chain and the supervision chain all include a main chain and a plurality of subchains; in the certificate chain, the main chain is used to store the CA certificate in the strict hierarchical trust model, and the plurality of subchains are linked to the plurality of blocks of the main chain in a one-to-one correspondence, and are used to store the common certificates issued by the leaf certificate issuing authority to the user in the strict hierarchical trust model; in the revocation chain, the main chain is used to store the revoked CA certificate, and the plurality of subchains are linked to the plurality of blocks of the main chain in a one-to-one correspondence, and are used to store the revoked common certificates; The CA certificate and the ordinary certificate both include: version number, serial number, signature algorithm, issuer name, start / end time, certificate holder information, certificate holder public key, issuer unique identifier, chain number, block number, transaction number, certificate signature algorithm and signature data.

2. The distributed certificate management system based on blockchain according to claim 1, It is characterized in that The main chain and the sub-chain each include a number of blocks, each of which includes a block header, block transactions and metadata, wherein: The block header is used to define the block number, the hash value of the previous block, and the hash value of the transaction in this block; The block transaction is used to store multiple certificate information transactions, and generate a hash value recorded in the block header; The metadata includes ordering node information, consensus type, and signature.

3. A method for constructing a distributed certificate management system based on blockchain, It is characterized in that Includes steps: The blockchain system starts, creates the initial block, registers and authenticates the certificate issuing authority in the PKI system, and obtains the attribute information of the blockchain node; According to the hierarchical level of the strict hierarchical trust model, the CA certificate is put on the chain starting from the highest root CA, and a smart contract transaction is generated and packaged in the first block. CAs of the same level generate smart contract transactions one by one according to the certificate issuance time, and each generates a block transaction until the leaf CA completes the certificate chain operation and builds the main chain; The common certificates issued by the leaf CA in the strict hierarchical trust model are packaged to generate a block, and the subchain linked to the leaf CA is found, and the block corresponding to the common certificate is recorded at the end of the subchain to construct the subchain; In the certificate chain, the main chain is used to store the CA certificate in the strict hierarchical trust model, and the subchains are linked to the blocks of the main chain in a one-to-one correspondence, and are used to store the common certificates issued by the leaf certificate issuing authority to the user in the strict hierarchical trust model; In the revocation chain, the main chain is used to store the revoked CA certificate, and the subchains are linked to the blocks of the main chain in a one-to-one correspondence, and are used to store the revoked common certificates; The CA certificate and the ordinary certificate both include: version number, serial number, signature algorithm, issuer name, start / end time, certificate holder information, certificate holder public key, issuer unique identifier, chain number, block number, transaction number, certificate signature algorithm and signature data.

4. According to the method for constructing a distributed certificate management system based on blockchain according to claim 3, It is characterized in that Also includes the steps: When a new leaf CA is generated in the strict hierarchical trust model, the identity of the new leaf CA is registered and authenticated in the PKI system, and through smart contract transactions, the certificate information issued by the new leaf CA is linked to the end of the main chain to achieve the expansion of the main chain.

5. A certificate management method for a distributed certificate management system based on blockchain, using the distributed certificate management system based on blockchain as described in any one of claims 1 to 2 to perform certificate management, It is characterized in that include: A distributed certificate management system based on blockchain for certificate application or certificate revocation; A distributed certificate management system based on blockchain performs certificate query, including: determining a first target chain in a certificate chain by a chain number of a certificate to be queried, determining a first target block in the first target chain by a block number, and verifying whether certificate information stored in the first target block is consistent with information of the certificate to be queried by a transaction number; when it is determined that the certificate information stored in the first target block is consistent with information of the certificate to be queried, determining a second target chain in a revocation chain by the chain number, and querying all revoked certificate transactions in the second target chain; when the certificate to be queried is not found in the revocation chain, authenticating the certificate to be queried; when the certificate to be queried is found in the revocation chain, the certificate to be queried has been revoked.

6. The certificate management method of the distributed certificate management system based on blockchain according to claim 5, It is characterized in that The distributed certificate management system based on blockchain performs certificate application or certificate revocation, including the following steps: The CA sends certificate issuance information or certificate revocation information to the terminal according to the verified certificate application information or certificate revocation information, and forwards the certificate issuance information or the certificate revocation information to the blockchain node; The blockchain node generates a certificate transaction according to the smart contract and uploads the certificate issuance information or the certificate revocation information to the certificate chain or the revocation chain.

7. The certificate management method of the distributed certificate management system based on blockchain according to claim 5, It is characterized in that Query all certificate revocation transactions in the second target chain, including: A multi-chain concurrent traversal query mechanism is adopted to traverse from the latest block of multiple sub-chains to the initial block, and query all revocation certificate transactions in the second target chain.