Digital certificate multi-level processing method and device based on blockchain identification

By storing the root certificate on the blockchain and processing digital certificates at the lower level on the chain, the problems of traditional digital certificate processing are solved, and efficient and secure multi-level certificate processing is achieved.

CN114172666BActive Publication Date: 2024-12-03北京泰尔英福科技有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111506911.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2024-12-03
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

The issuance and verification of traditional digital certificates relies on centralized CA institutions, and there are problems such as tampering with identity data, low processing efficiency and low security.

Method used

Adopt a multi-level processing method based on blockchain identity. By storing the root certificate on the main blockchain, generating a centralized system user digital certificate, and storing the next-level user certificate on the chain, reducing the burden on a single chain and increasing the certificate Issuing and verifying performance.

Benefits of technology

It realizes secure storage of root certificates, avoids the risk of tampering, improves the efficiency of issuance and verification of digital certificates, and enhances the security and credibility of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114172666B_ABST
    Figure CN114172666B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-level processing method and device for digital certificates based on blockchain identification, wherein multiple super nodes constitute a main chain; when at least one super node is selected as a root certificate authority node, the method comprises: the root certificate authority node generates a first root certificate and stores it on the main blockchain and generates a first centralized system user digital certificate and issues it to the first centralized system user; the first centralized system user stores the first centralized system user digital certificate, generates a second centralized system user digital certificate and issues it to the second centralized system user; the second centralized system user stores the second centralized system user digital certificate; the first and second centralized system users are not on the main chain. In the present invention, the root certificate is stored on the chain to prevent the root certificate from being tampered with, and a multi-level digital certificate processing method is adopted, which can reduce the burden of a single chain, improve the performance of certificate issuance and subsequent verification, and realize efficient and secure multi-level processing of digital certificates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a method and device for multi-level processing of digital certificates based on blockchain identification. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.

[0003] Since Internet e-commerce system technology enables online shoppers to obtain information about merchants and enterprises very easily, it also increases the risk of abuse of certain sensitive or valuable data. In order to ensure the security and confidentiality of electronic transactions and payments on the Internet and prevent fraud in transactions and payments, a trust mechanism must be established online. This requires that both buyers and sellers participating in e-commerce must have legal identities and can be effectively and accurately verified online.

[0004] Definitions of identity and digital identity:

[0005] 1. Identity: An entity represented by one or more attributes that allow the entity to be sufficiently distinguished in context.

[0006] Identity is a set of attribute descriptions of a subject object, which has distinguishing and proving properties. Distinguishing property is that a subject object can be uniquely identified through part or all of the attribute information of the identity, and proving property is that the identity of the subject object can be proved through part or all of the attribute information of the subject object.

[0007] 2. Digital identity: A digital identity is a digital representation of an entity in a digital environment, allowing the individual to be fully distinguished in the digital environment.

[0008] Digital identity inherits various characteristics of identity and is widely used in the digital society. It can also be mapped to the real society for application. Most digital identities have an ID attribute to uniquely identify the digital identity. This ID attribute can be a string of codes generated according to certain rules or a string of codes generated by hash operations. It is unique in a certain digital area.

[0009] like Figure 1 As shown in Figure 1, a digital identity is generally defined as a set of attributes associated with an identifier. It can also be a single identifier that can uniquely distinguish the entity it represents in the environment.

[0010] A digital certificate is an authoritative electronic document and a type of digital identity. It provides a way to verify identity on the Internet, similar to a driver's license or an ID card in daily life. It is issued by an authoritative organization, the CA Certificate Authority, and people can use it to identify each other's identity during Internet communication. Of course, in the process of digital certificate authentication, the Certificate Authority (CA) plays a vital role as an authoritative, fair, and trustworthy third party.

[0011] The current types of digital certificates mainly include: personal digital certificates, corporate digital certificates, corporate employee digital certificates, server certificates, VPN certificates, WAP certificates, code signing certificates, and form signing certificates. The issuance and verification of traditional digital certificates rely on centralized CA organizations, and identity data is easily tampered with, resulting in low efficiency and security in digital certificate processing. Summary of the invention

[0012] The embodiment of the present invention provides a digital certificate multi-level processing method based on blockchain identification, which is used to efficiently and securely perform multi-level processing of digital certificates, wherein multiple super nodes constitute a main blockchain; when at least one super node is selected as a root certificate authority node, the method includes:

[0013] The root certificate authority node generates a first root certificate and stores the first root certificate on the main blockchain; generates a first centralized system user digital certificate based on the first root certificate and issues it to the first centralized system user;

[0014] The first centralized system user stores the first centralized system user digital certificate; generates a second centralized system user digital certificate based on the first centralized system user digital certificate and issues it to the second centralized system user;

[0015] The second centralized system user stores the second centralized system user digital certificate; the first centralized system user and the second centralized system user are not on the main blockchain.

[0016] The embodiment of the present invention further provides a digital certificate multi-level processing device based on blockchain identification, which is used to efficiently and securely perform multi-level processing of digital certificates, wherein multiple super nodes constitute a main blockchain; when at least one super node is selected as a root certificate authority node, the device includes:

[0017] A root certificate authority node, used to generate a first root certificate, store the first root certificate on the main blockchain; generate a first centralized system user digital certificate based on the first root certificate and issue it to the first centralized system user;

[0018] The first centralized system user is used to store the first centralized system user digital certificate; generate a second centralized system user digital certificate according to the first centralized system user digital certificate and issue it to the second centralized system user;

[0019] The second centralized system user is used to store the digital certificate of the second centralized system user; the first centralized system user and the second centralized system user are not on the main blockchain.

[0020] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned multi-level processing method of digital certificates based on blockchain identification when executing the computer program.

[0021] An embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned multi-level processing method of digital certificates based on blockchain identification.

[0022] An embodiment of the present invention also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the above-mentioned multi-level processing method of digital certificates based on blockchain identification.

[0023] In an embodiment of the present invention, a multi-level processing scheme for digital certificates based on blockchain identification, multiple super nodes constitute a main blockchain. Compared with the technical scheme in the prior art in which the issuance and verification of traditional digital certificates rely on a centralized CA organization, identity data is easily tampered with, and there are problems such as low digital certificate processing efficiency and security, when at least one super node is selected as a root certificate authority node: the root certificate authority node generates a first root certificate, and stores the first root certificate on the main blockchain; generates a first centralized system user digital certificate based on the first root certificate and issues it to the first centralized system user; the first centralized system user stores the first centralized system user digital certificate; generates a second centralized system user digital certificate based on the first centralized system user digital certificate and issues it to the second centralized system user; the second centralized system user stores the second centralized system user digital certificate; the first centralized system user and the second centralized system user are not on the main blockchain. In the present invention, the root certificate is stored on the chain to prevent the root certificate from being tampered with, and a multi-level digital certificate processing method is adopted, which can reduce the burden of a single chain, improve the performance of certificate issuance and subsequent verification, and realize efficient and secure multi-level processing of digital certificates. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0025] Figure 1 This is a schematic diagram of a digital identity structure in an embodiment of the present invention;

[0026] Figure 2 A schematic diagram of application and use of user certificates based on blockchain identification in the prior art;

[0027] Figure 3 Schematic diagram of the process of a multi-level digital certificate processing method based on blockchain identification in an embodiment of the present invention;

[0028] Figure 4 It is a structural schematic diagram of a digital certificate multi-stage processing device based on blockchain identification of the root CA on the main chain in an embodiment of the present invention;

[0029] Figure 5 This is a schematic diagram of the structure of multi-level processing of digital certificates based on blockchain identification by the root CA on the backbone node in an embodiment of the present invention;

[0030] Figure 6 This is a schematic diagram of the structure of multi-level processing of digital certificates based on blockchain identification by the root CA on the subchain in an embodiment of the present invention;

[0031] Figure 7 Schematic diagram of the overall process of multi-level processing of digital certificates based on blockchain identification in an embodiment of the present invention. DETAILED DESCRIPTION

[0032] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0033] Before introducing the embodiments of the present invention, the terms involved in the present invention are first introduced.

[0034] eID---Electronic Identity, citizen network electronic identity identification.

[0035] uport - an open identity system designed for distributed networks.

[0036] WAP---Wireless Application Protocol Wireless Application Protocol.

[0037] VPN------Virtual Private Network.

[0038] BID---Blockchain-based Identifier blockchain identifier.

[0039] The following is an introduction to the technical problems found by the inventor in the existing digital certificate processing and the ideas for proposing the present invention.

[0040] The traditional method uses a centralized identity management method. The digital certificate issuance process is generally as follows: the user first generates his own key pair and sends the public key and some personal identity information to the certification authority (CA). After verifying the identity, the certification authority will perform some necessary steps to ensure that the request is indeed sent by the user. Then, the certification authority will issue a digital certificate to the user, which contains the user's personal information and his public key information, as well as the signature information of the certification authority. The user can use his digital certificate for various related activities. Digital certificates are issued by independent certificate issuing agencies. Digital certificates are different, and each certificate can provide different levels of credibility.

[0041] The traditional method adopts a centralized identity management method, that is, the issuance and verification of traditional digital certificates rely on centralized CA organizations. Identity data is easily tampered with, posing security issues.

[0042] Identity authentication based on blockchain identification, such as eID, uport, etc. Figure 2 As shown in the figure, taking the application and use of user certificates as an example, the process is as follows:

[0043] 1. The user registers an identity through the client or browser, and the client or browser plug-in generates it for them.

[0044] 2. The user activates the identity on-chain.

[0045] 3. The user uploads identity information and applies for identity credentials.

[0046] 4. The trust anchor generates identity credentials and stores the credentials on the chain.

[0047] 5. The third-party user requests verification of identity credentials.

[0048] 6. The user provides identity credentials and goes through black box processing to generate verifiable data.

[0049] 7. The third-party user goes to the chain to verify whether the identity has expired.

[0050] 8. The chain compares the data provided by the user with the data on the chain for identity verification.

[0051] 9. The chain returns the verification results to the user and third-party users.

[0052] Therefore, for identity authentication technology based on blockchain identification, the issuance of digital certificates relies on centralized CA organizations, and the verification process relies on decentralized blockchain ledgers.

[0053] Existing identity authentication based on blockchain identification mostly adopts a flat identity authentication method, that is, all users perform identity authentication on one chain, which has high requirements on the performance of the chain. Under the premise of certain blockchain performance, congestion is prone to occur, resulting in long authentication delays.

[0054] In view of the above technical problems, the present invention proposes a multi-level processing scheme for digital certificates based on blockchain identification, which:

[0055] 1. The root certificate is stored on the chain to prevent it from being tampered with, and a multi-level digital certificate processing method is adopted to reduce the burden of a single chain and improve the performance of certificate issuance and verification.

[0056] 2. Use multi-level certificate verification to reduce the burden on the root CA without reducing credibility.

[0057] 3. A decentralized root CA is combined with a centralized system. The root CA of the centralized system is on the blockchain, reducing the risk of the root CA being tampered with.

[0058] The following is a detailed introduction to the multi-level digital certificate processing solution based on blockchain identification.

[0059] Figure 3 FIG. 1 is a flow chart of a multi-level processing method for digital certificates based on blockchain identification in an embodiment of the present invention. Multiple super nodes constitute a main blockchain, such as Figure 3 As shown, at least one super node is selected as a root certificate authority node (such as Figure 4 When the CA on the main chain shown in the figure is used, the multi-level processing method of digital certificates based on blockchain identification includes the following steps:

[0060] Step 101: The root certificate authority node generates a first root certificate and stores the first root certificate in the main blockchain (such as Figure 4 The first centralized system user digital certificate is generated based on the first root certificate and issued to the first centralized system user (such as Figure 4 Centralized system user 1) shown;

[0061] Step 102: The first centralized system user stores the first centralized system user digital certificate; generates a second centralized system user digital certificate based on the first centralized system user digital certificate and issues it to the second centralized system user (e.g. Figure 4 Centralized system user 2) shown;

[0062] Step 103: The second centralized system user stores the second centralized system user digital certificate; the first centralized system user and the second centralized system user are not on the main blockchain.

[0063] In specific implementation, the root certificate is issued by the CA on the main chain. In the embodiment of the present invention, the user or organization that obtains the root certificate is on the chain, and the other users are not on the chain, as follows Figure 4 As shown in the figure, the issuance process mainly includes:

[0064] 0. Prerequisite: Both the certificate issuer and the certificate grantee have a user ID (BID), and the certificate issuer holds the certificate.

[0065] 1. Main chain (see Figure 4 The root CA (root certificate authority) node on the main chain (i.e., the main blockchain) in the network, i.e., the node selected as the CA, can issue a self-signed certificate to generate the first root certificate, and issue the root certificate with its signature (the first centralized system user digital certificate generated according to the first root certificate) to the centralized system user 1 (the first centralized system user), corresponding to the attached Figure 4 ① in the above, and storing the first root certificate on the main blockchain;

[0066] 2. User 1 (the first centralized system user) issues the certificate with his signature (the second centralized system user digital certificate generated according to the first centralized system user digital certificate) to centralized system user 2 (the second centralized system user), corresponding to the attached Figure 4 ② in the figure can be stored on the chain or off the chain.

[0067] In specific implementation, the root certificate may also be issued by a CA on a backbone node or a subchain. The issuance process of the root certificate refers to the issuance process of steps 101 to 103 above. Figure 5 The CA on the backbone node can issue certificates to users. Figure 6 The CA on the Neutron chain can issue certificates to users. See the following implementation example for details.

[0068] In one embodiment, Figure 5 As shown, the main blockchain is connected to at least one backbone node. When the root certificate authority node is set on the backbone node, the multi-level processing method of digital certificates based on blockchain identification may also include:

[0069] Root certificate authority node (such as Figure 5 The CA set in the backbone node as shown generates a second root certificate, and stores the second root certificate in the main blockchain (such as Figure 5 The third centralized system user digital certificate is generated based on the second root certificate and issued to the third centralized system user (such as Figure 5 Centralized system user 1) shown;

[0070] The third centralized system user stores the third centralized system user digital certificate; generates a fourth centralized system user digital certificate based on the third centralized system user digital certificate and issues it to the fourth centralized system user (such as Figure 5 Centralized system user 2) shown;

[0071] The fourth centralized system user stores the fourth centralized system user digital certificate; the third centralized system user and the fourth centralized system user are not on the main blockchain.

[0072] In one embodiment, Figure 6 As shown, the main blockchain is connected to at least one backbone node, and the backbone node and at least one sub-blockchain composed of multiple ordinary nodes (such as Figure 6 When the root certificate authority node is set on the ordinary node (the node constituting the subchain), the multi-level processing method of digital certificates based on blockchain identification may also include:

[0073] Root certificate authority node (such as Figure 6 The CA set on the sub-chain as shown in the figure) generates a third root certificate, and stores the third root certificate on the sub-blockchain; generates a fifth centralized system user digital certificate based on the third root certificate and issues it to the fifth centralized system user (such as Figure 6 Centralized system user 1) shown;

[0074] The fifth centralized system user stores the fifth centralized system user digital certificate; generates a sixth centralized system user digital certificate based on the fifth centralized system user digital certificate and issues it to the sixth centralized system user (such as Figure 5 Centralized system user 2) shown;

[0075] The sixth centralized system user stores the sixth centralized system user digital certificate; the fifth centralized system user and the sixth centralized system user are not on the sub-blockchain.

[0076] When implementing it, Figure 6As shown, the embodiment of the present invention defines the node names on a three-layer (multi-layer) chain architecture, which includes a main chain, a backbone chain, and a sub-chain. The super node is located on the main chain; the backbone node is connected to the main chain, and the backbone node is located on the backbone chain, which plays the role of uploading and issuing data between the main chain and the sub-chain; the ordinary node is connected to the backbone node, and the ordinary node is located on the sub-chain. Of course, there can also be an implementation method: the backbone node is connected to the main chain, and the backbone node is located on the sub-blockchain. In addition, in an embodiment of the present invention, there is an upstream and downstream or superior-subordinate relationship between multiple centralized systems. In the process of certificate issuance, the user in the upper-level system issues a certificate to the user in the lower-level system.

[0077] In summary, in the embodiment of the present invention, certificates can be issued to the centralized system in the above manner, and the root certificate is stored on the chain to prevent the root certificate from being tampered with. In addition, a multi-level digital certificate processing method is adopted to reduce the burden of a single chain, improve the performance of certificate issuance and subsequent verification, and realize efficient and secure multi-level processing of digital certificates.

[0078] In specific implementation, the embodiment of the present invention can also extend more levels of nodes in the horizontal and vertical directions. It can be expanded vertically and horizontally, for example, more chains can be connected vertically and more node types can be provided horizontally (for each chain).

[0079] In specific implementation, the types of digital certificates in the embodiments of the present invention may include: personal digital certificates, unit digital certificates, unit employee digital certificates, server certificates, VPN certificates, WAP certificates, code signing certificates, form signing certificates, etc.

[0080] In specific implementation, all centralized system users mentioned in the embodiments of the present invention may be referred to as centralized system user terminals or centralized system user nodes.

[0081] The following describes how to verify digital certificates.

[0082] In one embodiment, the above-mentioned multi-level processing method of digital certificates based on blockchain identification may also include:

[0083] receiving a verification request for a current digital certificate;

[0084] Verifying the signature of the issuer of the current digital certificate;

[0085] If it is determined that the current digital certificate has an issuer at the previous level according to the signature verification result of the current digital certificate issuer, the signature of the issuer at the previous level is verified until the original certificate issuer is found; the original certificate issuer is the root certificate authority node;

[0086] If the digital certificates in the chain from the current digital certificate issuer to the initial certificate issuer are all credible, the current digital certificate is determined to be credible.

[0087] When implementing it, Figure 4 As shown, the verification process of the digital certificate is explained by taking the current digital certificate as the digital certificate of the second centralized system user as an example: receiving the verification request of the current digital certificate, that is, initiating a verification request when identity authentication is required based on the digital certificate, such as when the user logs in to the system through the second centralized system user terminal or when shopping online, when it is necessary to verify the user's identity; verifying the signature of the issuer of the current digital certificate (for example, verifying the first centralized system user corresponding to the second centralized system user); if, based on the signature verification result of the current digital certificate issuer, it is determined that the current digital certificate has an issuer at the previous level (the first centralized system user), verify the signature of the issuer at the previous level until the original certificate issuer is found; if the digital certificate verifications on the chain from the current digital certificate issuer to the original certificate issuer are all credible, it is determined that the current digital certificate (the second centralized system user digital certificate) is credible. Verification process and Figure 4 The process of labeling in is the opposite.

[0088] In specific implementation, the content of the certificate is introduced as follows:

[0089] CA issues digital certificates to other users. The content of the digital certificate may include: certificate ID (identification), certificate type, certificate issuer ID, issuance time, owner ID, expiration date of the public key, signature date, certificate issuance purpose, public key identification, and the digital signature of the issuing agency. In one embodiment, the content of the digital certificate may include: certificate identification, certificate type, certificate issuer identification, issuance time, certificate owner identification, expiration date of the public key, signature date, certificate issuance purpose, public key identification, and the digital signature of the issuer. Further preferably, the certificate content may also include fields such as the geographic location and name of the person to whom the certificate is granted as needed. An example is shown in Table 1 below:

[0090] {

[0091] / / set the context, which establishes the special terms we will be using

[0092] / / such as′issuer′and′alumniOf′.

[0093] ″@context″: [

[0094] "https: / / www.w3.org / 2018 / credentials / v1",

[0095] "https: / / www.w3.org / 2018 / credentials / examples / v1"

[0096] ],

[0097] / / Certificate ID

[0098] "id":"did:bid:cc:0x123456789012340000",

[0099] / / Certificate content format

[0100] "type": ["VerifiableCredential", "AlumniCredential"],

[0101] / / Certificate Issuer

[0102] "issuer":"did:bid:cc:0x123456789012340001",

[0103] / / Certificate issuance time

[0104] "issuanceDate": "2010-01-01T19:73:24Z",

[0105] / / The declared

[0106] ″credentialSubject″:

[0107] { / / declared person id

[0108] "id": "did: bid: 0x123456789012340002"

[0109] / / Declaration content

[0110] "name": [

[0111] {"value":"Example Node","lang":"en"},

[0112] ]}},

[0113] / / Digital signature, tamper-proof

[0114] "proof":

[0115] { / / Encryption algorithm

[0116] "type": "RsaSignature2018",

[0117] / / Date when the signature was generated

[0118] "created": "2017-06-18T21:19:10Z",

[0119] / / Creation purpose: proof

[0120] "proofPurpose": "assertionMethod",

[0121] / / Creator public key, user verification signature

[0122] "verificationMethod"::"https: / / example.edu / issuers / keys / 1",

[0123] / / Digital signature value

[0124] "jws": "eyJhbGciOiJSUzl1Nilslml2NC16ZmFsc2UsImNyaXQiOIsiYjY0Il19..TCYt5X slTJX1CxPCT8yAV-

[0125] TVklEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUcX16dUEMGlv50aqzpqh4Qktb3rk-

[0126] BuQy72IFLOqV0G_zS245-kronKb78cPN25DGIcTwLtjPAYuNzVBAh4vGHSrQyHUdBBPM″}}

[0127] Table 1

[0128] In specific implementation, the digital certificate index in the embodiment of the present invention exists in a centralized hierarchical system ( Figure 4 In the centralized system user 1 and user 2).

[0129] In specific implementation, the CA selection process may include:

[0130] Solution 1: Single CA, centralized approach, CA is built-in, no need to select;

[0131] Solution 2: Multiple CAs issue certificates to users through consensus, and the CA selection method can adopt the "trust anchor selection method".

[0132] In specific implementation, the process of CA obtaining its own certificate may include:

[0133] 1. If there is only one CA, you can self-sign the certificate;

[0134] 2. If there are multiple CAs, other CAs issue certificates to this CA:

[0135] 1) A certificate can be issued by randomly selecting one from other valid CAs;

[0136] 2) Or select N of the M valid CAs as the CAs that issue certificates.

[0137] In specific implementation, Figure 4 For example, the overall process of issuing and verifying a certificate is as follows: Figure 7 shown.

[0138] A further preferred solution, namely certificate renewal and cancellation, is introduced below.

[0139] 1. Certificate renewal

[0140] After the previous level user certificate is updated, the next level user certificate in the chain must be updated, that is, in one embodiment, the above-mentioned digital certificate multi-level processing method based on blockchain identification may also include: when the first root certificate, the second root certificate or the third root certificate, the first centralized system user digital certificate, the second centralized system user digital certificate, the third centralized system user digital certificate, the fourth centralized system user digital certificate, the fifth centralized system user digital certificate or the sixth centralized system user digital certificate are detected to be updated, the next level certificate of the current updated certificate is updated.

[0141] Specifically, the subject of the detection operation can be a root certificate authority node, a backbone node, an ordinary node or each centralized system user, etc. When the root certificate authority node, the backbone node, the ordinary node or each centralized system user detects the update of any level of the first root certificate, the second root certificate or the third root certificate, the first centralized system user digital certificate, the second centralized system user digital certificate, the third centralized system user digital certificate, the fourth centralized system user digital certificate, the fifth centralized system user digital certificate or the sixth centralized system user digital certificate, it can send an update notification to the next level node of the current node (such as a backbone node), and the next level node (such as an ordinary node) updates the ordinary node certificate (the next level certificate of the current updated certificate). The execution subject of the certificate reapplication and certificate cancellation process and the detailed reapplication and cancellation process can refer to the description of the certificate update.

[0142] If the user certificate expires and needs to be reapplied for, the upper-level user can reissue the certificate for him. That is, in one embodiment, the above-mentioned multi-level processing method of digital certificates based on blockchain identification can also include: when it is detected that the first root certificate, the second root certificate or the third root certificate, the first centralized system user digital certificate, the second centralized system user digital certificate, the third centralized system user digital certificate, the fourth centralized system user digital certificate, the fifth centralized system user digital certificate or the sixth centralized system user digital certificate are expired, reapply for the digital certificate from the issuer of the current expired certificate.

[0143] 2. Certificate Revocation

[0144] Users can cancel their own certificates;

[0145] After the previous level user certificate is cancelled, all the next level user certificates in the chain must be cancelled and need to be reapplied for. That is, in one embodiment, the above-mentioned multi-level processing method of digital certificates based on blockchain identification may also include: after detecting that the previous level user certificate is cancelled, all the user certificates of the following levels in the current user certificate chain must be cancelled and need to be reapplied for.

[0146] In order to facilitate understanding of how the present invention is implemented, an example is given below to illustrate the overall process of multi-level processing of digital certificates based on blockchain identification (issuance, verification, update and cancellation of certificates).

[0147] The root CA issues an enterprise identity certificate to centralized system user 1, and centralized system user 1 issues an enterprise employee certificate to centralized system user 2.

[0148] 1. Certificate issuance (root CA built-in).

[0149] Step 1: The root CA issues an enterprise identity certificate to user 1 of the centralized system. The id of the person being declared is not did, because it is not an on-chain user, and the certificate is stored in the centralized system.

[0150] Step 2: Centralized system user 1 issues an employee identity certificate to centralized system user 2. The certificate content is as follows: The id of the person being declared is not did, because it is not an on-chain user.

[0151] 2. Certificate verification, verify the certificate of user 2.

[0152] Step 1: The network finds the public key and digital signature value of the certificate issuer based on the certificate content, verifies its digital signature value, and after verification, verifies whether there is a previous-level certificate. If not, the verification ends; if so, proceed to step 2. In this case, user 2 has a previous-level certificate issuer: user 1, so the validity of user 1's certificate needs to be verified.

[0153] Step 2: Find the public key and digital signature of the certificate issuer based on the content of user 2's certificate, and verify its digital signature value. After the verification is passed, there is an upper-level certificate issuer: root CA, and the validity of the root CA certificate needs to be verified.

[0154] Step 3: After the root CA certificate is verified, the verification is completed.

[0155] 3. Certificate update.

[0156] After the certificate of the upper-level certificate issuer is updated, the certificates of the next-level users until the end-level users need to be updated. For example, after the certificate of user 1 is updated, the user certificates in the chain need to be updated.

[0157] 4. Certificate revocation.

[0158] After the certificate of the upper-level certificate issuer is revoked, the certificates of the next-level users until the last level are automatically revoked. For example, after the certificate of user 1 is revoked, all user certificates in the chain are revoked.

[0159] In summary, the beneficial technical effects of the multi-level digital certificate processing method based on blockchain identification provided by the embodiment of the present invention include:

[0160] 1. Use blockchain based on the master-subchain architecture for identity management, reduce the burden of a single chain, and improve the performance of certificate issuance and verification.

[0161] 2. Use multi-level certificate verification to reduce the burden on the root CA without reducing credibility.

[0162] 3. A decentralized root CA is combined with a centralized system. The root CA of the centralized system is on the blockchain, reducing the risk of the root CA being tampered with.

[0163] The embodiment of the present invention also provides a digital certificate multi-level processing device based on blockchain identification, as described in the following embodiment. Since the principle of solving the problem by the device is similar to the digital certificate multi-level processing method based on blockchain identification, the implementation of the device can refer to the implementation of the digital certificate multi-level processing method based on blockchain identification, and the repeated parts will not be repeated.

[0164] In the digital certificate multi-level processing device provided by the embodiment of the present invention, multiple super nodes constitute the main blockchain; when at least one super node is selected as the root certificate authority node, the digital certificate multi-level processing device based on blockchain identification includes:

[0165] Root certificate authority node (such as Figure 4 The CA in is used to generate a first root certificate, and the first root certificate is stored in the main blockchain (such as Figure 4; generating a first centralized system user digital certificate based on the first root certificate and issuing it to the first centralized system user;

[0166] The first centralized system user (such as Figure 4 The centralized system user 1) in the centralized system is used to store the first centralized system user digital certificate; generate a second centralized system user digital certificate according to the first centralized system user digital certificate and issue it to the second centralized system user;

[0167] Second centralized system users (such as Figure 4 Centralized system user 2) in the blockchain is used to store the digital certificate of the second centralized system user; the first centralized system user and the second centralized system user are not on the main blockchain.

[0168] In one embodiment, Figure 5 As shown, the main blockchain is connected to at least one backbone node. When the root certificate authority node is set on the backbone node, the certificate authority node is also used to generate a second root certificate and store the second root certificate in the main blockchain (such as Figure 5 The third centralized system user digital certificate is generated based on the second root certificate and issued to the third centralized system user;

[0169] The digital certificate multi-stage processing device based on blockchain identification may also include:

[0170] Third-party centralized system users (such as Figure 5 The centralized system user 1) in the embodiment is used to store the third centralized system user digital certificate; a fourth centralized system user digital certificate is generated according to the third centralized system user digital certificate and issued to the fourth centralized system user;

[0171] Fourth, centralized system users (such as Figure 5 Centralized system user 2) in the blockchain is used to store the digital certificate of the fourth centralized system user; the third centralized system user and the fourth centralized system user are not on the main blockchain.

[0172] In one embodiment, Figure 6 As shown, the main blockchain is connected to at least one backbone node, and the backbone node and at least one sub-blockchain composed of multiple ordinary nodes (such as Figure 6 When the root certificate authority node is set on the ordinary node, the certificate authority node is also used to generate a third root certificate and store the third root certificate on the sub-blockchain; generate a fifth centralized system user digital certificate based on the third root certificate and issue it to the fifth centralized system user;

[0173] The digital certificate multi-stage processing device based on blockchain identification may also include:

[0174] Fifth, centralized system users (such as Figure 6 The centralized system user 1) in the embodiment is used to store the fifth centralized system user digital certificate; a sixth centralized system user digital certificate is generated according to the fifth centralized system user digital certificate and issued to the sixth centralized system user;

[0175] Sixth centralized system users (such as Figure 6 The centralized system user 2) in the block chain is used to store the digital certificate of the sixth centralized system user; the fifth centralized system user and the sixth centralized system user are not on the sub-block chain.

[0176] In one embodiment, the digital certificate multi-stage processing device based on blockchain identification may also include a verification unit for:

[0177] receiving a verification request for a current digital certificate;

[0178] Verifying the signature of the issuer of the current digital certificate;

[0179] If it is determined that the current digital certificate has an issuer at the previous level according to the signature verification result of the current digital certificate issuer, the signature of the issuer at the previous level is verified until the original certificate issuer is found; the original certificate issuer is the root certificate authority node;

[0180] If the digital certificates in the chain from the current digital certificate issuer to the initial certificate issuer are all credible, the current digital certificate is determined to be credible.

[0181] In one embodiment, the content of the digital certificate may include: certificate identification, certificate type, certificate issuer identification, issuance time, certificate owner identification, public key expiration date, signature date, certificate issuance purpose, public key identification and issuer's digital signature.

[0182] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0183] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned multi-level processing method of digital certificates based on blockchain identification when executing the computer program.

[0184] An embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned multi-level processing method of digital certificates based on blockchain identification.

[0185] An embodiment of the present invention also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the above-mentioned multi-level processing method of digital certificates based on blockchain identification.

[0186] In an embodiment of the present invention, a multi-level processing scheme for digital certificates based on blockchain identification, multiple super nodes constitute a main blockchain. Compared with the technical scheme in the prior art in which the issuance and verification of traditional digital certificates rely on a centralized CA organization, identity data is easily tampered with, and there are problems such as low digital certificate processing efficiency and security, when at least one super node is selected as a root certificate authority node: the root certificate authority node generates a first root certificate, and stores the first root certificate on the main blockchain; generates a first centralized system user digital certificate based on the first root certificate and issues it to the first centralized system user; the first centralized system user stores the first centralized system user digital certificate; generates a second centralized system user digital certificate based on the first centralized system user digital certificate and issues it to the second centralized system user; the second centralized system user stores the second centralized system user digital certificate; the first centralized system user and the second centralized system user are not on the main blockchain. In the present invention, the root certificate is stored on the chain to prevent the root certificate from being tampered with, and a multi-level digital certificate processing method is adopted, which can reduce the burden of a single chain, improve the performance of certificate issuance and subsequent verification, and realize efficient and secure multi-level processing of digital certificates.

[0187] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0188] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.

[0189] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0190] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

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

Claims

1. A multi-level processing method for digital certificates based on blockchain identification, characterized in that: Multiple super nodes constitute the main blockchain; When at least one super node is selected as a root certificate authority node, the multi-level processing method of digital certificates based on blockchain identification includes: The root certificate authority node generates a first root certificate and stores the first root certificate on the main blockchain; generates a first centralized system user digital certificate based on the first root certificate and issues it to the first centralized system user; The first centralized system user stores the first centralized system user digital certificate; generates a second centralized system user digital certificate according to the first centralized system user digital certificate and issues it to the second centralized system user; The second centralized system user stores the second centralized system user digital certificate; the first centralized system user and the second centralized system user are not on the main blockchain; Among them, the selection process of the root certificate authority node CA includes: a single CA, a centralized method, the CA is built-in, and no selection is required; or, multiple CAs issue certificates to users through consensus, and the CA selection method adopts the trust anchor selection method; the process of CA obtaining its own certificate includes: if there is only one CA, it can self-sign the certificate; if there are multiple CAs, other CAs issue certificates to the CA: a certificate can be randomly selected from other valid CAs; or N valid CAs can be selected from M as the CA that issues the certificate.

2. The multi-level processing method for digital certificates based on blockchain identification according to claim 1, characterized in that: The main blockchain is connected to at least one backbone node. When the root certificate authority node is set on the backbone node, the multi-level processing method of digital certificates based on blockchain identification also includes: The root certificate authority node generates a second root certificate and stores the second root certificate on the main blockchain; generates a third centralized system user digital certificate based on the second root certificate and issues it to the third centralized system user; The third centralized system user stores the third centralized system user digital certificate; generates a fourth centralized system user digital certificate based on the third centralized system user digital certificate and issues it to the fourth centralized system user; The fourth centralized system user stores the fourth centralized system user digital certificate; the third centralized system user and the fourth centralized system user are not on the main blockchain.

3. The multi-level processing method for digital certificates based on blockchain identification according to claim 1, characterized in that: The main blockchain is connected to at least one backbone node, and the backbone node is connected to at least one sub-blockchain consisting of multiple ordinary nodes. When the root certificate authority node is set on the ordinary node, the multi-level processing method of digital certificates based on blockchain identification also includes: The root certificate authority node generates a third root certificate and stores the third root certificate on the sub-blockchain; generates a fifth centralized system user digital certificate based on the third root certificate and issues it to the fifth centralized system user; The fifth centralized system user stores the fifth centralized system user digital certificate; generates a sixth centralized system user digital certificate according to the fifth centralized system user digital certificate and issues it to the sixth centralized system user; The sixth centralized system user stores the sixth centralized system user digital certificate; the fifth centralized system user and the sixth centralized system user are not on the sub-blockchain.

4. The multi-level processing method for digital certificates based on blockchain identification according to claim 1, characterized in that: Also includes: receiving a verification request for a current digital certificate; Verifying the signature of the issuer of the current digital certificate; If the current digital certificate is determined to have an issuer at the previous level based on the signature verification result of the current digital certificate issuer, the signature of the issuer at the previous level is verified until the original certificate issuer is found; The initial certificate issuer is a root certificate authority node; If the digital certificates in the chain from the current digital certificate issuer to the initial certificate issuer are all credible, the current digital certificate is determined to be credible.

5. The multi-level processing method for digital certificates based on blockchain identification according to claim 1, characterized in that: The content of the digital certificate includes: certificate identification, certificate type, certificate issuer identification, issuance time, certificate owner identification, public key expiration date, signature date, certificate issuance purpose, public key identification and issuer's digital signature.

6. A digital certificate multi-level processing device based on blockchain identification, characterized in that: Multiple super nodes constitute the main blockchain; When at least one super node is selected as a root certificate authority node, the digital certificate multi-stage processing device based on blockchain identification includes: A root certificate authority node, used to generate a first root certificate, store the first root certificate on the main blockchain; generate a first centralized system user digital certificate based on the first root certificate and issue it to the first centralized system user; The first centralized system user is used to store the first centralized system user digital certificate; generate a second centralized system user digital certificate according to the first centralized system user digital certificate and issue it to the second centralized system user; The second centralized system user is used to store the digital certificate of the second centralized system user; the first centralized system user and the second centralized system user are not on the main blockchain. Among them, the selection process of the root certificate authority node CA includes: a single CA, a centralized method, the CA is built-in, and no selection is required; or, multiple CAs issue certificates to users through consensus, and the CA selection method adopts the trust anchor selection method; the process of CA obtaining its own certificate includes: if there is only one CA, it can self-sign the certificate; if there are multiple CAs, other CAs issue certificates to the CA: a certificate can be randomly selected from other valid CAs; or N valid CAs can be selected from M as the CA that issues the certificate.

7. The multi-stage digital certificate processing device based on blockchain identification according to claim 6, characterized in that: The main blockchain is connected to at least one backbone node, and the backbone node is connected to at least one sub-blockchain composed of multiple ordinary nodes. When the root certificate authority node is set on the ordinary node, the certificate authority node is also used to generate a third root certificate and store the third root certificate on the sub-blockchain; generate a fifth centralized system user digital certificate based on the third root certificate and issue it to the fifth centralized system user; The digital certificate multi-level processing device based on blockchain identification also includes: A fifth centralized system user, used to store the fifth centralized system user digital certificate; Generate a sixth centralized system user digital certificate based on the fifth centralized system user digital certificate and issue it to the sixth centralized system user; The sixth centralized system user is used to store the digital certificate of the sixth centralized system user; the fifth centralized system user and the sixth centralized system user are not on the sub-blockchain.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Blockchain based CA (Certificate Authority) management method, device and system

    CN106384236A

  • Multilevel signature method based on block chain technology

    CN111130795A

  • Certificate issuing method, certificate adding method and a transaction processing method of block chain system

    CN112910660A

  • Digital certificate management method and apparatus, computer device, and storage medium

    US20200396089A1