Method, device, terminal entity and system for issuing digital certificate
The CA server authorizes the proxy device to issue terminal entity certificates, which solves the problem of insufficient communication security between single boards of communication equipment, reduces the load on the CA server, saves bandwidth, and improves communication efficiency and security.
Patent Information
- Application Number
- CN202011402744.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-04
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-12-04
AI Technical Summary
In the existing technology, inter-board communication security of communication equipment is insufficient, resulting in excessive load on the CA server and waste of network bandwidth resources. Especially when a large number of terminal entities need to request certificate authorization, serious system load and bandwidth consumption are caused.
The CA server authorizes the proxy device to send the intermediate certificate, and the proxy device issues the terminal entity certificate to the terminal entity, reducing the burden on the CA server. The proxy device is set up near the terminal entity to provide fast and secure digital certificate authentication.
It effectively reduces the load on the CA server, saves network bandwidth resources, improves the security and efficiency of inter-board communication, and provides fast and secure digital certificate authentication services.
Smart Images

Figure CN114598455B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the fields of information technology and communication technology, and in particular to a method, device, terminal entity and system for issuing a digital certificate. Background Art
[0002] Communication between communication devices usually requires mutual trust. Communication trust between communication devices can be considered as cross-trust domain communication, and communication devices can also be called network entities (NE). Generally speaking, communication between multiple boards in a communication device is considered to belong to the same trust domain, and communication between boards does not provide any security functions. With the continuous development of network attack technology, the requirements for system security and resilience capabilities of communication equipment are getting higher and higher, and the security of communication between boards of communication equipment is becoming more and more important.
[0003] In order to ensure the security of communication between boards of communication equipment, protocols such as transport layer security (TLS), datagram transport layer security (DTLS), internet protocol security (IPSEC), and media access control security (MACSEC) are usually used. These protocols usually use digital certificates as the identity authentication credentials of both parties in communication. This requires that each service board on the device can provide a separate digital certificate to identify the identity.
[0004] Since a large number of terminal entities such as service boards need to request a certificate authority (CA) server to issue digital certificates for the terminal entities, the CA server will issue digital certificates for the large number of terminal entities, which may cause an excessive load on the CA server and consume a large amount of network bandwidth resources. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method, device, terminal entity and system for issuing digital certificates, wherein the CA server authorizes the proxy device to send an intermediate certificate, and the proxy device issues a terminal entity certificate of each terminal to each terminal entity. In this way, each terminal entity does not need to request the issuance of a digital certificate from the authorized authentication CA server, thereby reducing the burden on the CA server.
[0006] In the first aspect, a method for issuing a digital certificate is provided, the method comprising: the terminal entity pre-generates a pair of key pairs of its own first terminal entity public key and first terminal entity private key, and the proxy device pre-generates a pair of key pairs of its own first proxy device public key and first proxy device private key. The proxy device receives a terminal entity certificate authorization request sent by the terminal entity, the terminal entity certificate authorization request includes the first terminal entity public key, and since the proxy device itself has an intermediate certificate, it can issue a digital certificate for the terminal entity, so the proxy device generates a first terminal entity certificate for the first terminal entity public key according to the terminal entity certificate authorization request, digitally signs the first terminal entity certificate using the first proxy device private key, obtains the digital signature value of the first terminal entity certificate, generates a terminal entity certificate authorization response, and returns the terminal entity certificate authorization response to the terminal entity, thereby realizing the issuance of the first terminal entity certificate by the proxy device. Among them, the terminal entity certificate authorization response includes the first terminal entity certificate and the certificate chain of the first terminal entity certificate, the first terminal entity certificate includes the first terminal entity public key and the digital signature value of the first terminal entity certificate, the certificate chain of the first terminal entity certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct, the certificate chain of the first terminal entity certificate includes the CA root certificate and the first intermediate certificate, the first intermediate certificate is issued by the CA server to the proxy device, and the first intermediate certificate includes the first proxy device public key, so that the proxy device with the first intermediate certificate can issue a digital certificate for the terminal entity.
[0007] In the above scheme, the proxy device with the intermediate certificate can issue digital certificates to each terminal entity. Generally speaking, there is only one CA server in a digital certificate management system, but there can be multiple proxy devices, which avoids a large number of terminal entities from requesting the only CA server to authenticate the digital certificate of the terminal entity, thus reducing the load of the CA server and saving network bandwidth resources. In addition, since there can be multiple proxy devices and the proxy devices can be set near the terminal entity, the proxy devices can provide the terminal entity with a very secure, fast and convenient digital certificate authentication.
[0008] In a possible implementation, the method further includes: the proxy device sends an intermediate certificate authorization request including the first proxy device public key to the CA server, the proxy device receives the intermediate certificate authorization response sent by the CA server, the intermediate certificate authorization response includes the first intermediate certificate and the certificate chain of the first intermediate certificate, wherein the first intermediate certificate includes the first proxy device public key and the digital signature value of the first intermediate certificate, the certificate chain of the first intermediate certificate includes the CA root certificate, the CA root certificate includes the CA root public key, the digital signature value of the first intermediate certificate is obtained by the CA server using the CA root private key to digitally sign the first intermediate certificate, the CA root public key and the CA root private key are a pair of key pairs generated by the CA server; the proxy device uses the certificate chain of the first intermediate certificate to verify that the digital signature value of the first intermediate certificate is correct. Therefore, the CA server can issue an intermediate certificate to the proxy device, so that the proxy device with the intermediate certificate can issue the digital certificate of the terminal entity to each terminal entity.
[0009] In a possible implementation, the method further includes: when the terminal entity needs to update its own terminal entity certificate, the terminal entity will generate a new key pair: a second terminal entity public key and a second terminal entity private key. The proxy device receives a first certificate update request sent by the terminal entity containing the second terminal entity public key, generates a second terminal entity certificate for the second terminal entity public key according to the first certificate update request, and digitally signs the second terminal entity certificate using the first proxy device private key to obtain the digital signature value of the second terminal entity certificate, generates and sends a first certificate update response to the terminal entity, wherein the first certificate update response includes the second terminal entity certificate and the certificate chain of the second terminal entity certificate, the second terminal entity certificate includes the second terminal entity public key and the digital signature value of the second terminal entity certificate, the certificate chain of the second terminal entity certificate is used to verify whether the digital signature value of the second terminal entity certificate is correct, and the certificate chain of the second terminal entity certificate includes the CA root certificate and the first intermediate certificate. When the terminal entity certificate needs to be updated, there is no need to request to update the terminal entity certificate from the CA server, but only needs to request to update the terminal entity certificate from the proxy device located near the terminal entity. This avoids a large number of terminal entities from going to a single CA server to request updated digital certificate authentication, which reduces the load on the CA server and saves network bandwidth resources.
[0010] In a possible implementation, the method further includes: when the proxy device needs to update the intermediate certificate, the proxy device will generate a new key pair: a second proxy device public key and a second proxy device private key. The proxy device sends a second certificate update request containing the second proxy device public key to the CA server, and the proxy device receives a second certificate update response sent by the CA server, wherein the second certificate update response contains the certificate chain of the second intermediate certificate and the second intermediate certificate, the second intermediate certificate contains the second proxy device public key and the digital signature value of the second intermediate certificate, and the digital signature value of the second intermediate certificate is obtained by the CA server using the CA root private key to digitally sign the second intermediate certificate; when the proxy device uses the certificate chain of the second intermediate certificate to verify that the digital signature value of the second intermediate certificate is correct, the proxy device replaces the first intermediate certificate with the second intermediate certificate. When the intermediate certificate needs to be updated, the proxy device promptly requests the CA server to update the intermediate certificate, thereby achieving timely update of the intermediate certificate.
[0011] In a possible implementation, the method further includes: after the intermediate certificate is updated, the terminal entity needs to update and re-issue the terminal entity certificate to the proxy device, at which time the proxy device receives a third certificate update request including the first terminal entity public key sent by the terminal entity, the proxy device generates a third terminal entity certificate for the first terminal entity public key according to the third certificate update request, and digitally signs the third terminal entity certificate using the second proxy device private key, obtains the digital signature value of the third terminal entity certificate, generates and sends a third certificate update response to the terminal entity, wherein the third certificate update response includes the third terminal entity certificate and the certificate chain of the third terminal entity certificate, the third terminal entity certificate includes the first terminal entity public key and the digital signature value of the third terminal entity certificate, the certificate chain of the third terminal entity certificate is used to verify whether the digital signature value of the third terminal entity certificate is correct, and the certificate chain of the third terminal entity certificate includes the CA root certificate and the second intermediate certificate. After the intermediate certificate is updated, the proxy device re-issues a new terminal entity certificate for the terminal entity, so that the legitimacy of the terminal entity certificate is continued.
[0012] In a possible implementation, the method also includes: using the certificate chain of the second intermediate certificate to verify that the digital signature value of the second intermediate certificate is correct, specifically: the proxy device uses the CA root public key to verify whether the digital signature value of the CA root certificate is correct, and when the digital signature value of the CA root certificate is incorrect, it is determined that the second intermediate certificate is incorrect; when the digital signature value of the CA root certificate is correct, the CA root public key is used to verify whether the digital signature value of the second intermediate certificate is correct, and when the digital signature value of the second intermediate certificate is incorrect, it is determined that the second intermediate certificate is incorrect; when the digital signature value of the second intermediate certificate is correct, it is determined that the second intermediate certificate is incorrect.
[0013] In a second aspect, the present invention provides a method for issuing a digital certificate, including: a terminal entity pre-generates a pair of key pairs of its own first terminal entity public key and first terminal entity private key, and a proxy device pre-generates a pair of key pairs of its own first proxy device public key and first proxy device private key. The terminal entity sends an entity certificate authorization request containing the first terminal entity public key terminal to the proxy device, and the terminal entity receives a terminal entity certificate authorization response sent by the proxy device, wherein the terminal entity certificate authorization response contains the first terminal entity certificate and the certificate chain of the first terminal entity certificate, the first terminal entity certificate contains the first terminal entity public key and the digital signature value of the first terminal entity certificate, and the certificate chain of the first terminal entity certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct; and the certificate chain of the first terminal entity certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct.
[0014] In the above scheme, the proxy device with the intermediate certificate can issue digital certificates to each terminal entity. Generally speaking, there is only one CA server in a digital certificate management system, but there can be multiple proxy devices, which avoids a large number of terminal entities from requesting the only CA server to authenticate the digital certificate of the terminal entity, thus reducing the load of the CA server and saving network bandwidth resources. In addition, since there can be multiple proxy devices and the proxy devices can be set near the terminal entity, the proxy devices can provide the terminal entity with a very secure, fast and convenient digital certificate authentication.
[0015] In a possible implementation, the method further includes: regenerating a key pair at the terminal entity: a second terminal entity public key and a second terminal entity private key, the terminal entity sending a first certificate update request including the second terminal entity public key to the proxy device, the terminal entity receiving a first certificate update response sent by the device, wherein the first certificate update response includes a second terminal entity certificate and a certificate chain of the second terminal entity certificate, the second terminal entity certificate includes the second terminal entity public key and the digital signature value of the second terminal entity certificate, and the certificate chain of the second terminal entity certificate is used to verify whether the digital signature value of the second terminal entity certificate is correct; when the digital signature value of the second terminal entity certificate is verified to be correct using the certificate chain of the second terminal entity certificate, the first terminal entity certificate is replaced with the second terminal entity certificate. When the terminal entity certificate needs to be updated, there is no need to request to update the terminal entity certificate from the CA server, but only to request to update the terminal entity certificate from the proxy device located near the terminal entity. This avoids a large number of terminal entities from requesting to update the authentication of the digital certificate from the only CA server, which reduces the load of the CA server and saves network bandwidth resources.
[0016] In a possible implementation, the method also includes: when the proxy device needs to update the intermediate certificate, the proxy device will generate a new key pair: a second proxy device public key and a second proxy device private key. The terminal entity sends a third certificate update request containing the first terminal entity public key to the proxy device, and the terminal entity receives a third certificate update response sent by the proxy device, wherein the third certificate update response includes a third terminal entity certificate and a certificate chain of the third terminal entity certificate, the third terminal entity certificate includes the first terminal entity public key and the digital signature value of the third terminal entity certificate, and the certificate chain of the third terminal entity certificate is used to verify whether the digital signature value of the third terminal entity certificate is correct; when the digital signature value of the third terminal entity certificate is verified to be correct using the certificate chain of the third terminal entity certificate, the first terminal entity certificate is replaced with the third terminal entity certificate. After the intermediate certificate is updated, the proxy device reissues a new terminal entity certificate for the terminal entity, so that the legitimacy of the terminal entity certificate is continued.
[0017] In a possible implementation, the method also includes: the certificate chain of the first terminal entity certificate includes an authorized authentication CA root certificate and a first intermediate certificate, and the certificate chain of the first terminal entity certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct, specifically: using the CA root public key to verify whether the digital signature value of the CA root certificate is correct, when the digital signature value of the CA root certificate is incorrect, it is determined that the first terminal entity certificate is incorrect; when the digital signature value of the CA root certificate is correct, the CA root public key is used to verify whether the digital signature value of the first intermediate certificate is correct, when the digital signature value of the first intermediate certificate is incorrect, it is determined that the first terminal entity certificate is incorrect; when the digital signature value of the first intermediate certificate is correct, the first proxy device public key contained in the first intermediate certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct, when the digital signature value of the first terminal entity certificate is incorrect, it is determined that the first terminal entity certificate is incorrect; when the digital signature value of the first terminal entity certificate is correct, it is determined that the first terminal entity certificate is correct.
[0018] In a third aspect, the present application provides a device for issuing a digital certificate, the device comprising one or more units for implementing the method for issuing a digital certificate described in the first aspect.
[0019] In a fourth aspect, the present application provides a terminal entity, which includes one or more modules for implementing the method for issuing a digital certificate described in the second aspect.
[0020] In a fifth aspect, the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed by an agent device, the agent device executes the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0021] In a sixth aspect, the present application provides a computer-readable storage medium, wherein the computer program product includes a computer program or instructions. When the computer program or instructions are executed by a terminal entity, the terminal entity executes the method in the above-mentioned second aspect or any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of the chain relationship of a certificate chain provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of the structure of a digital certificate management system provided by an embodiment of the present invention;
[0024] Figure 3 A flowchart of issuing a digital certificate provided by an embodiment of the present invention;
[0025] Figure 4 A flowchart of a digital certificate update provided by an embodiment of the present invention;
[0026] Figure 5 A flowchart of a digital certificate update provided by an embodiment of the present invention;
[0027] Figure 6 A schematic diagram of the structure of a device for issuing a digital certificate provided by an embodiment of the present invention;
[0028] Figure 7 A schematic diagram of the structure of a terminal entity provided by an embodiment of the present invention;
[0029] Figure 8 A schematic diagram of the structure of a device for issuing a digital certificate provided by an embodiment of the present invention;
[0030] Fig. 9 A schematic diagram of the structure of a terminal entity provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. It can be understood that the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] Below, some terms in this application are explained. It should be noted that these explanations are for the convenience of understanding by those skilled in the art and do not constitute a limitation on the scope of protection claimed in this application.
[0033] Symmetric encryption algorithm: The encrypting and decrypting parties use the same rules to encrypt and decrypt information.
[0034] Asymmetric encryption algorithm: also known as public key cryptography or dual-key cryptography. Asymmetric encryption algorithms require two keys: a public key (publickey, referred to as public key) and a private key (privatekey, referred to as private key). The public key and the private key are a pair. If the data is encrypted with the public key, it can only be decrypted with the corresponding private key. If the data is encrypted with the private key, it can only be decrypted with the corresponding public key. Because encryption and decryption use two different keys. The current typical asymmetric encryption algorithm is the RSA algorithm, designed by three mathematicians Rivest, Shamir and Adleman. The RSA cryptographic system is a public key cryptographic system. The public key is public and the private key is confidential. Its encryption and decryption algorithms are public. The content encrypted by the public key can and can only be decrypted by the private key, or the content encrypted by the private key can and can only be decrypted by the public key. In other words, this pair of public and private keys of RSA can be used for encryption and decryption, and the content encrypted by one party can and can only be decrypted by the other party.
[0035] Digital signature, also known as public key digital signature, is a piece of content attached to the end of a data unit, or a cryptographic transformation of a data unit, which can prove that the data unit has not been modified. This data or transformation allows the recipient of the data unit to confirm the source and integrity of the data unit and protect the data from being forged by others (such as the recipient). It is a method of signing an electronic message, and a signed message can be transmitted in a communication network. Digital signatures can be obtained based on both public key cryptography and private key cryptography.
[0036] Public key infrastructure (PKI), also known as public key infrastructure, public key infrastructure, public key infrastructure, public cryptographic key infrastructure or public key infrastructure. PKI is a universal security infrastructure that uses asymmetric cryptographic algorithms and technologies to provide network security services. Its purpose is to create, manage, distribute, use, store and revoke certificates. PKI links the user's personal identity with the public key through the CA organization. The identity of each certificate center user must be unique. The link relationship is created through the registration and publication process. Depending on the level of assurance, the link relationship may be completed by various software of the CA organization or under human supervision. The role of PKI in determining the link relationship is called the Certificate Registration Authority (RA). The RA organization ensures that the public key and personal identity are linked to prevent repudiation. PKI usually consists of the following parts: CA organization, RA organization, certificate library, key backup and recovery system, certificate revocation processing system, application system interface and certificate.
[0037] CA institution: CA institution is the core executive institution of PKI, also known as certification center or CA server. CA institution is responsible for issuing certificates, authenticating certificates and managing issued certificates. Specifically, CA institution can formulate policies and specific steps to verify and identify user identities, and sign user certificates to ensure the identity of certificate holders and ownership of public keys. CA institution is an authoritative, trustworthy and fair third-party institution. CA institution also has a hierarchical structure. In large-scale PKI facilities, due to the large number of users, using a CA institution for certificate verification and issuance services may be very burdensome, so it is necessary to deploy CA institutions in a hierarchical manner. In the hierarchical deployment of CA institutions, a top-down trust certificate chain needs to be established between CA institutions. Subordinate CA institutions trust superior CA institutions, and subordinate CA institutions are issued certificates and authenticated by superior CA institutions. The hierarchical relationship can be seen in the certificate chain.
[0038] RA: It is a component of CA and is responsible for registration, approval, proofreading and management of certificate applications. RA is also called a hierarchical structure. RA is the registration center responsible for the summary of certificate application registration. RA is the window of CA facing users. It is responsible for receiving user certificate applications and verifying user identities. In actual applications, RA in PKI does not exist independently, but is merged with CA.
[0039] Digital certificate: abbreviated as certificate, a certificate is a file issued by an issuing authority that contains the public key owner information and public key, and is digitally signed by the issuing authority. It is the technical basis for digital signatures. A certificate generally contains the certificate version, certificate serial number, certificate signature algorithm, issuer information, certificate validity period, public key and user information. The certificate serial number is issued by the issuing authority and is guaranteed to be unique within the scope of use of the certificate; the certificate validity period includes the certificate entry time and certificate expiration time; the issuer information is determined by the issuing authority, and the user information is determined by the certificate applicant. A certificate can also contain key usage, certificate type, extended key usage and certificate revocation list distribution point. The key usage indicates the functions and services that the public key of the certificate can support, such as: certificate signature, key encipherment, data encipherment, key agreement, and certificate revocation list (CRL) signature. Among them, certificate signature and certificate revocation list signature are key usages that can only be possessed by CA certificates. Therefore, although the key usage extension domain is optional, it is an indispensable key extension for the root CA, and it must have the two key usages of certificate signature and Certification Revocation List (CRL) signature. The certificate types are root certificate, intermediate certificate and end-entity certificate. Among them, the root certificate is a certificate issued by the CA organization to itself. The digital signature of the root certificate is issued with the root private key, so the root public key must be used to verify the signature of the root certificate. The digital signature of the root certificate is usually called self-signed. The intermediate certificate is issued by the CA organization. The intermediate certificate contains the name of the root certificate. The signature of the intermediate certificate is digitally signed with the root private key, so the root public key is needed to verify the legitimacy of the intermediate certificate. The end-entity certificate contains the name of the intermediate certificate issued by the owner of the intermediate certificate. The digital signature of the end-entity certificate is issued with the intermediate private key, so the intermediate public key is needed to verify the legitimacy of the end-entity certificate. A root certificate or an intermediate certificate has the ability to issue certificates for its next-level certificate. Generally speaking, there is only one level of intermediate certificates, in which case the intermediate certificate can be called a secondary certificate. However, intermediate certificates can also have multiple levels.The terminal entity certificate does not have the authorization ability to issue certificates and only has the function of proving the identity of the terminal entity. It should be noted that the terminal entities here include mobile phones, computers, boards, servers, network equipment and other devices that use terminal entity certificates to prove their identities.
[0040] A certificate chain is an ordered list of certificates, which is a trust relationship between certificates. A certificate chain usually contains a three-level structure: a root certificate, an intermediate certificate, and an end-entity certificate. Figure 1 As shown in the figure, the terminal entity certificate is at the bottom of the certificate chain sequence. The terminal entity certificate contains terminal entity information, terminal entity public key and digital signature value, etc. The upper level of the terminal entity certificate is the intermediate certificate, that is, the terminal entity certificate is issued by the institution that owns the intermediate certificate. The intermediate certificate is authorized to be issued by the CA institution. Figure 1 Only one intermediate certificate is shown, but the certificate chain can have multiple intermediate certificates. In this case, the top intermediate certificate is issued by the root certificate, and the bottom intermediate certificate is used to issue the terminal entity certificate. The root certificate is self-signed by the CA. When the terminal entity identity is verified, the legitimacy of each certificate issuer in the entire certificate chain needs to be verified. The issuer's certificate is searched layer by layer according to the certificate chain until the self-signed root certificate is found, and then the correctness of the digital signature value of the next level is verified by the corresponding public key. When the digital signature value of each level of the certificate is verified to be correct, it means that the terminal entity certificate is correct.
[0041] The Certificate Management Protocol (CMP) is an Internet protocol used for the behavior between the client (the owner and user of the certificate) and the CA (the issuer of the certificate) during the application and renewal of certificates in the PKI system. CMP has developed to the second version, referred to as CMPv2.
[0042] like Figure 2 As shown, a network system architecture provided by an embodiment of the present invention includes: a CA server and multiple NEs, wherein the NE may further include a service board and a main control board, and a certificate management agent may be installed on the service board and the main control board. Currently, the security of communication between different network elements is increased by means of encryption algorithms.
[0043] Generally speaking, each service board in the NE can independently request a certificate issuance or certificate update service from the CA server. The specific process of the certificate service may include the following: All boards including service boards and control boards will be pre-set with the initial terminal entity certificate and initial certificate chain indicating the identity of the board when leaving the factory. The initial certificate chain contains the initial intermediate certificate and initial root certificate for issuing the initial terminal certificate. The initial terminal entity certificate is usually issued by the network equipment manufacturer, not by the CA server. When the control board and the service board are online respectively, the service board and the control board use the pre-set initial terminal entity certificate as the identity credential to establish a secure communication channel. There are many security protocols used to establish a secure channel, such as: TLS / DTLS / MACSEC. Then, the control board and the service board can respectively request the CA server to issue a new certificate (that is, the terminal entity certificate authenticated by the CA server), and the CA server will return the authenticated certificate to the control board and the service board respectively. The control board and the service board use the authenticated terminal entity certificate to replace the pre-set initial terminal entity certificate. In this way, the authenticated terminal entity certificate can be used as the authentication credential for communication between the control board and the service board. However, the process of each of the above boards requesting the CA server to issue a certificate may have the following technical problems: Due to the large number of communication devices in the existing network, the number of service boards of communication devices is dozens of times the number of communication devices. If each service board or control board independently applies to the CA server for an authenticated terminal entity certificate, the CA server will be overwhelmed, and the management network traffic will increase, occupying more network bandwidth.
[0044] Based on the above technical problems, an embodiment of the present invention discloses a new method for obtaining a certificate. For the convenience of description, the following is divided into four different embodiments for description according to different stages of obtaining a certificate.
[0045] Embodiment 1
[0046] When the network equipment leaves the factory, the equipment manufacturer can pre-configure the initial terminal entity certificate and initial certificate chain of the equipment itself for each end-entity (such as a service board) and agent device (such as a control board). The initial certificate chain includes the initial intermediate certificate and the initial root certificate for issuing the initial terminal certificate. When the terminal entity is operating normally, the administrator can load the CA root certificate of the CA server itself for the agent device in the network device. The CA root certificate includes the CA root public key. The CA root certificate is a digital certificate self-signed by the CA server using the CA root private key included in the first key pair. The first key pair is generated by the CA server, and the first key pair includes the CA root public key and the CA root private key. The CA root public key can be used to verify whether the digital signature value of the message sent by the CA server to the agent device is correct. The digital signature value is signed with the CA root private key. It should be noted that: the CA certificate chain can also be loaded for the agent device. For the convenience of explanation, the following content is explained by taking the loading of only the CA root certificate as an example. If the CA certificate chain is loaded, it is necessary to use the digital certificates at all levels contained in the certificate chain to correspond to the various public keys to verify whether the digital signature values of the digital certificates at all levels are correct. The process of using the certificate chain to authenticate whether the digital certificates at all levels are correct will be described in detail in the following process step 308. Similarly, the CA server will import the initial terminal entity certificate and initial certificate chain of the pre-set proxy device. The initial terminal entity certificate of the pre-set proxy device contains the initial proxy device public key. The pre-set terminal entity certificate of the proxy device is a digital certificate issued by the network device or an authorized institution trusted by the network device using the initial proxy device private key contained in the second key pair. The second key pair contains the initial proxy device public key and the initial proxy device private key. The initial proxy device public key of the initial terminal entity certificate of the pre-set proxy device is used to verify whether the digital signature value of the message sent by the proxy device to the CA server is correct. The digital signature is signed with the initial proxy device private key.
[0047] like Figure 3 As shown, the method for implementing digital certificate issuance of the proxy device includes:
[0048] Step 301: The proxy device generates a third key pair of the proxy device itself, the third key pair including the first proxy device public key and the first proxy device private key. In the prior art, there are many methods for generating key pairs, which will not be described here.
[0049] The proxy device constructs an intermediate certificate authorization request, which includes the applicant information (i.e., the proxy device information, such as the proxy device name, etc.) and the first proxy device public key, and digitally signs the intermediate certificate authorization request with the initial proxy device private key, and then sends the digitally signed intermediate certificate authorization request to the CA server. The intermediate certificate authorization request can be carried by a CMP message, a CMPv2 message, or a message of other message types, for example: the CMPv2 message is specifically an initialization request (IR).
[0050] Step 302: The CA server receives an intermediate certificate authorization request. The CA server uses the initial proxy device public key contained in the initial terminal entity certificate of the pre-loaded proxy device to verify whether the digital signature value of the intermediate certificate authorization request is correct. If the verification is correct, the first intermediate certificate is generated for the proxy device based on the applicant information and the first proxy device public key contained in the intermediate certificate authorization request, and the first intermediate certificate is digitally signed using the CA root private key. The first intermediate certificate contains the first proxy device public key. The CA server generates an intermediate certificate authorization response containing the first intermediate certificate, digitally signs the intermediate certificate authorization response using the CA root private key, and sends the digitally signed intermediate certificate authorization response to the proxy device. The intermediate certificate authorization response also contains the certificate chain of the first intermediate certificate. The intermediate certificate authorization response can be carried in a message format such as an IP message or CMPv2, and the certificate chain of the first intermediate certificate contains the CA root certificate.
[0051] It should be noted here that: if there are multiple intermediate certificates, for example: there are 3 intermediate certificates, namely: intermediate certificate a, intermediate certificate b, intermediate certificate c, the relationship between these three certificates is: the upper-level certificate of intermediate certificate a is the CA root certificate, that is, the CA root certificate is used to digitally sign intermediate certificate a, the upper-level certificate of intermediate certificate b is intermediate certificate a, that is, the public key contained in intermediate certificate a is used to digitally sign intermediate certificate b, the upper-level certificate of intermediate certificate c is intermediate certificate b, that is, the public key contained in intermediate certificate b is used to digitally sign intermediate certificate c, at this time intermediate certificate c is the above-mentioned first intermediate certificate, and the certificate chain of the first intermediate certificate includes CA root certificate, intermediate certificate a and intermediate certificate b. For the convenience of description, the embodiment of the present invention takes the existence of only one intermediate certificate as an example to illustrate the scheme. The scheme process when there are multiple intermediate certificates is similar to the process when there is one intermediate certificate, so it will not be repeated.
[0052] Step 303: The proxy device receives the intermediate certificate authorization response, and uses the CA root public key of the pre-loaded CA root certificate to verify the digital signature value of the intermediate certificate authorization response, and uses the certificate chain of the first intermediate certificate to verify whether the digital signature value of the first intermediate certificate is correct. When the digital signature value of the first intermediate certificate is verified to be correct, the proxy device sends a certificate confirmation message to the CA server to confirm receipt of the first intermediate certificate. The certificate confirmation message can be a CertConf message.
[0053] The process of using the certificate chain of the first intermediate certificate to verify whether the digital signature value of the first intermediate certificate is correct is as follows: the proxy device obtains all certificates from the certificate chain of the first intermediate certificate, which is only the CA root certificate in the embodiment of the present invention, and then uses the pre-loaded CA root public key to verify whether the digital signature value of the CA root certificate is correct. If the digital signature value of the CA root certificate is incorrect, it is determined that the first intermediate certificate is incorrect. If it is correct, the CA root public key is used to verify whether the digital signature value of the first intermediate certificate is correct. If the digital signature value of the first intermediate certificate is incorrect, it is determined that the first intermediate certificate is incorrect. If the digital signature value of the first intermediate certificate is correct, it is determined that the first intermediate certificate is correct.
[0054] It should be noted that: if the certificate chain of the first intermediate certificate includes the CA root certificate, intermediate certificate a and intermediate certificate b, the process of using the certificate chain of the first intermediate certificate to verify whether the digital signature value of the first intermediate certificate is correct is as follows: the proxy device obtains all certificates from the certificate chain of the first intermediate certificate, and then uses the pre-loaded CA root public key to verify whether the digital signature value of the CA root certificate is correct. If the digital signature value of the CA root certificate is incorrect, it is determined that the first intermediate certificate is incorrect. If the digital signature value of the CA root certificate is correct, the CA root public key is used to verify whether the digital signature value of intermediate certificate a is correct. If the digital signature value of intermediate certificate a is correct, If it is incorrect, then it is determined that the first intermediate certificate is incorrect. If the digital signature value of the intermediate certificate a is correct, then the public key contained in the intermediate certificate a is used to verify whether the digital signature value of the intermediate certificate b is correct. If the digital signature value of the intermediate certificate b is incorrect, then it is determined that the first intermediate certificate is incorrect. If the digital signature value of the intermediate certificate b is correct, then the public key contained in the intermediate certificate b is used to verify whether the digital signature value of the first intermediate certificate is correct. If the digital signature value of the first intermediate certificate is incorrect, then it is determined that the first intermediate certificate is incorrect. If the digital signature value of the first intermediate certificate is correct, then it is determined that the first intermediate certificate is correct.
[0055] Step 304: After receiving the certificate confirmation message, the CA server sends a PKI confirmation (PKIConf) message to the proxy device to confirm receipt of the certificate confirmation message.
[0056] Step 305: After the proxy device receives the first intermediate certificate sent by the CA server, the proxy device sends a certificate request notification to each terminal entity.
[0057] When the device leaves the factory, each terminal entity and proxy device is pre-set with the initial terminal entity certificate and initial terminal root certificate and proxy device issued by the manufacturer. After the terminal entity goes online, it automatically establishes a secure communication channel (TLS / DTLS / MASEC, etc.) with the proxy device and uses the pre-set terminal entity certificate as the identity authentication credential.
[0058] It should be noted that: in addition to the intermediate certificate that can issue a digital certificate for the terminal entity, the proxy device also has a terminal entity certificate that proves its identity as a proxy device.
[0059] Step 306: The terminal entity generates its own fourth key pair, where the fourth key pair includes the first terminal entity public key and the first terminal entity private key. After the terminal entity receives the certificate application notification, the terminal entity constructs a terminal entity certificate authorization request, which includes the applicant information (i.e., terminal entity information, such as the name of the terminal entity) and the first terminal entity public key, and digitally signs the terminal entity certificate authorization request with the initial terminal entity private key of the initial terminal entity certificate, and then sends the digitally signed terminal entity certificate authorization request to the proxy device through the secure channel between boards. The terminal entity certificate authorization request can be carried by a CMP message, a CMPv2 message, or a message of other message types.
[0060] Step 307: The proxy device receives a terminal entity certificate authorization request from a secure channel, obtains an initial terminal entity public key from the pre-loaded initial terminal certificate of the first terminal entity, and uses the initial terminal entity public key to verify whether the digital signature value of the terminal entity certificate authorization request is correct. If the verification fails, the terminal entity certificate authorization request is considered to be an untrustworthy message, and the proxy device does not process the terminal entity certificate authorization request, or replies with a warning message to the terminal entity. If the verification passes, the proxy device generates a first terminal entity certificate for the terminal entity based on the first intermediate certificate, the applicant information included in the terminal entity certificate authorization request, and the first terminal entity public key, and digitally signs the first terminal entity certificate using the first proxy device private key, and the first terminal entity certificate includes the first terminal entity public key. The proxy device generates a terminal entity certificate authorization response including the digitally signed first terminal entity certificate and the certificate chain of the first terminal entity certificate. The proxy device can digitally sign the terminal entity certificate authorization response using the initial proxy device private key of the initial terminal entity certificate of the proxy device, and sends the terminal entity certificate authorization response to the terminal entity through the secure channel between boards, and the certificate chain of the first terminal entity certificate includes the CA root certificate and the first intermediate certificate.
[0061] Step 308: The terminal entity receives the terminal entity certificate authorization response from the proxy device through the secure channel, and uses the initial terminal entity public key of the initial terminal certificate of the proxy device to verify whether the digital signature value of the terminal entity certificate authorization response is correct. If the verification result is incorrect, the terminal entity certificate authorization response is considered to be an untrustworthy message, and the proxy device does not process the terminal entity certificate authorization response, or replies with a warning message to the terminal entity. If the verification result is correct, the certificate chain of the first terminal entity certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct to ensure that the first terminal entity certificate is correct.
[0062] The process of using the certificate chain of the first terminal entity certificate to verify whether the digital signature value of the first terminal entity certificate is correct includes: the terminal entity first obtains all digital certificates contained in the certificate chain from the certificate chain of the first terminal entity certificate, namely: the first intermediate certificate and the CA root certificate, and uses the CA root public key to verify whether the digital signature value contained in the CA root certificate is correct. When the result of the verification is incorrect, it means that the first terminal entity certificate is incorrect. When the result of the verification is correct, the CA root certificate containing the CA root public key is used to verify whether the digital signature value contained in the first intermediate certificate is correct. When the result of the verification is incorrect, it means that the first terminal entity certificate is incorrect. When the result of the verification is correct, the first proxy device public key is used to verify whether the digital signature value contained in the first terminal entity certificate is correct. When the result of the verification is incorrect, it means that the first terminal entity certificate is incorrect. When the result of the verification is correct, it means that the first terminal entity certificate is correct. It should be noted that: if the certificate chain of the first terminal entity certificate includes a CA root certificate, an intermediate certificate a and an intermediate certificate b, the process of verifying the CA root certificate, the intermediate certificate a and the intermediate certificate b is the same as the content introduced in step 303. In an embodiment of the present invention, if the certificate chain of the second intermediate certificate or the certificate chain of the third terminal entity certificate includes a CA root certificate, an intermediate certificate a and an intermediate certificate b, the process of verifying the CA root certificate, the intermediate certificate a and the intermediate certificate b is the same as the content introduced in step 303.
[0063] In the above steps 306, 307 and 308, the terminal entity and the proxy device use their respective initial terminal entity private keys to digitally sign the message, and the terminal entity and the proxy device use the corresponding initial terminal entity public keys to verify whether the digital signature value of the message is correct. In the subsequent process, if the terminal entity and the proxy device obtain their respective identity certificates (terminal entity certificates) issued by the intermediate certificate, for example: the proxy device can also generate the fifth key pair of the proxy device itself, where the fifth key pair includes the public key of the terminal entity of the proxy device and the private key of the terminal entity of the proxy device, the proxy device can use the first proxy device private key of the first intermediate certificate to issue a terminal entity certificate for the proxy device, and the terminal entity certificate of the proxy device includes the public key of the terminal entity of the proxy device. At this time: in the above steps 306, 307 and 308, the terminal entity can also use the first terminal entity private key to digitally sign the message, and the proxy device can also use the first terminal entity public key to check whether the digital signature value of the message is correct; accordingly, the proxy device can also use the private key of the terminal entity of the proxy device to digitally sign the message, and the terminal entity can also use the public key of the terminal entity of the proxy device to check whether the digital signature value of the message is correct.
[0064] Optionally, after obtaining the first terminal entity certificate, the terminal entity may send a certificate obtaining notification to the proxy device.
[0065] Step 309: The proxy device detects that all terminal entities have successfully applied for the first terminal entity certificate, and sends a certificate switching notification to each terminal entity through a secure channel.
[0066] The proxy device may store a terminal entity list locally, where the terminal entity list records whether the terminal entity has received the first terminal entity certificate.
[0067] Step 310: After receiving the certificate switching notification, each terminal entity uses the first terminal entity certificate issued by the proxy device to replace the preset initial terminal entity certificate.
[0068] In the embodiment of the present invention, in a digital certificate management system, a CA server can issue an intermediate certificate to a proxy device, so the proxy device with the intermediate certificate can issue a digital certificate to each terminal entity. Generally speaking, there is only one CA server in a digital certificate management system, but there can be multiple proxy devices, which avoids a large number of terminal entities from requesting a unique CA server to authenticate the digital certificate of the terminal entity, thus reducing the load of the CA server and saving network bandwidth resources. In addition, since there can be multiple proxy devices, the proxy device can be set near the terminal entity, such as: a service board (as a terminal entity) and a control board (as a proxy device) located in the same network device, the communication between the service board and the control board is faster and safer, so the proxy device can provide a very safe, fast and convenient digital certificate authentication to the terminal entity.
[0069] When the first terminal entity certificate of the terminal entity is about to expire or its corresponding private key is damaged or leaked, the terminal entity needs to promptly request the proxy device to update the first terminal entity certificate. Figure 4 As shown, the process of the certificate update method is as follows:
[0070] Step 401: When the terminal entity determines that it needs to re-apply for the terminal entity certificate from the proxy device, the terminal entity regenerates its own sixth key pair, which includes the second terminal entity public key and the second terminal entity private key. The terminal entity constructs a first certificate update request, which includes the second terminal entity public key and the applicant information (i.e., the terminal entity information), digitally signs the first certificate update request using the second terminal entity private key, and sends the first certificate update request to the proxy device through the inter-board secure channel.
[0071] The terminal entity can periodically detect whether the term of the first terminal entity certificate is within the renewal range. When it is detected that the term of the first terminal entity certificate of the terminal entity is already within the renewal range, or when the terminal entity periodically detects that the private key corresponding to the first terminal entity certificate is damaged or leaked, the terminal entity determines that it needs to re-apply for the terminal entity certificate from the CA server.
[0072] Step 402: The proxy device receives the first certificate update request, and first uses the second terminal entity public key in the first certificate update request to verify whether the digital signature value of the first certificate update request is correct. When the verification result is correct, the second terminal entity certificate is generated according to the applicant information and the second terminal entity public key contained in the first certificate update request, and the first proxy device private key related to the first intermediate certificate is used to digitally sign the second terminal entity certificate. The proxy device generates a first certificate update response, which includes the second terminal entity certificate with a digital signature and the certificate chain of the second terminal entity certificate. The proxy device sends the first certificate update response to the terminal entity through a secure channel. At this time, the certificate chain of the second terminal entity certificate includes the CA root certificate and the first intermediate certificate.
[0073] Step 403: The terminal entity receives the first certificate update response from the proxy device through the secure channel, and uses the first proxy device public key associated with the first intermediate certificate to verify whether the digital signature value of the first certificate update response is correct. When the verification result is incorrect, it is confirmed that the first certificate update response is untrusted. If the verification result is correct, it is confirmed that the first certificate update response is trusted. The certificate chain of the second terminal entity certificate is used to verify whether the digital signature value of the second terminal entity certificate is correct to ensure that the second terminal entity certificate is trusted. After the verification is passed, the second terminal entity certificate is used to replace the first terminal entity certificate.
[0074] The process of using the certificate chain of the second terminal entity certificate to verify whether the digital signature value of the second terminal entity certificate is correct includes: the terminal entity first obtains all digital certificates contained in the certificate chain from the certificate chain of the second terminal entity certificate, namely: the first intermediate certificate and the CA root certificate, and uses the CA root public key to verify whether the digital signature value contained in the CA root certificate is correct. When the verification result is incorrect, it means that the second terminal entity certificate is incorrect. When the verification result is correct, continue to use the CA root certificate containing the CA root public key to verify whether the digital signature value contained in the first intermediate certificate is correct. When the verification result is incorrect, it means that the second terminal entity certificate is incorrect. When the verification result is correct, continue to use the first intermediate certificate containing the first proxy device public key to verify whether the digital signature value contained in the second terminal entity certificate is correct. When the verification result is incorrect, it means that the second terminal entity certificate is incorrect. When the verification result is correct, it means that the second terminal entity certificate is correct.
[0075] In the embodiment of the present invention, in the digital certificate management system, since the proxy device with the intermediate certificate can issue digital certificates to each terminal entity, when the terminal entity certificate needs to be updated, there is no need to request to update the terminal entity certificate from the CA server, but only to request to update the terminal entity certificate from the proxy device located near the terminal entity. This avoids a large number of terminal entities from requesting to update the authentication of the digital certificate from the only CA server, thus reducing the load of the CA server and saving network bandwidth resources. In addition, the proxy device can provide the terminal entity with a very safe, fast and convenient update management of the digital certificate.
[0076] When the first intermediate certificate of a network device is about to expire or its corresponding private key is damaged or leaked, the network device needs to promptly request the CA server to update the first intermediate certificate. After the first intermediate certificate is successfully updated, the proxy device needs to notify each terminal entity to update the first terminal entity certificate and use the new intermediate certificate (i.e., the second intermediate certificate) to reissue a new terminal entity certificate (i.e., the third terminal entity certificate) to each terminal entity. Figure 5 As shown, based on Figure 3 In the illustrated embodiment, the process of the certificate updating method includes the following:
[0077] Step 501: When the proxy device determines that it needs to re-apply for an intermediate certificate from the CA server, it regenerates the seventh key pair of the proxy device itself, which includes the second proxy device public key and the second proxy device private key. The proxy device constructs a second certificate update request, which includes the applicant information (specifically the proxy device information, such as the proxy device name) and the second proxy device public key, and digitally signs the second certificate update request with the second proxy device private key, and then sends the digitally signed second certificate update request to the CA server through the https channel. The second certificate update request can be carried by a key update request (KUR).
[0078] The proxy device can periodically detect whether the term of the first intermediate certificate is within the update range. When it is detected that the term of the first intermediate certificate of the terminal entity is already within the update range, or when the proxy device periodically detects that the private key corresponding to the first intermediate certificate is damaged or leaked, the proxy device determines that it needs to re-apply for the intermediate certificate from the CA server.
[0079] Step 502: The CA server receives the second certificate update request, and uses the second proxy device public key included in the second certificate update request to verify whether the digital signature value of the second certificate update request is correct. When the verification is successful, the CA server generates a new intermediate certificate (hereinafter referred to as the second intermediate certificate) for the proxy device based on the second proxy device public key and applicant information in the second certificate update request, and uses the CA root private key to digitally sign the second intermediate certificate. The CA server generates a second certificate update response including the second intermediate certificate and the certificate chain of the second intermediate certificate, and digitally signs the second certificate update response with the CA root private key. The CA server sends the digitally signed second certificate update response to the proxy device through the https channel. The second certificate update response can be carried by a key update response (Key Update Response, KUP). At this time, the certificate chain of the second intermediate certificate includes the CA root certificate.
[0080] Step 503: The proxy device receives the second certificate update response and uses the CA root public key of the CA root certificate to verify whether the digital signature value of the second certificate update response is correct. When the verification result is correct, it means that the received second certificate update response is correct. The proxy device sends a certificate confirmation message to the CA server to confirm receipt of the second intermediate certificate.
[0081] Step 504: The CA server sends a PKI confirmation message to the main control unit to confirm receipt of the certificate confirmation message.
[0082] Step 505: After receiving the PKI confirmation message, the proxy device sends an intermediate certificate update notification to each terminal entity.
[0083] Step 506: After receiving the intermediate certificate update notification, the terminal entity generates a third certificate update request, which includes the first terminal entity public key and applicant information (terminal entity information), uses the first terminal entity private key to digitally sign the third certificate update request, and sends the third certificate update request to the proxy device through the inter-board secure channel.
[0084] Step 507: The proxy device receives the third certificate update request, and first uses the first terminal entity public key in the third certificate update request to verify whether the digital signature value of the third certificate update request is correct. When the verification result is correct, the third terminal entity certificate is generated according to the applicant information and the first terminal entity public key contained in the third certificate update request, and the second proxy device private key related to the second intermediate certificate is used to digitally sign the third terminal entity certificate. The proxy device generates a third certificate update response, which includes the third terminal entity certificate with a digital signature and the certificate chain of the third terminal entity certificate. The proxy device sends the third certificate update response to the terminal entity through a secure channel. At this time, the certificate chain of the third terminal entity certificate includes the CA root certificate and the second intermediate certificate.
[0085] Step 508: The terminal entity receives the third certificate update response from the proxy device from the secure channel, verifies whether the digital signature value of the third terminal entity certificate and the certificate chain of the third terminal entity certificate is correct to ensure their legitimacy, and uses the third terminal entity certificate to replace the first terminal entity certificate after verification.
[0086] The terminal entity first obtains all digital certificates contained in the certificate chain from the certificate chain of the third terminal entity certificate, namely: the second intermediate certificate and the CA root certificate, and uses the CA root public key contained in the CA root certificate to verify whether the digital signature value contained in the CA root certificate is correct. When the verification result is incorrect, it means that the third terminal entity certificate is incorrect. When the verification result is correct, the CA root certificate contains the CA root public key to verify whether the digital signature value contained in the second intermediate certificate is correct. When the verification result is incorrect, it means that the third terminal entity certificate is incorrect. When the verification result is correct, the second proxy device public key contained in the second intermediate certificate is used to verify whether the digital signature value contained in the third terminal entity certificate is correct. When the verification result is incorrect, it means that the third terminal entity certificate is incorrect. When the verification result is correct, it means that the third terminal entity certificate is correct.
[0087] Step 509: After the proxy device detects that all terminal entities have successfully updated their certificates, it revokes all first terminal entity certificates issued using the initial proxy device private key, generates a certificate revocation notification containing CRL information, and sends the certificate revocation notification through the inter-board secure channel to notify each terminal entity to revoke the first terminal entity certificate.
[0088] Step 510: The terminal entity receives the certificate revocation notification and imports the CRL information carried in the message into the context of the inter-board secure connection to revoke the first terminal entity certificate.
[0089] In the embodiment of the present invention, in the digital certificate management system, since the proxy device with the intermediate certificate can issue digital certificates to each terminal entity, when the intermediate certificate needs to be updated, a large number of terminal entities do not need to request the CA server to update the intermediate certificate, but only need the proxy device to request the CA server to update the intermediate certificate, thus avoiding a large number of terminal entities to update the intermediate certificate to the only CA server, thus reducing the load of the CA server and saving network bandwidth resources. In addition, when the proxy device updates the intermediate certificate, it promptly sends the intermediate certificate update notification to the terminal entity, so that the terminal entity promptly updates the terminal entity certificate.
[0090] See also Figure 6 The present application embodiment provides a digital certificate issuing device 600, which can be deployed in the above Figure 3 , Figure 4 or Figure 5 The proxy device provided in the illustrated embodiment includes: a receiving unit 601, configured to receive a terminal entity certificate authorization request sent by a terminal entity, wherein the terminal entity certificate authorization request includes a first terminal entity public key;
[0091] The certificate issuing unit 602 is used to generate a first terminal entity certificate for the first terminal entity public key according to the terminal entity certificate authorization request, use the first proxy device private key to digitally sign the first terminal entity certificate, obtain the digital signature value of the first terminal entity certificate, and generate a terminal entity certificate authorization response, wherein the terminal entity certificate authorization response includes the first terminal entity certificate and the certificate chain of the first terminal entity certificate, the first terminal entity certificate includes the first terminal entity public key and the digital signature value of the first terminal entity certificate, the certificate chain of the first terminal entity certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct, and the certificate chain of the first terminal entity certificate includes an authorization authentication CA root certificate and a first intermediate certificate, wherein the first intermediate certificate includes the first proxy device public key, and the first proxy device public key and the first proxy device private key are a pair of key pairs generated by the proxy device.
[0092] The sending unit 603 is configured to send the terminal entity certificate authorization response to the terminal entity.
[0093] Optionally, in an application scenario, the device 600 also includes a verification unit 604. The sending unit 603 is further used to send an intermediate certificate authorization request to the authorized authentication CA server, and the intermediate certificate authorization request includes the first proxy device public key. In this scenario, the receiving unit 601 is also used to receive an intermediate certificate authorization response sent by the CA server, and the intermediate certificate authorization response includes the first intermediate certificate and the certificate chain of the first intermediate certificate, and the first intermediate certificate includes the first proxy device public key and the digital signature value of the first intermediate certificate, wherein the certificate chain of the first intermediate certificate includes the CA root certificate, the CA root certificate includes the CA root public key, and the digital signature value of the first intermediate certificate is obtained by the CA server using the CA root private key to digitally sign the first intermediate certificate, and the CA root public key and the CA root private key are a pair of key pairs generated by the CA server. The verification unit 604 is used to use the certificate chain of the first intermediate certificate to verify that the digital signature value of the first intermediate certificate is correct.
[0094] Optionally, in another application scenario, the receiving unit 601 is further used to receive a first certificate update request sent by the terminal entity, wherein the first certificate update request includes a second terminal entity public key. In this scenario, the certificate issuing unit 602 is further used to generate a second terminal entity certificate for the second terminal entity public key according to the first certificate update request, and digitally sign the second terminal entity certificate using the first proxy device private key, obtain the digital signature value of the second terminal entity certificate, and generate a first certificate update response, wherein the first certificate update response includes the second terminal entity certificate and the certificate chain of the second terminal entity certificate, the second terminal entity certificate includes the second terminal entity public key and the digital signature value of the second terminal entity certificate, the certificate chain of the second terminal entity certificate is used to verify whether the digital signature value of the second terminal entity certificate is correct, and the certificate chain of the second terminal entity certificate includes the CA root certificate and the first intermediate certificate. In this scenario, the sending unit 603 is further used to send the first certificate update response to the terminal entity.
[0095] Optionally, in another application scenario, the device 600 also includes a replacement unit 605, and the replacement unit 605 is used to use the certificate chain of the second intermediate certificate to verify that the digital signature value of the second intermediate certificate is correct, and replace the first intermediate certificate with the second intermediate certificate. In this application scenario, the sending unit 603 is also used to send a second certificate update request to the CA server, and the second certificate update request includes the second proxy device public key. In this application scenario, the receiving unit 601 is also used to receive a second certificate update response sent by the CA server, and the second certificate update response includes the certificate chain of the second intermediate certificate, and the second intermediate certificate includes the second proxy device public key and the digital signature value of the second intermediate certificate, wherein the digital signature value of the second intermediate certificate is obtained by the CA server using the CA root private key to digitally sign the second intermediate certificate.
[0096] Optionally, in another application scenario, the receiving unit 601 is further used to receive a third certificate update request sent by the terminal entity, wherein the third certificate update request includes the first terminal entity public key. In this application scenario, the certificate issuing unit 602 is further used to generate a third terminal entity certificate for the first terminal entity public key according to the third certificate update request, and digitally sign the third terminal entity certificate using the second proxy device private key, obtain the digital signature value of the third terminal entity certificate, and generate a third certificate update response, wherein the third certificate update response includes the third terminal entity certificate and the certificate chain of the third terminal entity certificate, the third terminal entity certificate includes the first terminal entity public key and the digital signature value of the third terminal entity certificate, the certificate chain of the third terminal entity certificate is used to verify whether the digital signature value of the third terminal entity certificate is correct, the certificate chain of the third terminal entity certificate includes the CA root certificate and the second intermediate certificate, and the second proxy device private key and the second proxy device public key are a pair of key pairs generated by the proxy device. In this application scenario, the sending unit 603 is further used to send the third certificate update response to the terminal entity.
[0097] Optionally, the replacement unit 605 is specifically used to use the CA root public key to verify whether the digital signature value of the CA root certificate is correct. When the digital signature value of the CA root certificate is incorrect, it is determined that the second intermediate certificate is incorrect; when the digital signature value of the CA root certificate is correct, the CA root public key is used to verify whether the digital signature value of the second intermediate certificate is correct. When the digital signature value of the second intermediate certificate is incorrect, it is determined that the second intermediate certificate is incorrect; when the digital signature value of the second intermediate certificate is correct, it is determined that the second intermediate certificate is correct.
[0098] The proxy device with the intermediate certificate can issue digital certificates to each terminal entity. Generally speaking, there is only one CA server in a digital certificate management system, but there can be multiple proxy devices, which avoids a large number of terminal entities from requesting the only CA server to authenticate the digital certificate of the terminal entity, thus reducing the load on the CA server and saving network bandwidth resources. In addition, since there can be multiple proxy devices and the proxy devices can be set up near the terminal entity, the proxy devices can provide the terminal entity with a very secure, fast and convenient digital certificate authentication.
[0099] See also Figure 7 The present application embodiment provides a terminal entity 700, which can be deployed in the above Figure 3 , Figure 4 or Figure 5 The terminal entity provided in the illustrated embodiment includes:
[0100] The sending module 701 is configured to send a terminal entity certificate authorization request to a proxy device, wherein the terminal entity certificate authorization request includes a first terminal entity public key.
[0101] The receiving module 702 is used to receive a terminal entity certificate authorization response sent by the proxy device, wherein the terminal entity certificate authorization response includes a first terminal entity certificate and a certificate chain of the first terminal entity certificate, the first terminal entity certificate includes the first terminal entity public key and the digital signature value of the first terminal entity certificate, and the certificate chain of the first terminal entity certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct.
[0102] The verification module 703 is used to verify whether the digital signature value of the first terminal entity certificate is correct by using the certificate chain of the first terminal entity certificate.
[0103] Optionally, in an application scenario, the sending module 701 is also used to send a first certificate update request to the proxy device, and the first certificate update request includes the second terminal entity public key. In this application scenario, the receiving module 702 is also used to receive the first certificate update response sent by the proxy device, and the first certificate update response includes the second terminal entity certificate and the certificate chain of the second terminal entity certificate, and the second terminal entity certificate includes the second terminal entity public key and the digital signature value of the second terminal entity certificate, and the certificate chain of the second terminal entity certificate is used to verify whether the digital signature value of the second terminal entity certificate is correct. In this application scenario, the terminal entity also includes a replacement module 704, which is used to replace the first terminal entity certificate with the second terminal entity certificate when the digital signature value of the second terminal entity certificate is correct using the certificate chain of the second terminal entity certificate.
[0104] Optionally, in another application scenario, the sending module 701 is also used to send a third certificate update request to the proxy device, and the third certificate update request includes the first terminal entity public key. In this application scenario, the receiving module 702 is also used to receive a third certificate update response sent by the proxy device, wherein the third certificate update response includes a third terminal entity certificate and a certificate chain of the third terminal entity certificate, the third terminal entity certificate includes the first terminal entity public key and the digital signature value of the third terminal entity certificate, and the certificate chain of the third terminal entity certificate is used to verify whether the digital signature value of the third terminal entity certificate is correct. In this application scenario, the replacement module 704 is also used to replace the first terminal entity certificate with the third terminal entity certificate when the digital signature value of the third terminal entity certificate is verified to be correct by using the certificate chain of the third terminal entity certificate.
[0105] Optionally, in another application scenario, the verification module 703 is specifically used to use the CA root public key to verify whether the digital signature value of the CA root certificate is correct. When the digital signature value of the CA root certificate is incorrect, it is determined that the first terminal entity certificate is incorrect; when the digital signature value of the CA root certificate is correct, the CA root public key is used to verify whether the digital signature value of the first intermediate certificate is correct. When the digital signature value of the first intermediate certificate is incorrect, it is determined that the first terminal entity certificate is incorrect; when the digital signature value of the first intermediate certificate is correct, the first proxy device public key included in the first intermediate certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct. When the digital signature value of the first terminal entity certificate is incorrect, it is determined that the first terminal entity certificate is incorrect; when the digital signature value of the first terminal entity certificate is correct, it is determined that the first terminal entity certificate is correct.
[0106] Optionally, in another application scenario, the receiving module 702 is further configured to receive a certificate application notification sent by the proxy device.
[0107] See also Figure 8 , the present application embodiment provides a schematic diagram of a digital certificate issuing device 800. The device 800 can be a proxy device in any of the above embodiments. The device 800 includes at least one processor 801, an internal connection 802, a memory 803 and at least one transceiver 804.
[0108] The device 800 is a hardware structure device that can be used to implement Figure 6 The functional modules in the device 600 are as follows. For example, those skilled in the art may think of Figure 6 The certificate issuing unit 602, the verification unit 604 or the replacement unit 605 in the device 600 shown in the figure can be implemented by the at least one processor 801 calling the code in the memory 803. Figure 6 The receiving unit 601 and the sending unit 603 in the device 600 shown can be implemented by the transceiver 804 .
[0109] Optionally, the device 800 may also be used to implement the function of the proxy device in any of the above embodiments.
[0110] Optionally, the processor 801 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0111] The internal connection 802 may include a path to transmit information between the components. Optionally, the internal connection 802 is a single board or a bus.
[0112] The transceiver 804 is used to communicate with other devices or communication networks.
[0113] The above-mentioned memory 803 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. The memory can exist independently and be connected to the processor through a bus. The memory can also be integrated with the processor.
[0114] The memory 803 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 801. The processor 801 is used to execute the application code stored in the memory 803, and cooperate with at least one transceiver 804, so that the device 800 implements the functions of the patent method.
[0115] In a specific implementation, as an embodiment, the processor 801 may include one or more CPUs, such as Figure 8 CPU0 and CPU1 in.
[0116] In a specific implementation, as an embodiment, the device 800 may include multiple processors, such as Figure 8801 and processor 807 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0117] See also Fig. 9 , an embodiment of the present application provides a schematic diagram of a terminal entity 900. The terminal entity 900 may be a terminal entity in any of the above embodiments. The terminal entity 900 includes at least one processor 901, an internal connection 902, a memory 903 and at least one transceiver 904.
[0118] The terminal entity 900 is a hardware structure device that can be used to implement Figure 7 The functional modules in the terminal entity 700 are as follows. For example, those skilled in the art may think of Figure 7 The verification module 703 or the replacement module 704 in the terminal entity 700 shown can be implemented by the at least one processor 901 calling the code in the memory 903. Figure 7 The sending module 701 and the receiving module 702 in the terminal entity 700 shown can be implemented by the transceiver 904 .
[0119] Optionally, the terminal entity 900 may also be used to implement the function of the proxy device in any of the above embodiments.
[0120] Optionally, the processor 901 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0121] The internal connection 902 may include a path to transmit information between the components. Optionally, the internal connection 902 is a single board or a bus.
[0122] The transceiver 904 is used to communicate with other devices or communication networks.
[0123] The memory 903 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.
[0124] The memory 903 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 901. The processor 901 is used to execute the application code stored in the memory 903, and cooperate with at least one transceiver 904, so that the terminal entity 900 implements the functions of the method of the present patent.
[0125] In a specific implementation, as an embodiment, the processor 901 may include one or more CPUs, such as Fig. 9 CPU0 and CPU1 in.
[0126] In a specific implementation, as an embodiment, the terminal entity 900 may include multiple processors, such as Fig. 9 901 and processor 907 in the embodiment. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0127] Through the description of the above embodiments, it is clear to those skilled in the art that the present invention can be implemented in hardware, firmware, or a combination thereof. When software is used for implementation, the above functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any medium that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a computer can access. Taking this as an example but not limited to: a computer-readable medium can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition. Any connection can be appropriately a computer-readable medium. For example, if the software is transmitted from a website, a server or other remote source using a coaxial cable, an optical fiber cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, then the coaxial cable, optical fiber cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the medium. As used in the present invention, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and blue-ray disc, wherein disk usually reproduces data magnetically, while disc uses laser to reproduce data optically. The above combination should also be included in the scope of protection of computer-readable media.
[0128] The above disclosures are only several specific embodiments of the present invention. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for issuing a digital certificate, characterized in that: The method comprises: The proxy device receives a terminal entity certificate authorization request sent by the terminal entity, wherein the terminal entity certificate authorization request includes a first terminal entity public key; The proxy device generates a first terminal entity certificate for the first terminal entity public key according to the terminal entity certificate authorization request, digitally signs the first terminal entity certificate using the first proxy device private key, obtains the digital signature value of the first terminal entity certificate, and generates a terminal entity certificate authorization response, wherein the terminal entity certificate authorization response includes the first terminal entity certificate and a certificate chain of the first terminal entity certificate, the first terminal entity certificate includes the first terminal entity public key and the digital signature value of the first terminal entity certificate, the certificate chain of the first terminal entity certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct, the certificate chain of the first terminal entity certificate includes an authorization authentication CA root certificate and a first intermediate certificate, wherein the first intermediate certificate includes the first proxy device public key, and the first proxy device public key and the first proxy device private key are a pair of key pairs generated by the proxy device; The proxy device sends the terminal entity certificate authorization response to the terminal entity.
2. The method according to claim 1, characterized in that Also includes: The proxy device sends an intermediate certificate authorization request to the CA server, where the intermediate certificate authorization request includes the first proxy device public key; The proxy device receives an intermediate certificate authorization response sent by the CA server, the intermediate certificate authorization response includes a first intermediate certificate and a certificate chain of the first intermediate certificate, the first intermediate certificate includes the first proxy device public key and a digital signature value of the first intermediate certificate, wherein the certificate chain of the first intermediate certificate includes the CA root certificate, the CA root certificate includes the CA root public key, the digital signature value of the first intermediate certificate is obtained by the CA server digitally signing the first intermediate certificate using the CA root private key, and the CA root public key and the CA root private key are a pair of key pairs generated by the CA server; The proxy device uses the certificate chain of the first intermediate certificate to verify that the digital signature value of the first intermediate certificate is correct.
3. The method according to claim 1 or 2, characterized in that: Also includes: The proxy device receives a first certificate update request sent by the terminal entity, where the first certificate update request includes a second terminal entity public key; The proxy device generates a second terminal entity certificate for the second terminal entity public key according to the first certificate update request, and digitally signs the second terminal entity certificate using the first proxy device private key to obtain the digital signature value of the second terminal entity certificate, and generates a first certificate update response, wherein the first certificate update response includes the second terminal entity certificate and a certificate chain of the second terminal entity certificate, the second terminal entity certificate includes the second terminal entity public key and the digital signature value of the second terminal entity certificate, the certificate chain of the second terminal entity certificate is used to verify whether the digital signature value of the second terminal entity certificate is correct, and the certificate chain of the second terminal entity certificate includes the CA root certificate and the first intermediate certificate; The proxy device sends the first certificate update response to the terminal entity.
4. The method according to claim 2, characterized in that: Also includes: The proxy device sends a second certificate update request to the CA server, where the second certificate update request includes a second proxy device public key; The proxy device receives a second certificate update response sent by the CA server, where the second certificate update response includes a second intermediate certificate and a certificate chain of the second intermediate certificate, where the second intermediate certificate includes the second proxy device public key and a digital signature value of the second intermediate certificate, wherein the digital signature value of the second intermediate certificate is obtained by the CA server digitally signing the second intermediate certificate using a CA root private key; The proxy device verifies that the digital signature value of the second intermediate certificate is correct using the certificate chain of the second intermediate certificate, and replaces the first intermediate certificate with the second intermediate certificate.
5. The method according to claim 4, characterized in that Also includes: The proxy device receives a third certificate update request sent by the terminal entity, where the third certificate update request includes the first terminal entity public key; The proxy device generates a third terminal entity certificate for the first terminal entity public key according to the third certificate update request, and digitally signs the third terminal entity certificate using the second proxy device private key, obtains the digital signature value of the third terminal entity certificate, and generates a third certificate update response, wherein the third certificate update response includes the third terminal entity certificate and a certificate chain of the third terminal entity certificate, the third terminal entity certificate includes the first terminal entity public key and the digital signature value of the third terminal entity certificate, the certificate chain of the third terminal entity certificate is used to verify whether the digital signature value of the third terminal entity certificate is correct, the certificate chain of the third terminal entity certificate includes the CA root certificate and the second intermediate certificate, and the second proxy device private key and the second proxy device public key are a pair of key pairs generated by the proxy device; The proxy device sends the third certificate update response to the terminal entity.
6. The method according to claim 4, characterized in that The using the certificate chain of the second intermediate certificate to verify that the digital signature value of the second intermediate certificate is correct is specifically: The proxy device uses the CA root public key to verify whether the digital signature value of the CA root certificate is correct. When the digital signature value of the CA root certificate is incorrect, it is determined that the second intermediate certificate is incorrect; when the digital signature value of the CA root certificate is correct, the CA root public key is used to verify whether the digital signature value of the second intermediate certificate is correct. When the digital signature value of the second intermediate certificate is incorrect, it is determined that the second intermediate certificate is incorrect; when the digital signature value of the second intermediate certificate is correct, it is determined that the second intermediate certificate is correct.
7. A device for issuing a digital certificate, characterized in that: The device comprises: A receiving unit, configured to receive a terminal entity certificate authorization request sent by a terminal entity, wherein the terminal entity certificate authorization request includes a first terminal entity public key; a certificate issuing unit, configured to generate a first terminal entity certificate for the first terminal entity public key according to the terminal entity certificate authorization request, digitally sign the first terminal entity certificate using the first proxy device private key, obtain the digital signature value of the first terminal entity certificate, and generate a terminal entity certificate authorization response, wherein the terminal entity certificate authorization response includes the first terminal entity certificate and a certificate chain of the first terminal entity certificate, the first terminal entity certificate includes the first terminal entity public key and the digital signature value of the first terminal entity certificate, the certificate chain of the first terminal entity certificate is used to verify whether the digital signature value of the first terminal entity certificate is correct, the certificate chain of the first terminal entity certificate includes an authorization authentication CA root certificate and a first intermediate certificate, wherein the first intermediate certificate includes a first proxy device public key, and the first proxy device public key and the first proxy device private key are a pair of key pairs generated by the proxy device; A sending unit is used to send the terminal entity certificate authorization response to the terminal entity.
8. The device according to claim 7, characterized in that Also includes: A verification unit, wherein: The sending unit is further used to send an intermediate certificate authorization request to the CA server, wherein the intermediate certificate authorization request includes the first proxy device public key; The receiving unit is further configured to receive an intermediate certificate authorization response sent by the CA server, wherein the intermediate certificate authorization response includes a first intermediate certificate and a certificate chain of the first intermediate certificate, wherein the first intermediate certificate includes the first proxy device public key and a digital signature value of the first intermediate certificate, wherein the certificate chain of the first intermediate certificate includes the CA root certificate, the CA root certificate includes a CA root public key, and the digital signature value of the first intermediate certificate is obtained by the CA server digitally signing the first intermediate certificate using a CA root private key, and the CA root public key and the CA root private key are a pair of key pairs generated by the CA server; The verification unit is used to verify that the digital signature value of the first intermediate certificate is correct by using the certificate chain of the first intermediate certificate.
9. The device according to claim 7 or 8, characterized in that The receiving unit is further configured to receive a first certificate update request sent by the terminal entity, wherein the first certificate update request includes a public key of a second terminal entity; The certificate issuing unit is further used to generate a second terminal entity certificate for the second terminal entity public key according to the first certificate update request, and use the first proxy device private key to digitally sign the second terminal entity certificate, obtain the digital signature value of the second terminal entity certificate, and generate a first certificate update response, wherein the first certificate update response includes the second terminal entity certificate and the certificate chain of the second terminal entity certificate, the second terminal entity certificate includes the second terminal entity public key and the digital signature value of the second terminal entity certificate, the certificate chain of the second terminal entity certificate is used to verify whether the digital signature value of the second terminal entity certificate is correct, and the certificate chain of the second terminal entity certificate includes the CA root certificate and the first intermediate certificate; The sending unit is further configured to send the first certificate update response to the terminal entity.
10. The device according to claim 8, characterized in that Also includes: Replacement unit, where: The sending unit is further configured to send a second certificate update request to the CA server, wherein the second certificate update request includes a second proxy device public key; The receiving unit is further configured to receive a second certificate update response sent by the CA server, wherein the second certificate update response includes a second intermediate certificate and a certificate chain of the second intermediate certificate, wherein the second intermediate certificate includes the second proxy device public key and a digital signature value of the second intermediate certificate, wherein the digital signature value of the second intermediate certificate is obtained by the CA server digitally signing the second intermediate certificate using a CA root private key; The replacement unit is configured to use the certificate chain of the second intermediate certificate to verify that the digital signature value of the second intermediate certificate is correct, and replace the first intermediate certificate with the second intermediate certificate.
11. The device according to claim 10, characterized in that The receiving unit is further configured to receive a third certificate update request sent by the terminal entity, wherein the third certificate update request includes the first terminal entity public key; The certificate issuing unit is further used to generate a third terminal entity certificate for the first terminal entity public key according to the third certificate update request, and digitally sign the third terminal entity certificate using the second proxy device private key to obtain the digital signature value of the third terminal entity certificate, and generate a third certificate update response, wherein the third certificate update response includes the third terminal entity certificate and a certificate chain of the third terminal entity certificate, the third terminal entity certificate includes the first terminal entity public key and the digital signature value of the third terminal entity certificate, the certificate chain of the third terminal entity certificate is used to verify whether the digital signature value of the third terminal entity certificate is correct, the certificate chain of the third terminal entity certificate includes the CA root certificate and the second intermediate certificate, and the second proxy device private key and the second proxy device public key are a pair of key pairs generated by the proxy device; The sending unit is further configured to send the third certificate update response to the terminal entity.
12. The device according to claim 10, characterized in that The replacement unit is specifically used to use the CA root public key to verify whether the digital signature value of the CA root certificate is correct. When the digital signature value of the CA root certificate is incorrect, it is determined that the second intermediate certificate is incorrect; when the digital signature value of the CA root certificate is correct, the CA root public key is used to verify whether the digital signature value of the second intermediate certificate is correct. When the digital signature value of the second intermediate certificate is incorrect, it is determined that the second intermediate certificate is incorrect; when the digital signature value of the second intermediate certificate is correct, it is determined that the second intermediate certificate is correct.
Citation Information
Patent Citations
Method and apparatus for signing identity verification certificate in trusted computing
CN101488851A
Identity authentication method and system
CN106453330A
Root certificate updating method and device in blockchain network, equipment and medium
CN111934870A
Systems and methods for notary agent for public key infrastructure names
US10547457B1
