Resource issuance method, resource verification method and system for resource public key infrastructure

By generating signatures and public keys in the local registration unit of the resource public key infrastructure, the dependence on the main registration unit is directly reduced in the resource issuance and verification process, solving the problem of low efficiency of resource issuance and verification in the existing technology, and realizing Efficient and secure resource issuance and verification.

CN118413321BActive Publication Date: 2024-10-01PENG CHENG LAB
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410851940.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

In the resource public key infrastructure, the existing technology requires multiple information exchanges, resulting in high communication overhead and low efficiency in the resource issuance and verification process, especially when there are a large number of units.

Method used

By generating local private key signatures and public keys in the local registration unit, and generating target resource issuance certificates based on these signatures and identifications, and sending them directly to the requesting registration unit, reducing dependence on the main registration unit, the requesting registration unit can directly use the issuance certificate The public key is generated from the identification for signature verification to avoid multiple information exchanges.

Benefits of technology

It effectively reduces the communication overhead in the resource issuance and verification process, improves the efficiency of resource issuance and verification, and enhances the security and reliability of the resource public key infrastructure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118413321B_ABST
    Figure CN118413321B_ABST
Patent Text Reader

Abstract

The resource issuance method, resource verification method and system of the resource public key infrastructure proposed in the embodiment of the present application include: first, receiving a resource certificate issuance request from a requesting registration unit, the resource certificate issuance request including a target requesting resource and a requesting unit identifier of the requesting registration unit; then, obtaining a local private key signature of a local registration unit; next, generating a local issuance signature based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit; finally, generating a target resource issuance certificate based on the local issuance signature, the target requesting resource, the local unit identifier and the requesting unit identifier, and sending the target resource issuance certificate to the requesting registration unit, so that the requesting registration unit uses the target requesting resource after verifying the local issuance signature according to the local unit identifier, thereby effectively reducing communication overhead and improving the efficiency of resource issuance and resource verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a resource issuance method, a resource verification method and a system for a resource public key infrastructure. Background Art

[0002] Resource Public Key Infrastructure is a system for managing digital certificates. In resource public key infrastructure, the reasonable issuance of resources is the core mechanism for providing security, so it is necessary to plan a suitable resource public key infrastructure certificate issuance method.

[0003] In the related art, for resource issuance in resource public key technology facilities, in order to ensure the security of resource issuance, usually after the upper layer unit of the request unit verifies the requested resource of the request unit, it obtains the private key from the main registration unit, and signs the private key according to the private key, and generates a resource certificate based on the private key signature and sends it to the request unit; after receiving the resource certificate, the request unit also needs to send the private key signature to the main registration unit to verify the validity of the resource certificate. However, using this method for resource issuance requires multiple information interactions with the main registration unit, especially when there are a large number of units in the resource public key infrastructure, which will lead to a large communication overhead in the resource issuance and verification process, making the resource issuance efficiency low. Summary of the invention

[0004] The embodiments of the present application provide a resource issuance method, a resource verification method and a system for a resource public key infrastructure, which can improve the efficiency of resource issuance in the resource public key infrastructure.

[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a resource issuance method of a resource public key infrastructure, wherein the resource public key infrastructure includes a plurality of units associated hierarchically, wherein the units include a local registration unit and a request registration unit from top to bottom, and the method is applied to the local registration unit, and the method includes:

[0006] Receiving a resource certificate issuance request from the registration request unit, wherein the resource certificate issuance request includes a target request resource and a request unit identifier of the registration request unit;

[0007] Obtaining a local private key signature of the local registration unit, where the local private key signature is generated based on a local unit private key of the local registration unit;

[0008] Generate a local issuance signature based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit, the local unit public key is associated and bound with the local unit private key, and the local unit public key is generated based on the local unit identifier;

[0009] Based on the local issuance signature, the target requested resource, the local unit identifier and the request unit identifier, a target resource issuance certificate is generated, and the target resource issuance certificate is sent to the request registration unit, so that the request registration unit can use the target requested resource after verifying the local issuance signature according to the local unit identifier.

[0010] In some embodiments, the unit further includes a main registration unit located above the local registration unit, and before receiving the resource certificate issuance request from the requesting registration unit, the method further includes:

[0011] Sending a unit registration request to the master registration unit, the unit registration request including an identification request, a private key generation request, and a public key generation request;

[0012] Acquire a local unit identifier generated by the main registration unit based on the identifier request, where the local unit identifier is generated based on a unit chain relationship of all units between the local registration unit and the main registration unit;

[0013] Generate a first private key random number, generate a first public key random number based on the first private key random number, and send the first public key random number to the master registration unit;

[0014] receiving a second public key random number generated by the master registration unit based on the private key generation request, and generating a local registration private key based on the first private key random number, the first public key random number, and the second public key random number;

[0015] A local unit public key generated by the master registration unit based on the public key generation request is received, wherein the local unit public key is generated based on the first public key random number.

[0016] In some embodiments, generating a local registration private key based on the first private key random number, the first public key random number, and the second public key random number includes:

[0017] Accumulate the first public key random number and the second public key random number to generate an accompanying public key;

[0018] Generate a coordinate sequence set based on the accompanying public key and the local unit identifier, and send the coordinate sequence set to a dedicated management device of the master registration unit, so that the dedicated management device generates a central key according to the coordinate sequence set and a second private key random number of the master registration unit;

[0019] The central key issued by the main registration unit is obtained, and the local registration private key is generated based on the central key and the first private key random number.

[0020] In some embodiments, generating a coordinate sequence set based on the accompanying public key and the local unit identifier includes:

[0021] Get the authentication code algorithm;

[0022] The accompanying public key is used as a usage key of the authentication code algorithm, and authentication calculation is performed on the local unit identifier based on the authentication code algorithm to obtain the coordinate sequence set.

[0023] In some embodiments, the generating the local registration private key based on the central key and the first private key random number includes:

[0024] Accumulate the central key and the first private key random number to obtain the total number of local private keys;

[0025] A preset private key divisor is obtained, and the local registration private key is obtained based on a remainder after the total number of local private keys is divided by the preset private key divisor.

[0026] In some embodiments, when the main registration unit generates the local unit identifier, the steps include:

[0027] Determine the unit chain relationship of all units between the main registration unit and the local registration unit one by one, and obtain the unit attribute names of all units between the main registration unit and the local registration unit;

[0028] Based on the hierarchical order from top to bottom in the unit chain relationship, the local unit identifier is generated according to the unit attribute names of all units between the main registration unit and the local registration unit.

[0029] In some embodiments, when the master registration unit generates a local unit public key, the steps include:

[0030] Obtaining a public key matrix, wherein the public key matrix includes a plurality of public key elements;

[0031] Obtaining a selected coordinate set based on the element value of each sequence element in the coordinate sequence set;

[0032] Selecting a preset number of public key elements from the public key matrix as local public key elements based on the selected coordinate set;

[0033] The local unit public key is obtained by accumulating all the local public key elements and the accompanying public key.

[0034] In some embodiments, generating a local issuance signature based on the local private key signature, the local unit public key of the local registration unit, and the local unit identifier of the local registration unit includes:

[0035] Acquire the local resources of the local registration unit, perform resource inspection on the target request resource based on the local resources, and obtain a resource inspection result;

[0036] When the resource verification result indicates that the target requested resource is correct, a local issuance signature is generated based on the local private key signature, the local unit public key of the local registration unit, and the local unit identifier of the local registration unit.

[0037] In some embodiments, performing resource inspection on the target request resource based on the local resource to obtain a resource inspection result includes:

[0038] Obtaining the valid period of use of the local unit identifier;

[0039] When the current time is within the valid usage period, generating resource inclusion information based on the local resource and the target request resource;

[0040] The resource usage information of the target requested resource is acquired, and the resource verification result is generated based on the resource usage information and the resource inclusion information.

[0041] In some embodiments, generating a local issuance signature based on the local private key signature, the local unit public key of the local registration unit, and the local unit identifier of the local registration unit includes:

[0042] Obtaining a hash parameter, and calculating a hash value of the target requested resource based on the hash parameter to obtain a target resource summary;

[0043] A hash calculation is performed based on the target resource summary, the local unit identifier, the local private key signature and the local unit public key to obtain the local issuance signature.

[0044] In some embodiments, the resource public key infrastructure includes a plurality of units associated hierarchically, the units including a local registration unit and a request registration unit from top to bottom, the method is applied to the request registration unit, and the method includes:

[0045] Generate a resource certificate issuance request based on the request unit identifier of the request registration unit and the target request resource, and send the resource certificate issuance request to the local registration unit;

[0046] Receiving a target resource issuance certificate issued by the local registration unit in response to the resource certificate issuance request, the target resource issuance certificate including a local issuance signature of the local registration unit and a local unit identifier of the local registration unit;

[0047] Calculating a verification local unit public key based on the local unit identifier, and performing signature verification on the local issuance signature based on the verification local unit public key to obtain a signature verification result;

[0048] When the signature verification result indicates that the correspondence between the local issuance signature and the local unit identifier is correct, the target request resource is used.

[0049] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a resource verification method of a resource public key infrastructure, wherein the resource public key infrastructure includes a plurality of units associated hierarchically, wherein the units include a local registration unit and a request registration unit from top to bottom, and the method is applied to the request registration unit, and the method includes:

[0050] Generate a resource certificate issuance request based on the request unit identifier of the request registration unit and the target request resource, and send the resource certificate issuance request to the local registration unit;

[0051] Receiving a target resource issuance certificate issued by the local registration unit in response to the resource certificate issuance request, the target resource issuance certificate including a local issuance signature of the local registration unit and a local unit identifier of the local registration unit;

[0052] Calculating a verification local unit public key based on the local unit identifier, and performing signature verification on the local issuance signature based on the verification local unit public key to obtain a signature verification result;

[0053] When the signature verification result indicates that the correspondence between the local issuance signature and the local unit identifier is correct, the target request resource is used.

[0054] To achieve the above-mentioned purpose, a third aspect of the embodiments of the present application proposes a resource public key infrastructure system, the system comprising a plurality of units associated hierarchically, the units comprising a local registration unit and a request registration unit from top to bottom;

[0055] The request registration unit is used to generate a resource certificate issuance request based on the request unit identifier of the request registration unit and the target request resource, and send the resource certificate issuance request to the local registration unit;

[0056] The local registration unit is used to receive the resource certificate issuance request of the request registration unit, wherein the resource certificate issuance request includes a target request resource and a request unit identifier of the request registration unit;

[0057] The local registration unit is further used to obtain a local private key signature of the local registration unit, where the local private key signature is generated based on a local unit private key of the local registration unit;

[0058] The local registration unit is further used to generate a local issuance signature based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit, the local unit public key is associated and bound with the local unit private key, and the local unit public key is generated based on the local unit identifier;

[0059] The local registration unit is further configured to generate a target resource issuance certificate based on the local issuance signature, the target request resource, the local unit identifier and the request unit identifier, and send the target resource issuance certificate to the request registration unit, so that the request registration unit uses the target request resource after performing resource verification on the local issuance signature according to the local unit identifier;

[0060] The request registration unit is further used to receive a target resource issuance certificate issued by the local registration unit in response to the resource certificate issuance request, wherein the target resource issuance certificate includes a local issuance signature of the local registration unit and a local unit identifier of the local registration unit;

[0061] The registration request unit is further configured to calculate a verification local unit public key based on the local unit identifier, and perform signature verification on the local issuance signature based on the verification local unit public key to obtain a signature verification result;

[0062] The request registration unit is further configured to use the target request resource when the signature verification result indicates that the correspondence between the local issuance signature and the local unit identifier is correct.

[0063] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the resource issuance method of the resource public key infrastructure as described in the first aspect or the resource verification method of the resource public key infrastructure as described in the second aspect.

[0064] To achieve the above-mentioned purpose, the fifth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, it implements the resource issuance method of the resource public key infrastructure described in the first aspect or the resource verification method of the resource public key infrastructure described in the second aspect.

[0065] The resource issuance method, resource verification method and system of the resource public key infrastructure proposed in the embodiment of the present application, the resource public key infrastructure includes a plurality of units associated hierarchically, and the units include a local registration unit and a request registration unit from top to bottom. The method is applied to the local registration unit, and the method includes: first, receiving a resource certificate issuance request from the request registration unit, the resource certificate issuance request includes a target request resource and a request unit identifier of the request registration unit; then, obtaining a local private key signature of the local registration unit, the local private key signature is generated based on the local unit private key of the local registration unit; next, based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit, a local issuance signature is generated, the local unit public key is associated and bound with the local unit private key, and the local unit public key is generated based on the local unit identifier; finally, based on the local issuance signature, the target request resource, the local unit identifier and the request unit identifier, a target resource issuance certificate is generated, and the target resource issuance certificate is sent to the request registration unit, so that the request registration unit uses the target request resource after the resource verification of the local issuance signature is passed according to the local unit identifier. In the embodiment of the present application, after the local registration unit receives the request for the target resource from the requesting registration unit, it uses the local private key signature generated by the local unit private key carried by itself, and uses the local unit public key associated with the local unit private key to directly generate a local issuance signature, and generates a target resource issuance certificate based on the local issuance signature, and sends the target resource issuance certificate to the requesting registration unit, so that during the resource issuance process, the local registration unit does not need to obtain relevant resource issuance information from the main registration unit; and after the requesting registration unit receives the local issuance signature, since the local unit public key is generated based on the local unit identifier, the requesting registration unit can directly use the local unit identifier in the target resource issuance certificate to generate the local unit public key, and use the local unit public key to perform resource verification on the local issuance signature, so that during the resource issuance process, the requesting registration unit does not need to obtain relevant resource verification information from the main registration unit, thereby effectively reducing communication overhead when performing secure and reliable resource issuance in the resource public key infrastructure, thereby improving the efficiency of resource issuance and resource verification.

[0066] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 It is a structural diagram of a resource public key infrastructure provided by an embodiment of the present application.

[0068] Figure 2This is a flowchart of a resource issuance method of a resource public key infrastructure provided by another embodiment of the present application.

[0069] Figure 3 This is a flowchart of unit registration of a local registration unit provided by another embodiment of the present application.

[0070] Figure 4 This is a flowchart for generating a local unit identifier provided by another embodiment of the present application.

[0071] Figure 5 yes Figure 3 Flow chart of step 304 in FIG.

[0072] Figure 6 yes Figure 5 Flowchart of step 502 in FIG.

[0073] Figure 7 yes Figure 5 Flow chart of step 503 in FIG.

[0074] Figure 8 This is a schematic diagram of the generation process of a local unit private key provided in another embodiment of the present application.

[0075] Fig. 9 This is a flowchart of generating a local unit public key provided by another embodiment of the present application.

[0076] Fig.10 This is a schematic diagram of the generation process of a local unit public key provided in another embodiment of the present application.

[0077] Fig.11 It is a schematic diagram of a registration information table provided in yet another embodiment of the present application.

[0078] Fig.12 yes Figure 2 Flow chart of step 203 in FIG.

[0079] Fig.13 yes Fig.12 Flowchart of step 1201 in FIG.

[0080] Fig.14 yes Fig.12 Flowchart of step 1202 in FIG.

[0081] Fig.15 This is a flowchart of a resource verification method of a resource public key infrastructure provided by another embodiment of the present application.

[0082] Fig.16 This is a schematic diagram of the hardware structure of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0083] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0084] It should be noted that although the functional modules are divided in the device schematic and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart.

[0085] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0086] First, some nouns involved in this application are analyzed:

[0087] Resource Public Key Infrastructure (RPKI) is a framework for securely managing the Internet routing system. It provides a way to verify the owners and authorized users of network resources and prevent attacks such as route hijacking and IP address spoofing. RPKI is based on the principles of public key infrastructure (PKI) and uses digital certificates to verify the owners of network resources. It involves the following main components: Certificate Authority (CA): CA is responsible for issuing digital certificates to confirm the identity of the owner of network resources and authorize their use. The CA's certificate is called the RPKI root certificate. Resource Holder: Resource holders are organizations or individuals who own Internet resources (such as IP address segments). They obtain digital certificates from CA to prove their resource ownership. Router Validator: Router Validator is a software or hardware device used to verify digital certificates from RPKI and ensure that only authorized routes are accepted and propagated by filtering the routing table.

[0088] By using RPKI, network operators can verify the legitimacy of routing information received from other network operators and reject untrusted routes. This helps reduce the risk of route hijacking and spoofing attacks and improves the security and stability of the Internet routing system. It should be noted that RPKI is a complex system that requires the cooperation of network operators, Internet service providers, and other relevant parties to achieve effective deployment and operation. It plays an important role in protecting the Internet routing system from malicious attacks.

[0089] IPK (Identity-based Public Key) is a public key technology, referred to as IPK. IPK is a method or technical protocol for public key management based on identity. IPK realizes the binding relationship between identity and key by mapping a smaller seed matrix with identity and combining mathematical combination algorithm, thereby replacing the management of public key with the distribution management of identity.

[0090] A digital certificate is a security credential used to verify and confirm identity in network communications. It is built on the concepts of public key cryptography and public key infrastructure. A digital certificate uses a digital signature to ensure the integrity and authenticity of the certificate, and uses a public key for identity authentication and encrypted communications. A digital certificate contains a series of key information. The first is the subject identifier, which uniquely identifies the owner of the certificate, usually the name of an organization or individual. Secondly, a digital certificate contains a public key associated with the certificate owner, which is used to encrypt and decrypt data and verify digital signatures. In addition, a digital certificate also contains a digital signature, which is calculated by the certificate authority (CA) using its private key to encrypt the contents of the certificate and is used to verify the integrity and authenticity of the certificate.

[0091] Resource Public Key Infrastructure is a system for managing digital certificates. In resource public key infrastructure, the reasonable issuance of resources is the core mechanism for providing security, so it is necessary to plan a suitable resource public key infrastructure certificate issuance method.

[0092] In the related art, for resource issuance in resource public key technology facilities, in order to ensure the security of resource issuance, usually after the upper layer unit of the request unit verifies the requested resource of the request unit, it obtains the private key from the main registration unit, and signs the private key according to the private key, and generates a resource certificate based on the private key signature and sends it to the request unit; after receiving the resource certificate, the request unit also needs to send the private key signature to the main registration unit to verify the validity of the resource certificate. However, using this method for resource issuance requires multiple information interactions with the main registration unit, especially when there are a large number of units in the resource public key infrastructure, which will lead to a large communication overhead in the resource issuance and verification process, making the resource issuance efficiency low.

[0093] In order to improve the efficiency of resource issuance in the resource public key infrastructure, in an embodiment of the present application, after receiving the request for the target resource from the requesting registration unit, the local registration unit uses the local private key signature generated by the local unit private key carried by itself, and uses the local unit public key associated with the local unit private key to directly generate a local issuance signature, and generates a target resource issuance certificate based on the local issuance signature, and sends the target resource issuance certificate to the requesting registration unit, so that during the resource issuance process, the local registration unit does not need to obtain relevant resource issuance information from the main registration unit; and after the requesting registration unit receives the local issuance signature, since the local unit public key is generated based on the local unit identifier, the requesting registration unit can directly use the local unit identifier in the target resource issuance certificate to generate the local unit public key, and use the local unit public key to perform resource verification on the local issuance signature, so that during the resource issuance process, the requesting registration unit does not need to obtain relevant resource verification information from the main registration unit, thereby effectively reducing communication overhead when performing secure and reliable resource issuance in the resource public key infrastructure, thereby improving the efficiency of resource issuance and resource verification.

[0094] The resource issuance method, resource verification method and system of the resource public key infrastructure provided by the embodiment of the present application will be further described below. In order to better explain the resource issuance method of the resource public key infrastructure provided by the embodiment of the present application, this embodiment first describes a resource public key infrastructure of the present application. Figure 1 As shown in FIG. 1 , it is a schematic diagram of the structure of a resource public key infrastructure provided by an embodiment of the present application. Figure 1 As shown in , the resource public key infrastructure includes multiple units associated in a hierarchical manner, wherein the units include, from top to bottom, the main registration unit (IANA), the regional registration unit (APNIC), the local registration unit (including the local registration unit 1 (CNNIC), the local registration unit 2 (IPNIC) and the local registration unit 3 (TWNIC)) and the request registration unit (the request registration unit ISP associated with the local registration unit 1). It can be understood that, as Figure 1 The resource public key infrastructure shown only uses the four-layer unit (six units in total) as an example. In fact, the resource public key infrastructure has many units, and the number of units does not affect the use of the resource issuance method of the resource public key infrastructure provided in this application.

[0095] like Figure 1In the resource public key infrastructure shown, the main registration unit holds resource certificate 1, the regional registration unit holds resource certificate 2, the local registration unit 1 holds resource certificate 3, the local registration unit 2 holds resource certificate 4, and the local registration unit 3 holds resource certificate 5; and the resource content of resource certificate 2 is a subset of the resource content of resource certificate 1, and the resource content of resource certificate 3, resource certificate 4, and resource certificate 5 is a subset of the resource content of resource certificate 2.

[0096] In addition, if Figure 1 In the resource public key infrastructure shown, the master registration unit carries a dedicated management device for storing and managing private key matrices and public key matrices, where the private key matrix is ​​a private resource and cannot be viewed by all units (including the master registration unit itself); other units all carry a public key matrix synchronization server for real-time synchronization of the public key management devices in the dedicated management device.

[0097] Among them, the private key matrix and the public key matrix are 32x32 pairs of ECC (SM2 / ECDSA) key pairs randomly generated by the dedicated management device. The corresponding 32x32 private key elements are stored in the security key area of ​​the dedicated management device in sequence, that is, the private key matrix, and the corresponding 32x32 public key elements are stored in a file in sequence, that is, the public key matrix file. The private key matrix is ​​the key sensitive data of the system and needs to be protected by hardware cryptographic devices, while the public key matrix file is a publicly available parameter, usually in the form of a file.

[0098] based on Figure 1 The resource public key infrastructure shown in the figure, the resource issuance method of the resource public key infrastructure in the embodiment of the present application will be described in detail below. The resource issuance method of the resource public key infrastructure provided in the embodiment of the present application is applied to the local registration unit in the resource public key infrastructure.

[0099] Reference Figure 2 , which is an optional flow chart of a resource issuance method of a resource public key infrastructure provided in an embodiment of the present application, Figure 2 The method may include but is not limited to steps 201 to 204. It can also be understood that this embodiment Figure 2 The order of step 201 to step 204 is not specifically limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs.

[0100] Step 201: Receive a resource certificate issuance request from a registration request unit.

[0101] Step 201 is described in detail below.

[0102] The resource certificate issuance request includes that in some embodiments, before the request registration unit uses the target request resource, the request registration unit needs to send a resource certificate issuance request to the local registration unit, and the resource certificate issuance request includes the target request resource and the request unit identifier of the request registration unit. After receiving the resource certificate issuance request issued by the request registration unit, the local registration unit needs to perform the issuance process of the target request resource.

[0103] In some embodiments, in order to avoid the cumbersome communication overhead of the local registration unit and the requesting registration unit needing to obtain the local unit public key of the local registration unit from the main registration unit during resource issuance and resource verification, each unit will be equipped with a shared synchronized public key matrix, and then the local unit public key can be calculated by combining the local unit identifier and the public key matrix of the local registration unit.

[0104] In addition, in order to ensure that in the resource certificate management system, each unit needs to register with the main registration unit before applying for resources from the upper level unit and issuing resources to the lower level unit. The following further describes the process of unit registration by the local registration unit.

[0105] Reference Figure 3 Before receiving the resource certificate issuance request from the registration request unit, the resource issuance method of the resource public key infrastructure also includes the following steps 301 to 305.

[0106] Step 301: Send a unit registration request to the main registration unit.

[0107] Step 301 is described in detail below.

[0108] In some embodiments, before receiving the resource certificate issuance request from the requesting registration unit, the local registration unit needs to send a unit registration request to the main registration unit, and the unit registration request includes an identification request, a private key generation request, and a public key generation request of the local registration unit. After receiving the unit registration request, the main registration unit needs to assist the local registration unit in completing the relevant unit registration process.

[0109] Step 302: Obtain the local unit identifier generated by the main registration unit based on the identifier request.

[0110] Step 302 is described in detail below.

[0111] In some embodiments, after receiving the unit registration request from the local registration unit, the main registration unit first generates a local unit identification of the local registration unit based on the identification request, and the local unit identification is generated based on the unit chain relationship of all units between the local registration unit and the main registration unit. The following further describes how the main registration unit generates the local unit identification of the local registration unit.

[0112] Reference Figure 4 When generating the local unit identifier, the main registration unit executes the following steps 401 to 402.

[0113] Step 401: determine the unit chain relationship of all units between the main registration unit and the local registration unit one by one, and obtain the unit attribute names of all units between the main registration unit and the local registration unit.

[0114] Step 402: Based on the hierarchical order from top to bottom in the unit chain relationship, a local unit identifier is generated according to the unit attribute names of all units between the main registration unit and the local registration unit.

[0115] Steps 401 to 402 are described in detail below.

[0116] In some embodiments, in the process of the main registration unit generating the local unit identification of the local registration unit, the main registration unit determines the unit chain relationship of all units between the main registration unit and the local registration unit one by one, and obtains the unit names of all units between the registration unit and the registration unit; then, based on the hierarchical order from top to bottom in the unit chain relationship, the unit identification is generated according to the unit attribute names of all units between the main registration unit and the local registration unit. Figure 1 Taking the local registration unit CNNIC shown in the figure as an example, the unit chain relationship between the main registration unit IANA, the regional registration unit APNIC and the local registration unit CNNIC in hierarchical order is determined one by one, and the unit attribute names correspond to IANA, APNIC and CNNIC respectively. Next, based on the hierarchical order from top to bottom in the unit chain relationship, the unit identifier of the local registration unit CNNIN is generated one by one according to the corresponding unit attribute name order as ID IANA ||ID APNIC ||ID CNNIC .

[0117] In addition, during the registration process of the local registration unit, the main registration unit can also use another method when generating the local unit identifier. Specifically, directly determine the parent unit of the local registration unit, obtain the parent unit identifier of the parent unit, and then add the unit attribute name of the local registration unit to the end of the parent unit identifier to generate the local unit identifier. Figure 1 Taking the local registration unit CNNIC as an example, the upper level unit of the local registration unit CNNIC is directly determined to be the regional registration unit APNIC, and then the unit identification ID of the regional registration unit APNIC is obtained from the main registration unit IANA. IANA ||ID APNIC, and add the unit attribute name of the local registration unit to the unit identification ID of the regional registration unit APNIC IANA ||ID APNIC At the end of the local registration unit CNNIN, the unit ID is used to generate the local registration unit CNNIN IANA ||ID APNIC ||ID CNNIC .

[0118] Through the above steps 401 to 402, a simple but clearly identifiable unit identifier is generated by utilizing the unit chain relationship, so that during the process of resource issuance or resource verification, the requesting registration unit can directly determine the local unit identifier of the upper-level local registration unit according to its own chain relationship for resource verification, without obtaining the unit public key of the local registration unit from the main registration unit, thereby effectively reducing the communication overhead of the resource certificate management system and improving the efficiency of resource issuance and resource verification.

[0119] Step 303: Generate a first private key random number, generate a first public key random number based on the first private key random number, and send the first public key random number to the main registration unit.

[0120] Step 303 is described in detail below.

[0121] In some embodiments, after sending a unit registration request to the main registration unit, the local registration unit will generate a first private key random number r1 in the local registration unit itself, and then generate a first public key random number R1=r1*G based on the product of the first private key random number r1 and a preset matrix G, and then send the first public key random number R1 to the main registration unit, so that the main registration unit can assist the local registration unit in generating the local unit public key and local unit private key of the local registration unit according to the first public key random number.

[0122] Step 304: Receive the second public key random number generated by the main registration unit based on the private key generation request, and generate a local registration private key based on the first private key random number, the first public key random number and the second public key random number.

[0123] Step 304 is described in detail below.

[0124] In some embodiments, after receiving the unit registration request from the local registration unit, the main registration unit generates a second private key random number r2 based on the private key generation request, and then generates a second public key random number R2=r2*G based on the product of the second private key random number r2 and a preset matrix G, and then sends the second public key random number R2 to the local registration unit, so that the local registration unit generates a local registration private key according to the first public key random number, the first private key random number, and the second public key random number. How to generate a local registration private key will be further described below.

[0125] Reference Figure 5 , generating a local registration private key based on a first private key random number, a first public key random number and a second public key random number, including the following steps 501 to 503.

[0126] Step 501: Accumulate the first public key random number and the second public key random number to generate an accompanying public key.

[0127] The following is a detailed description of step 501.

[0128] In some embodiments, after receiving the second public key random number, the local registration unit first accumulates the first public key random number R1 and the second public key random number R2 to generate an accompanying public key R=R1+R2, and sends the accompanying public key R to the main registration unit for storage, so as to facilitate the subsequent generation of the local unit private key and the local unit public key according to the accompanying matrix.

[0129] Step 502: Generate a coordinate sequence set based on the accompanying public key and the local unit identifier, and send the coordinate sequence set to the dedicated management device of the main registration unit, so that the dedicated management device generates a central key based on the coordinate sequence set and the second private key random number of the main registration unit.

[0130] Step 502 is described in detail below.

[0131] In some embodiments, after the local registration unit obtains the accompanying public key R, a coordinate sequence set HMACR for generating a series of coordinate values ​​is generated based on the accompanying public key and the local unit identifier, so that the coordinate sequence set is sent to the dedicated management device of the main registration unit, so that the dedicated management device generates a central key according to the coordinate sequence set HMACR and the second private key random number r2 of the main registration unit. How to generate the coordinate sequence set is further described in detail below.

[0132] Reference Figure 6 , generating a coordinate sequence set based on the accompanying public key and the local unit identifier, including the following steps 601 to 602.

[0133] Step 601: Obtain the authentication code algorithm.

[0134] Step 602: Use the accompanying public key as the key for the authentication code algorithm, and perform authentication calculation on the local unit identifier based on the authentication code algorithm to obtain a coordinate sequence set.

[0135] Steps 601 to 602 are described in detail below.

[0136] In some embodiments, after obtaining the accompanying public key R, the local registration unit first obtains an authentication code algorithm for generating a coordinate sequence set. The authentication code algorithm is a message authentication code algorithm based on a hash function, which may be HMAC-SHA256 or HMAC-MD5, etc. Commonly used hash functions include SHA-1, SHA-256, etc. Next, the accompanying public key is used as a key for the authentication code algorithm, and the local unit identifier is authenticated based on the authentication code algorithm to obtain a coordinate sequence set.

[0137] Through the above steps 601 to 602, the message authentication code algorithm is used in combination with the local unit identifier as calculation data, so that the security of generating the coordinate sequence set is improved while improving the association with the local unit identifier when subsequently using the coordinate sequence set to generate the local unit public key and the local unit private key.

[0138] In some embodiments, after receiving the coordinate sequence set HMACR, the dedicated management device of the main registration unit divides the coordinate sequence set HMACR into 32 groups, including I0, I1, ..., I31, and then the dedicated management device selects the key corresponding to the coordinate position of each group in the pre-generated private key matrix, and obtains the key set iskm based on the 32 keys, wherein the private key matrix includes multiple private key elements. Next, the dedicated management device accumulates each key in the key set iskm and the second private key random number r2 to obtain the central secret key isk'. It can be understood that in order to improve the security of the resource public key infrastructure, the private key matrix is ​​only stored in the dedicated management device, and all units cannot view it (including the main registration unit); therefore, in the process of generating the central secret key isk' using the coordinate sequence set, it is implemented by the dedicated management device, and finally the generated central secret key isk' is sent to the local registration unit only through the main registration unit.

[0139] Step 503: Obtain the central key issued by the main registration unit, and generate a local registration private key based on the central key and the first private key random number.

[0140] Step 503 is described in detail below.

[0141] In some embodiments, after receiving the central secret key isk' issued by the main registration unit, the local registration unit generates a local registration private key based on the central secret key isk' and the first private key random number r1. How to generate the local registration private key will be further described below.

[0142] Reference Figure 7 , generating a coordinate sequence set based on the accompanying public key and the local unit identifier, including the following steps 701 to 702.

[0143] Step 701: Accumulate the central key and the first private key random number to obtain the total number of local private keys.

[0144] Step 702: Obtain a preset private key divisor, and obtain a local registration private key based on the remainder of the total number of local private keys divided by the preset private key divisor.

[0145] Steps 701 to 702 are described in detail below.

[0146] In some embodiments, after the local registration unit receives the central secret key isk' and obtains the preset private key divisor n, it accumulates the central secret key isk' and the first private key random number r1 to obtain the total number of local private keys (isk'+r1), and then obtains the local registration private key isk = (isk'+r) mod n based on the remainder (isk'+r) mod n after the total number of local private keys is divided by the preset private key divisor.

[0147] Reference Figure 8 , is a schematic diagram of a generation process of a local unit private key provided by an embodiment of the present application. Figure 8 As shown, the local unit private key needs to be generated in collaboration between the local registration unit and the dedicated management device of the main registration unit. The generation process includes:

[0148] 1) First, the local registration unit generates a random key pair (first private key random number r1, first public key random number R1) through the ECC public algorithm, and outputs the first public key random number R1 to the main registration unit.

[0149] 2) The master registration unit also generates a random key pair (a second private key random number r2, a second public key random number R2), and adds the first public key random number R1 to the generated second public key random number to obtain an accompanying public key R, that is, R=R1+R2.

[0150] 3) The master registration unit then uses HMAC mapping to obtain a coordinate sequence set by using the local unit identifier and the accompanying public key R. The coordinate sequence set determines the mapping coordinates of the identifier on the matrix (the number of columns of the coordinates is determined by the number of columns of the coordinate sequence set).

[0151] 4) The main registration unit sends the mapping coordinates and the second private key random number r2 to the dedicated management device for query and calculation to obtain the central key isk'.

[0152] 5) The main registration unit then returns the central key isk' to the local registration unit, and the local registration unit combines the first private key random number and the central secret key isk' to obtain the local unit private key isk, that is, isk=(isk'+r)mod n.

[0153] Through the above steps 501 to 503, the dedicated cryptographic device of the master registration unit and the local registration unit are used to collaboratively generate the local unit private key, and combined with the complete confidentiality of the private key matrix in the dedicated cryptographic device and the first private key random number of the local registration unit itself, the confidentiality and security of the generated local unit private key are effectively improved. In addition, the generated local unit private key is only stored by the local registration unit, and other units (including the master registration unit) cannot know it, which further improves the security of the resource public key infrastructure.

[0154] Step 305: Receive the local unit public key generated by the main registration unit based on the public key generation request.

[0155] Step 305 is described in detail below.

[0156] In some embodiments, after receiving the unit registration request and the first public key random number R1 from the local registration unit, the master registration unit generates a local unit public key based on the public key generation request, and sends the local unit public key to the local registration unit, so that the local registration unit can perform resource management and resource issuance according to the local unit public key. How the master registration unit generates the local unit public key will be further described below.

[0157] Reference Fig. 9 When generating the local unit public key, the main registration unit executes the following steps 901 to 904.

[0158] Step 901: Obtain a public key matrix.

[0159] Step 902: Obtain a selected coordinate set based on the element value of each sequence element in the coordinate sequence set.

[0160] Step 903: Selecting a preset number of public key elements from the public key matrix as local public key elements based on the selected coordinate set.

[0161] Step 904: Accumulate all local public key elements and accompanying public keys to obtain the local unit public key.

[0162] Steps 901 to 904 are described in detail below.

[0163] In some embodiments, after obtaining the coordinate sequence set HMACR, the main registration unit first obtains the public key matrix in the dedicated management device, wherein the public key matrix includes multiple public key elements. Next, the selected coordinate set (I0, I1, ..., I31) is obtained based on the element value of each sequence element in the coordinate sequence set. Then, based on the selected coordinate set, a preset number of public key elements are selected from the public key matrix as local public key elements, and a public key density IPKm is obtained based on all local public key elements. Finally, all local public key elements and accompanying public keys R in all public key densities IPKm are accumulated to obtain the local unit public key IPK.

[0164] Reference Fig.10 , is a schematic diagram of a generation process of a local unit public key provided in an embodiment of the present application. Fig.10 As shown, the local unit public key generation process includes:

[0165] 1) The master registration unit obtains the registration unit identifier and accompanying public key R of the local registration unit.

[0166] 2) The master registration unit uses the local unit identifier as data and the public key as the key to calculate HMAC to obtain the coordinate sequence set.

[0167] 3) The master registration unit groups the coordinate sequence set HMACR and obtains the selected coordinate set by combining the matrix row and column information in the public key matrix.

[0168] 4) The master registration unit selects 32 public key matrix elements from the public key matrix according to the selected coordinate set, and obtains the secret key set IPKm from these 32 public key matrix elements (i.e., points on the elliptic curve).

[0169] 5) The master registration unit then adds the secret key set IPKm and the accompanying public key R to obtain the local unit public key IPK, that is, IPK=IPKm+R.

[0170] Through the above steps 901 to 904, the local unit public key is generated using the coordinate sequence set obtained by the accompanying public key R1 and the local unit identifier, which is the same as the local unit private key, so that the local unit public key and the local unit private key are associated and bound, so that the signature generated by the local unit private key can be verified by the local unit public key, thereby improving the security and reliability of resource issuance verification of the resource public key infrastructure.

[0171] In some embodiments, the process of the main registration unit assisting the local registration unit in unit registration can be performed offline or online. After the main registration unit obtains the local unit identification, the second private key random number, the accompanying public key, and the local registration unit obtains the local unit identification, the local unit public key, and the local unit private key, the unit registration will be completed and the effective period of use of the unit registration will be generated at the same time. In addition, the main registration unit also generates a registration information table based on all unit registration information. Fig.11 The figure is a schematic diagram of a registration information table provided in an embodiment of the present application. Fig.11 The unit attribute names, unit identifiers, second private key random numbers, accompanying public keys, and corresponding registered valid usage periods of multiple units in the resource public key infrastructure are stored in the resource public key infrastructure.

[0172] Step 202: Obtain the local private key signature of the local registration unit.

[0173] Step 202 is described in detail below.

[0174] In some embodiments, after receiving the resource certificate issuance request from the requesting registration unit, the local registration unit will obtain the local private key signature of the local registration unit. The local private key signature is generated based on the local unit private key and signature algorithm of the local registration unit. And the local private key signature can be pre-generated by the local registration unit, or it can be generated in real time by the local registration unit after responding to the resource certificate issuance request.

[0175] Step 203: Generate a local issuance signature based on the local private key signature, the local unit public key of the local registration unit, and the local unit identifier of the local registration unit.

[0176] Step 203 is described in detail below.

[0177] In some embodiments, after obtaining the local private key signature, in order to further improve the effectiveness of the local unit identifier and the local unit public key in verifying the issued resources, the signature algorithm will be used again based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit to generate a local issuance signature.

[0178] In addition, in order to improve the reliability and security of resource issuance, the local registration unit needs to perform resource verification on the target requested resource after receiving the resource certificate issuance request from the requesting registration unit.

[0179] Reference Fig.12 , based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit, a local issuance signature is generated, including the following steps 1201 to 1202.

[0180] Step 1201: Acquire local resources of the local registration unit, perform resource inspection on the target request resource based on the local resources, and obtain resource inspection results.

[0181] Step 1201 is described in detail below.

[0182] In some embodiments, in order to improve the reliability and security of resource issuance, after receiving the resource certificate issuance request from the requesting registration unit, the local registration unit also needs to obtain the local resources in the resource certificate held by the local registration unit, and then perform resource inspection on the target requested resource based on the local resources to obtain the resource inspection result. How to perform resource inspection will be further described below.

[0183] Reference Fig.13 , performing resource inspection on the target requested resource based on the local resource to obtain the resource inspection result, including the following steps 1301 to 1303.

[0184] Step 1301: Obtain the valid period of use of the local unit identifier.

[0185] Step 1302: When the current time is within the valid usage period, generate resource inclusion information based on local resources and target requested resources.

[0186] Step 1303: Obtain resource usage information of the target requested resource, and generate a resource verification result based on the resource usage information and resource inclusion information.

[0187] Steps 1301 to 1303 are described in detail below.

[0188] In some embodiments, during the resource verification process of the target requested resource, the valid period of use of the unit registration corresponding to the local unit identifier is first obtained; when the current moment of receiving the resource certificate issuance request is within the valid period of use, it is determined whether the target requested resource is completely a local resource, and resource inclusion information is generated based on the determination result. Next, it is also necessary to obtain resource usage information of whether the target requested resource is currently being used, and finally generate a resource verification result based on the resource usage information and resource inclusion information.

[0189] Through the above steps 1301 to 1303, by performing resource inclusion checks on the target requested resources and local resources, as well as checking the usage of the target requested resources, and then making a judgment based on the effective usage period of the local resources, the security and reliability of resource issuance in the resource public key infrastructure are improved.

[0190] Step 1202: When the resource verification result indicates that the target requested resource is correct, a local issuance signature is generated based on the local private key signature, the local unit public key of the local registration unit, and the local unit identifier of the local registration unit.

[0191] Step 1202 is described in detail below.

[0192] In some embodiments, when the obtained resource inspection result indicates that the current moment is within the valid usage period, and the target request resource is completely a local resource, and the target request resource is in an idle state, the local registration unit confirms that the target request resource can be issued to the request registration unit. At this time, the local registration unit will further generate a local issuance signature based on the local private key signature, the local unit public key of the local registration unit, and the local unit identifier of the local registration unit. How to generate a local issuance signature will be further described below.

[0193] Reference Fig.14 , based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit, a local issuance signature is generated, including the following steps 1401 to 1402.

[0194] Step 1401: Obtain hash parameters, and calculate the hash value of the target requested resource based on the hash parameters to obtain a target resource summary.

[0195] Step 1402: Perform hash calculation based on the target resource summary, the local unit identifier, the local private key signature, and the local unit public key to obtain a local issuance signature.

[0196] Steps 1401 to 1402 are described in detail below.

[0197] In some embodiments, when the local registration unit determines that the resource verification result indicates that the target request resource requested by the request registration unit can be reasonably issued, it will first obtain a hash function for generating a signature, such as SHA-256, SHA-3, SHA-1, etc. Then, the hash function is used to calculate the hash value of the target request resource to obtain the target resource summary; then, the hash function is used to perform a hash calculation on the target resource summary, the local unit identifier, the local private key signature, and the local unit public key to obtain a local issuance signature.

[0198] Thereby, the local unit public key and the local private key signature generated by the local unit private key are further associated, and the local unit identifier and the local unit public key are further associated, and combined with the target resource summary, a local issuance signature is generated to represent the local registration unit's consent and issuance to the requesting registration unit to use the target requested resource. As a result, after receiving the local issuance signature, the subsequent requesting registration unit can use the local unit identifier to perform resource verification on the local issuance signature, thereby improving the security and reliability of resource issuance.

[0199] Step 204: Based on the local issuance signature, target request resource, local unit identifier and request unit identifier, a target resource issuance certificate is generated, and the target resource issuance certificate is sent to the request registration unit, so that the request registration unit can use the target request resource after verifying the local issuance signature according to the local unit identifier.

[0200] Step 204 is described in detail below.

[0201] In some embodiments, after obtaining the local issuance signature used to characterize the consent of the local registration unit and issuing it to the requesting registration unit to use the target requested resource, the local registration unit generates a target resource issuance certificate based on the local issuance signature, the target requested resource, the local unit identifier, and the requesting unit identifier, and sends the target resource issuance certificate to the requesting registration unit; so that the requesting registration unit verifies the local issuance signature according to the local unit identifier in the target resource issuance certificate, and uses the target requested resource after passing. Therefore, in the process of resource issuance and resource verification, the local registration unit and the local registration unit do not need to obtain relevant resource issuance and resource verification information from the main registration unit, which effectively reduces communication overhead and improves the efficiency of resource issuance and resource verification.

[0202] In addition, the present application adopts an identity-based key management method. The local unit private key of the local registration unit is not generated arbitrarily by itself, but requires the cooperation of the dedicated management equipment of the main registration unit. However, the main registration unit cannot obtain the local unit private key of the local registration unit, that is, there is no key custody problem, thereby improving the security of the resource public key infrastructure.

[0203] In addition, the embodiment of the present application also provides a resource authentication method of a resource public key infrastructure, which is applied to a request registration unit. Fig.15 As shown, the resource authentication method of the resource public key infrastructure includes the following steps 1501 to 1504.

[0204] Step 1501: Generate a resource certificate issuance request based on the request unit identifier of the requesting registration unit and the target request resource, and send the resource certificate issuance request to the local registration unit.

[0205] Step 1502: Receive a target resource issuance certificate issued by a local registration unit in response to a resource certificate issuance request.

[0206] Step 1503: Calculate and verify the local unit public key based on the local unit identifier, and perform signature verification on the local issuance signature based on the verification local unit public key to obtain a signature verification result.

[0207] Step 1504: When the signature verification result indicates that the correspondence between the local issuance signature and the local unit identifier is correct, the target request resource is used.

[0208] Steps 1501 to 1504 are described in detail below.

[0209] In some embodiments, when the request registration unit needs to apply for the use of the target requested resource, it will generate a resource certificate issuance request based on the request registration unit identifier and the target requested resource, and send the resource certificate issuance request to the local registration unit so that the local registration unit can verify and issue the target requested resource. After the request registration unit receives the target resource issuance certificate issued by the local registration unit in response to the resource certificate issuance request, it will perform signature verification on the local issuance signature in the target resource issuance certificate based on the local unit identifier of the local registration unit in the target resource issuance certificate.

[0210] Among them, the signature verification includes: according to the local unit public key generation steps similar to the above steps 901 to 904, the registration unit is requested to generate a local unit public key using the local unit identifier and the public key matrix, and then the association between the local unit public key and the local unit private key is used to perform signature verification on the local issuance signature to obtain a signature verification result.

[0211] When the signature verification result indicates that the correspondence between the local issuance signature and the local unit identifier is correct, the registration unit is requested to use the target request resource.

[0212] It can be understood that the resource verification method of the resource public key infrastructure provided in the embodiment of the present application and the resource issuance method of the resource public key infrastructure mentioned above have the same relevant steps and beneficial effects, only the perspective of the application end is different. Therefore, the resource verification method of this resource public key infrastructure can refer to the resource issuance method of the resource public key infrastructure mentioned above.

[0213] In some embodiments, the resource issuance method and resource verification method of the resource public key infrastructure provided by the present application are implemented based on IPK technology. IPK is a key generation based on the identity. Through the mapping algorithm between the key matrix and the identity, the binding of the identity and the key is realized, and the identity is equivalent to the public key, thereby solving the distribution and management problem of massive public keys. The IPK identity public key management system is based on ECC, and the calculated key pair is no different from the key pair generated by the ECC-based PKICA, so the key pair calculated by the IPK identity public key management system and the key pair generated by PKICA are exactly the same in application. The only difference is that the IPK identity public key management system uses the identity instead of the public key for management, while the PKICA system uses the certificate to manage the public key. Since both the IPK identity public key management system and PKICA can be based on ECC and can share key pairs, the IPK identity public key management system and the PKICA system can achieve intercommunication and compatibility. In the Internet of Things application, the CA on the edge side adopts IPK, and the center can still adopt the general PKICA, thereby realizing the integration of the two public key management systems and the complementary advantages of the two systems.

[0214] IPK solves the limitation that identification private keys can only be produced by the center, and realizes the CA's complete autonomy and control over private keys. The center cannot obtain the CA private key, which complies with the requirement of the National Electronic Signature Law that private keys can only be generated and stored by the user.

[0215] During the key pair production process, the CA generates a custom random key pair and sends the CA random public key to the key center (IANA). At the same time, the key center (IANA) also generates a random key pair and combines the two random public keys. The private key is produced by the key center (IANA) by calculating the identity private key through the identity and private key matrix, and then combining the random private key factor defined by the center and finally combining it at the CA to obtain the CA private key. The center cannot obtain the CA private key.

[0216] IPK solves the technical problem of the center of the identification private key mastering all the end private keys, and the collaborative generation makes it meet the requirements of the Electronic Signature Law; by introducing random factors, the linear problem between private keys is solved, fundamentally solving the potential risk of collusion attacks; and by the accompanying public key participating in the identification mapping, the binding of the identification and the accompanying public key is realized, thereby solving the replacement attack problem of the accompanying public key. Therefore, the IPK lightweight identification key technology has solved all the potential risk problems found in the current identification key system, and retained the advantages of the identification key. It is a very ideal security key management system in the RPKI security system.

[0217] The resource issuance method, resource verification method and system of the resource public key infrastructure proposed in the embodiment of the present application, the resource public key infrastructure includes a plurality of units associated hierarchically, and the units include a local registration unit and a request registration unit from top to bottom. The method is applied to the local registration unit, and the method includes: first, sending a unit registration request to the main registration unit, the unit registration request includes an identification request, a private key generation request and a public key generation request, obtaining a local unit identification generated by the main registration unit based on the identification request, the local unit identification is generated based on the unit chain relationship of all units between the local registration unit and the main registration unit, generating a first private key random number, and generating a first public key random number based on the first private key random number, sending the first public key random number to the main registration unit, receiving a second public key random number generated by the main registration unit based on the private key generation request, and generating a local registration private key based on the first private key random number, the first public key random number and the second public key random number, receiving a local unit public key generated by the main registration unit based on the public key generation request, the local unit public key is generated based on the first public key random number; receiving the resource certificate of the request registration unit The resource certificate issuance request includes the target request resource and the request unit identifier of the request registration unit; then, the local private key signature of the local registration unit is obtained, and the local private key signature is generated based on the local unit private key of the local registration unit; next, the local resource of the local registration unit is obtained, and the target request resource is verified based on the local resource to obtain the resource verification result. When the resource verification result indicates that the target request resource is correct, the hash parameter is obtained, and the hash value of the target request resource is calculated based on the hash parameter to obtain the target resource summary. The hash calculation is performed based on the target resource summary, the local unit identifier, the local private key signature and the local unit public key to obtain the local issuance signature. The local unit public key is associated and bound with the local unit private key, and the local unit public key is generated based on the local unit identifier; finally, based on the local issuance signature, the target request resource, the local unit identifier and the request unit identifier, the target resource issuance certificate is generated, and the target resource issuance certificate is sent to the request registration unit, so that the request registration unit uses the target request resource after the local issuance signature is verified according to the local unit identifier.

[0218] In the embodiment of the present application, after the local registration unit receives the request for the target resource from the requesting registration unit, it uses the local private key signature generated by the local unit private key carried by itself, and uses the local unit public key associated with the local unit private key to directly generate a local issuance signature, and generates a target resource issuance certificate based on the local issuance signature, and sends the target resource issuance certificate to the requesting registration unit, so that during the resource issuance process, the local registration unit does not need to obtain relevant resource issuance information from the main registration unit; and after the requesting registration unit receives the local issuance signature, since the local unit public key is generated based on the local unit identifier, the requesting registration unit can directly use the local unit identifier in the target resource issuance certificate to generate the local unit public key, and use the local unit public key to perform resource verification on the local issuance signature, so that during the resource issuance process, the requesting registration unit does not need to obtain relevant resource verification information from the main registration unit. Therefore, when performing secure and reliable resource issuance in the resource public key infrastructure, the communication overhead is effectively reduced, thereby improving the efficiency of resource issuance and resource verification; in addition, by utilizing the unit chain relationship, a simple but clearly identifiable unit identifier is generated, so that during the process of resource issuance or resource verification, the requesting registration unit can directly determine the local unit identifier of the upper-level local registration unit according to its own chain relationship for resource verification, without having to obtain the unit public key of the local registration unit from the main registration unit, thereby effectively reducing the communication overhead of the resource certificate management system, thereby improving the efficiency of resource issuance and resource verification; and utilizing the dedicated cryptographic device of the main registration unit and the local registration unit to collaboratively generate the local unit private key, and combining the complete confidentiality of the private key matrix in the dedicated cryptographic device, and combining the first private key random number of the local registration unit itself, effectively improves the confidentiality and security of the generated local unit private key. In addition, the generated local unit private key is only saved by the local registration unit and cannot be known by other units (including the main registration unit), which further improves the security of the resource public key infrastructure; and, by performing resource inclusion checks on the target requested resources and local resources, as well as checking the usage of the target requested resources, and then making a judgment based on the effective usage period of the local resources, the security and reliability of resource issuance in the resource public key infrastructure are improved.

[0219] The embodiment of the present application also provides a resource public key infrastructure system, which includes a plurality of units associated with each other in a hierarchical manner, and the units include a main registration unit, a local registration unit and a request registration unit from top to bottom.

[0220] In some embodiments, the request registration unit is used to generate a resource certificate issuance request based on the request unit identifier of the request registration unit and the target request resource, and send the resource certificate issuance request to the local registration unit;

[0221] In some embodiments, the local registration unit is used to receive a resource certificate issuance request from a requesting registration unit, the resource certificate issuance request including a target requesting resource and a requesting unit identifier of the requesting registration unit;

[0222] In some embodiments, the local registration unit is further used to obtain a local private key signature of the local registration unit, where the local private key signature is generated based on a local unit private key of the local registration unit;

[0223] In some embodiments, the local registration unit is further used to generate a local issuance signature based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit, the local unit public key is associated and bound with the local unit private key, and the local unit public key is generated based on the local unit identifier;

[0224] In some embodiments, the local registration unit is further used to generate a target resource issuance certificate based on the local issuance signature, the target request resource, the local unit identifier and the request unit identifier, and send the target resource issuance certificate to the request registration unit, so that the request registration unit uses the target request resource after verifying the local issuance signature according to the local unit identifier;

[0225] In some embodiments, the local registration unit is further configured to:

[0226] Sending a unit registration request to the master registration unit, the unit registration request including an identification request, a private key generation request, and a public key generation request;

[0227] Obtaining a local unit identifier generated by the main registration unit based on the identifier request, where the local unit identifier is generated based on a unit chain relationship of all units between the local registration unit and the main registration unit;

[0228] Generate a first private key random number, generate a first public key random number based on the first private key random number, and send the first public key random number to the main registration unit;

[0229] receiving a second public key random number generated by the main registration unit based on the private key generation request, and generating a local registration private key based on the first private key random number, the first public key random number, and the second public key random number;

[0230] A local unit public key generated by the main registration unit based on a public key generation request is received, where the local unit public key is generated based on a first public key random number.

[0231] In some embodiments, the local registration unit is further configured to:

[0232] Accumulate the first public key random number and the second public key random number to generate an accompanying public key;

[0233] Generate a coordinate sequence set based on the accompanying public key and the local unit identifier, and send the coordinate sequence set to a dedicated management device of the master registration unit, so that the dedicated management device generates a central key according to the coordinate sequence set and a second private key random number of the master registration unit;

[0234] The central key issued by the main registration unit is obtained, and a local registration private key is generated based on the central key and the first private key random number.

[0235] In some embodiments, the local registration unit is further configured to:

[0236] Get the authentication code algorithm;

[0237] The accompanying public key is used as the usage key of the authentication code algorithm, and the local unit identification is authenticated and calculated based on the authentication code algorithm to obtain a coordinate sequence set.

[0238] In some embodiments, the local registration unit is further configured to:

[0239] Accumulate the central key and the first private key random number to obtain the total number of local private keys;

[0240] A preset private key divisor is obtained, and a local registration private key is obtained based on a remainder obtained by dividing the total number of local private keys by the preset private key divisor.

[0241] In some embodiments, the master registration unit is used to:

[0242] Determine the unit chain relationship of all units between the main registration unit and the local registration unit one by one, and obtain the unit attribute names of all units between the main registration unit and the local registration unit;

[0243] Based on the hierarchical order from top to bottom in the unit chain relationship, the local unit identifier is generated according to the unit attribute names of all units between the main registration unit and the local registration unit.

[0244] In some embodiments, the master registration unit is further configured to:

[0245] Obtain a public key matrix, the public key matrix including multiple public key elements;

[0246] A selection coordinate set is obtained based on the element value of each sequence element in the coordinate sequence set;

[0247] Selecting a preset number of public key elements from the public key matrix as local public key elements based on the selection coordinate set;

[0248] Accumulate all local public key elements and accompanying public keys to obtain the local unit public key.

[0249] In some embodiments, the local registration unit is further configured to:

[0250] Acquire local resources of the local registration unit, perform resource inspection on the target request resource based on the local resources, and obtain resource inspection results;

[0251] When the resource verification result indicates that the target requested resource is correct, a local issuance signature is generated based on the local private key signature, the local unit public key of the local registration unit, and the local unit identifier of the local registration unit.

[0252] In some embodiments, the local registration unit is further configured to:

[0253] Get the valid period of use of the local unit identifier;

[0254] When the current time is within the valid usage period, based on the local resources and the target requested resources, the resource inclusion information is generated;

[0255] The resource usage information of the target requested resource is obtained, and a resource verification result is generated based on the resource usage information and the resource inclusion information.

[0256] In some embodiments, the local registration unit is further configured to:

[0257] Obtain hash parameters, and calculate the hash value of the target requested resource based on the hash parameters to obtain a summary of the target resource;

[0258] A hash calculation is performed based on the target resource summary, the local unit identifier, the local private key signature and the local unit public key to obtain the local issuance signature.

[0259] In some embodiments, the request registration unit is further used to receive a target resource issuance certificate issued by the local registration unit in response to the resource certificate issuance request, the target resource issuance certificate including a local issuance signature of the local registration unit and a local unit identifier of the local registration unit;

[0260] In some embodiments, the registration request unit is further used to calculate and obtain a verification local unit public key based on the local unit identifier, and perform signature verification on the local issuance signature based on the verification local unit public key to obtain a signature verification result;

[0261] In some embodiments, the request registration unit is further used to use the target request resource when the signature verification result indicates that the correspondence between the local issuance signature and the local unit identifier is correct.

[0262] In the embodiment of the present application, after receiving the request for the target resource from the requesting registration unit, the local registration unit of the resource public key infrastructure system uses the local private key signature generated by the local unit private key carried by itself, and uses the local unit public key associated with the local unit private key to directly generate a local issuance signature, and generates a target resource issuance certificate based on the local issuance signature, and sends the target resource issuance certificate to the requesting registration unit, so that during the resource issuance process, the local registration unit does not need to obtain relevant resource issuance information from the main registration unit; and when the requesting registration unit receives the local issuance signature, since the local unit public key is generated based on the local unit identifier, the requesting registration unit can directly use the local unit identifier in the target resource issuance certificate to generate the local unit public key, and use the local unit public key to perform resource verification on the local issuance signature, so that during the resource issuance process, the requesting registration unit does not need to obtain relevant resource issuance information from the main registration unit. Source verification information, thereby effectively reducing communication overhead when performing secure and reliable resource issuance in the resource public key infrastructure, thereby improving the efficiency of resource issuance and resource verification; in addition, by utilizing the unit chain relationship, a simple but clearly identifiable unit identifier is generated, so that during the process of resource issuance or resource verification, the requesting registration unit can directly determine the local unit identifier of the upper-level local registration unit according to its own chain relationship for resource verification, without having to obtain the unit public key of the local registration unit from the main registration unit, thereby effectively reducing the communication overhead of the resource certificate management system, thereby improving the efficiency of resource issuance and resource verification; and utilizing the dedicated cryptographic device of the main registration unit and the local registration unit to collaboratively generate the local unit private key, and combining the complete confidentiality of the private key matrix in the dedicated cryptographic device, as well as the first private key random number of the local registration unit itself, effectively improving the confidentiality and security of the generated local unit private key. In addition, the generated local unit private key is only saved by the local registration unit and cannot be known by other units (including the main registration unit), which further improves the security of the resource public key infrastructure; and, by performing resource inclusion checks on the target requested resources and local resources, as well as checking the usage of the target requested resources, and then making a judgment based on the effective usage period of the local resources, the security and reliability of resource issuance in the resource public key infrastructure are improved.

[0263] The present application also provides an electronic device, including:

[0264] at least one memory;

[0265] at least one processor;

[0266] at least one program;

[0267] The program is stored in the memory, and the processor executes the at least one program to implement the resource issuance method of the resource public key infrastructure implemented in the present application. The electronic device can be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a car computer, etc.

[0268] See also Fig.16 , Fig.16 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0269] The processor 1601 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0270] The memory 1602 can be implemented in the form of ROM (Read Only Memory), static storage device, dynamic storage device or RAM (Random Access Memory). The memory 1602 can store operating systems and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1602, and the processor 1601 calls and executes the resource issuance method of the resource public key infrastructure of the embodiment of this application;

[0271] Input / output interface 1603, used to implement information input and output;

[0272] Communication interface 1604, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0273] A bus 1605 that transmits information between the various components of the device (e.g., the processor 1601, the memory 1602, the input / output interface 1603, and the communication interface 1604);

[0274] The processor 1601 , the memory 1602 , the input / output interface 1603 and the communication interface 1604 are connected to each other in communication within the device via the bus 1605 .

[0275] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the resource issuance method of the above-mentioned resource public key infrastructure is implemented.

[0276] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0277] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0278] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0279] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0280] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0281] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0282] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0283] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0284] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0285] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0286] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes multiple instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store programs.

[0287] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A resource issuance method of a resource public key infrastructure, characterized in that: The resource public key infrastructure includes a plurality of units associated hierarchically, wherein the units include a local registration unit and a registration request unit from top to bottom, and the method is applied to the local registration unit, and the method includes: Receiving a resource certificate issuance request from the registration request unit, wherein the resource certificate issuance request includes a target request resource and a request unit identifier of the registration request unit; Obtaining a local private key signature of the local registration unit, where the local private key signature is generated based on a local unit private key of the local registration unit; Generate a local issuance signature based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit, the local unit public key is associated and bound with the local unit private key, and the local unit public key is generated based on the local unit identifier; Generate a target resource issuance certificate based on the local issuance signature, the target request resource, the local unit identifier and the request unit identifier, and send the target resource issuance certificate to the request registration unit, so that the request registration unit can use the target request resource after verifying the local issuance signature according to the local unit identifier; The unit also includes a main registration unit located at a higher level than the local registration unit. Before receiving the resource certificate issuance request from the request registration unit, the method also includes: Sending a unit registration request to the master registration unit, the unit registration request including an identification request, a private key generation request, and a public key generation request; Acquire a local unit identifier generated by the main registration unit based on the identifier request, where the local unit identifier is generated based on a unit chain relationship of all units between the local registration unit and the main registration unit; Generate a first private key random number, generate a first public key random number based on the first private key random number, and send the first public key random number to the master registration unit; receiving a second public key random number generated by the master registration unit based on the private key generation request, and generating a local registration private key based on the first private key random number, the first public key random number, and the second public key random number; A local unit public key generated by the master registration unit based on the public key generation request is received, wherein the local unit public key is generated based on the first public key random number.

2. The resource issuance method of the resource public key infrastructure according to claim 1, characterized in that: The generating a local registration private key based on the first private key random number, the first public key random number and the second public key random number includes: Accumulate the first public key random number and the second public key random number to generate an accompanying public key; Generate a coordinate sequence set based on the accompanying public key and the local unit identifier, and send the coordinate sequence set to a dedicated management device of the master registration unit, so that the dedicated management device generates a central key according to the coordinate sequence set and a second private key random number of the master registration unit; The central key issued by the main registration unit is obtained, and the local registration private key is generated based on the central key and the first private key random number.

3. The resource issuance method of the resource public key infrastructure according to claim 2, characterized in that: The generating a coordinate sequence set based on the accompanying public key and the local unit identifier comprises: Get the authentication code algorithm; The accompanying public key is used as a usage key of the authentication code algorithm, and authentication calculation is performed on the local unit identifier based on the authentication code algorithm to obtain the coordinate sequence set.

4. The resource issuance method of the resource public key infrastructure according to claim 2, characterized in that: The generating the local registration private key based on the central key and the first private key random number includes: Accumulate the central key and the first private key random number to obtain the total number of local private keys; A preset private key divisor is obtained, and the local registration private key is obtained based on a remainder after the total number of local private keys is divided by the preset private key divisor.

5. The resource issuance method of the resource public key infrastructure according to claim 1, characterized in that: When the main registration unit generates the local unit identifier, the steps include: Determine the unit chain relationship of all units between the main registration unit and the local registration unit one by one, and obtain the unit attribute names of all units between the main registration unit and the local registration unit; Based on the hierarchical order from top to bottom in the unit chain relationship, the local unit identifier is generated according to the unit attribute names of all units between the main registration unit and the local registration unit.

6. The resource issuance method of the resource public key infrastructure according to claim 3, characterized in that: When the master registration unit generates a local unit public key, the steps include: Obtaining a public key matrix, wherein the public key matrix includes a plurality of public key elements; Obtaining a selected coordinate set based on the element value of each sequence element in the coordinate sequence set; Selecting a preset number of public key elements from the public key matrix as local public key elements based on the selected coordinate set; The local unit public key is obtained by accumulating all the local public key elements and the accompanying public key.

7. The resource issuance method of the resource public key infrastructure according to claim 1, characterized in that: The generating of the local issuance signature based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit comprises: Acquire the local resources of the local registration unit, perform resource inspection on the target request resource based on the local resources, and obtain a resource inspection result; When the resource verification result indicates that the target requested resource is correct, a local issuance signature is generated based on the local private key signature, the local unit public key of the local registration unit, and the local unit identifier of the local registration unit.

8. The resource issuance method of the resource public key infrastructure according to claim 7, characterized in that: The performing resource inspection on the target request resource based on the local resource to obtain a resource inspection result includes: Obtaining the valid period of use of the local unit identifier; When the current time is within the valid usage period, generating resource inclusion information based on the local resource and the target request resource; The resource usage information of the target requested resource is acquired, and the resource verification result is generated based on the resource usage information and the resource inclusion information.

9. The resource issuance method of the resource public key infrastructure according to claim 7, characterized in that: The generating of the local issuance signature based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit comprises: Obtaining a hash parameter, and calculating a hash value of the target requested resource based on the hash parameter to obtain a target resource summary; A hash calculation is performed based on the target resource summary, the local unit identifier, the local private key signature and the local unit public key to obtain the local issuance signature.

10. A resource authentication method for a resource public key infrastructure, characterized in that: The resource public key infrastructure includes a plurality of units associated in a hierarchical manner, wherein the units include a local registration unit and a request registration unit in order from top to bottom, and the method is applied to the request registration unit, and the method includes: Generate a resource certificate issuance request based on the request unit identifier of the request registration unit and the target request resource, and send the resource certificate issuance request to the local registration unit; Receiving a target resource issuance certificate issued by the local registration unit after executing the resource issuance method of the resource public key infrastructure as claimed in claim 1 for the resource certificate issuance request, wherein the target resource issuance certificate includes a local issuance signature of the local registration unit and a local unit identifier of the local registration unit; Calculating a verification local unit public key based on the local unit identifier, and performing signature verification on the local issuance signature based on the verification local unit public key to obtain a signature verification result; When the signature verification result indicates that the correspondence between the local issuance signature and the local unit identifier is correct, the target request resource is used.

11. A resource public key infrastructure system, characterized in that: The system includes a plurality of units associated in a hierarchical manner, wherein the units include a local registration unit and a request registration unit in order from top to bottom; The request registration unit is used to generate a resource certificate issuance request based on the request unit identifier of the request registration unit and the target request resource, and send the resource certificate issuance request to the local registration unit; The local registration unit is used to receive the resource certificate issuance request of the request registration unit, wherein the resource certificate issuance request includes a target request resource and a request unit identifier of the request registration unit; The local registration unit is further used to obtain a local private key signature of the local registration unit, where the local private key signature is generated based on a local unit private key of the local registration unit; The local registration unit is further used to generate a local issuance signature based on the local private key signature, the local unit public key of the local registration unit and the local unit identifier of the local registration unit, the local unit public key is associated and bound with the local unit private key, and the local unit public key is generated based on the local unit identifier; The local registration unit is further configured to generate a target resource issuance certificate based on the local issuance signature, the target request resource, the local unit identifier and the request unit identifier, and send the target resource issuance certificate to the request registration unit, so that the request registration unit uses the target request resource after performing resource verification on the local issuance signature according to the local unit identifier; The request registration unit is further used to receive a target resource issuance certificate issued by the local registration unit in response to the resource certificate issuance request, wherein the target resource issuance certificate includes a local issuance signature of the local registration unit and a local unit identifier of the local registration unit; The registration request unit is further configured to calculate a verification local unit public key based on the local unit identifier, and perform signature verification on the local issuance signature based on the verification local unit public key to obtain a signature verification result; The request registration unit is further configured to use the target request resource when the signature verification result indicates that the correspondence between the local issuance signature and the local unit identifier is correct; The unit further includes a main registration unit located at a higher level than the local registration unit. Before receiving the resource certificate issuance request from the request registration unit, the local registration unit is further configured to: Sending a unit registration request to the master registration unit, the unit registration request including an identification request, a private key generation request, and a public key generation request; Acquire a local unit identifier generated by the main registration unit based on the identifier request, where the local unit identifier is generated based on a unit chain relationship of all units between the local registration unit and the main registration unit; Generate a first private key random number, generate a first public key random number based on the first private key random number, and send the first public key random number to the master registration unit; receiving a second public key random number generated by the master registration unit based on the private key generation request, and generating a local registration private key based on the first private key random number, the first public key random number, and the second public key random number; A local unit public key generated by the master registration unit based on the public key generation request is received, wherein the local unit public key is generated based on the first public key random number.

12. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the resource issuance method of the resource public key infrastructure described in any one of claims 1 to 9 or the resource verification method of the resource public key infrastructure described in claim 10 when executing the computer program.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the resource issuance method of the resource public key infrastructure according to any one of claims 1 to 9 or the resource verification method of the resource public key infrastructure according to claim 10 is implemented.

Citation Information

Patent Citations

  • Certificate information processing method and system based on block chain

    CN111490873A

  • Digital certificate implementation method and device based on symmetric algorithm, equipment and medium

    CN114448644A

  • Digital certificate issuing method, device, terminal entity and system

    CN114598455A

  • Multi-source science and education resource intelligent permission collaborative management method and system based on group signature

    CN118013482A

  • Resource certificate management system

    CN118174866A