Digital certificate management method and system

By configuring requirement data to generate digital certificates that match the security requirements of the server, the problem of insufficient resources in the certificate issuance center is solved, and efficient digital certificate management is achieved.

CN116455579BActive Publication Date: 2026-11-20INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310370786.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-07
Publication Date
2026-11-20
Estimated Expiration
2043-04-07

AI Technical Summary

Technical Problem

Existing certificate issuance methods rely on certificate issuance centers, which leads to insufficient resources when there are many servers, making it impossible to issue digital certificates normally and generate matching digital certificates according to the security requirements of different servers.

Method used

By configuring requirement data, a digital certificate matching the server's security requirements is generated, including application scenarios, private key algorithms, private key lengths, and signature algorithms. The private key is then used to verify and import the digital certificate, reducing the computational load on the certificate issuance center.

Benefits of technology

It enables the generation of matching digital certificates based on server-side security requirements, reducing the computing resource requirements of the certificate issuance center and improving business processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116455579B_ABST
    Figure CN116455579B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data security, and specifically provides a digital certificate management method and system, which comprises the following steps: configuring requirement data, sending the requirement data to a certificate issuing center, wherein the requirement data limits the security requirement parameter, the validity period and the private key length of a digital certificate; and negotiating with the certificate issuing center based on the requirement data to generate a digital certificate matched with the requirement data. According to the application, the digital certificate with a matched security degree is generated for the server based on the security requirement of the different servers, so that the digital certificate with a high security degree is avoided to be generated for the server with a low security requirement, the calculation amount of the certificate issuing center is reduced, the calculation resource of the certificate issuing center is saved, and the business processing capacity of the certificate issuing center is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of data security technology, specifically relating to a digital certificate management method and system. Background Technology

[0002] A digital certificate is a digital authentication document that identifies the parties involved in internet communication. People can use it online to verify each other's identity. Therefore, a digital certificate is also called a digital identifier. Digital certificates ensure the integrity and security of information and data exchanged between internet users on computer networks through encryption or decryption.

[0003] Existing certificate issuance methods heavily rely on certificate issuance centers, such as BMC. Figure 1 As shown, the BMC acts as the server in this process. The server generates a CSR and a private key K using a random number and submits the CSR to the Certificate Authority (CA). The CA generates a root certificate R using a random number and issues a digital certificate A based on the root certificate R and the CSR. The server matches the private key K with the digital certificate A and imports the digital certificate A into the server. The CA imports the root certificate R into the client. When the client and server communicate, the client verifies whether the root certificate R and the digital certificate A match. If they match, the authentication is complete.

[0004] Certificate issuing centers typically issue certificates according to a pre-defined security level, using a fixed encryption algorithm. Servers with different security requirements consume the same amount of computing resources. However, when there are a large number of servers, the certificate issuing center may run out of resources and be unable to issue digital certificates normally. Summary of the Invention

[0005] In view of the above-mentioned shortcomings of the prior art, the present invention provides a digital certificate management method and system to solve the above-mentioned technical problems.

[0006] In a first aspect, the present invention provides a digital certificate management method, comprising:

[0007] Configure the requirement data and send the requirement data to the certificate issuance center. The requirement data defines the security requirement parameters, validity period and private key length of the digital certificate.

[0008] The certificate authority negotiates with the certificate issuance center based on the requirement data to generate a digital certificate that matches the requirement data.

[0009] In one optional implementation, the demand data includes:

[0010] One type of requirement data includes application scenarios for certificates;

[0011] The second type of required data includes private key algorithm, private key length, signature algorithm, and private key password.

[0012] In one optional implementation, negotiating with a certificate authority based on demand data to generate a digital certificate matching the demand data includes:

[0013] The certificate issuance center receives the security level and generation method feedback based on the required data, and generates a private key and certificate application file based on the security level and generation method.

[0014] Send the certificate request file to the certificate issuing center so that the certificate issuing center can generate a digital certificate and the root certificate required by the client based on the certificate request file;

[0015] The digital certificate received from the certificate authority is verified using a private key, and after successful verification, the digital certificate is imported to authenticate the user's root certificate.

[0016] In one optional implementation, the method by which a certificate issuance center generates security levels and generation methods based on demand data includes:

[0017] The application scenarios in the demand data are converted into security level coefficients based on the preset application scenario security requirements.

[0018] Assess security level

[0019] Where EA is the encryption algorithm quantization coefficient, KL is the private key length, CVP is the certificate validity period, and SCVP is the standard certificate validity period used as the base time;

[0020]

[0021] This indicates that when CVP is 0, the certificate is unreasonable and the security level is the lowest; when CVP and SCVP are equal, the security level is normal; when CVP is twice SCVP, the certificate time is too long and the security level is further reduced.

[0022] When solving for the safety level SL, round the safety level up.

[0023] Based on the pre-defined mapping relationship between security level and generation method, the generation method corresponding to security level SL is retrieved.

[0024] In one optional implementation, negotiating with a certificate authority based on demand data to generate a digital certificate matching the demand data includes:

[0025] The certificate issuance center receives the security level and generation method feedback based on the required data, and generates a private key and certificate application file based on the security level and generation method.

[0026] Send the certificate application documents to the certificate issuing center and receive the encrypted root certificate obtained by encryption based on the root certificate from the certificate issuing center;

[0027] An encrypted certificate is generated based on the encrypted root certificate and certificate application file, and the encrypted certificate is sent to the certificate issuance center so that the certificate issuance center can decrypt the encrypted certificate into a digital certificate.

[0028] The private key is used to verify the digital certificate received from the certificate authority, and the digital certificate is imported after successful verification.

[0029] In one optional implementation, the method by which a certificate authority generates a cryptographic root certificate includes:

[0030] The received certificate application file triggers the certificate authority to generate a root certificate and a first private key using random numbers;

[0031] The root certificate is encrypted into an encrypted root certificate using the first private key.

[0032] In an optional implementation, an encrypted certificate is generated based on the encrypted root certificate and the certificate application file, and the encrypted certificate is sent to a certificate authority (CA) so that the CA can decrypt the encrypted certificate into a digital certificate, including:

[0033] Based on the certificate issuance rules, an encrypted certificate is generated according to the encrypted root certificate and the certificate application file, and the encrypted certificate is sent to the certificate issuance center. The encrypted certificate is then decrypted into a digital certificate by the encryption and decryption algorithm at the certificate issuance center based on the first private key.

[0034] Secondly, the present invention also provides a digital certificate management method, comprising:

[0035] The server generates the certificate application file and private key;

[0036] Send the certificate application documents to the certificate issuing center and receive the encrypted root certificate obtained by encryption based on the root certificate from the certificate issuing center;

[0037] An encrypted certificate is generated based on the encrypted root certificate and certificate application file, and the encrypted certificate is sent to the certificate issuance center so that the certificate issuance center can decrypt the encrypted certificate into a digital certificate.

[0038] The private key is used to verify the digital certificate received from the certificate authority, and the digital certificate is imported after successful verification.

[0039] Thirdly, the present invention provides a digital certificate management system, comprising:

[0040] The requirement configuration module is used to configure requirement data and send the requirement data to the certificate issuance center. The requirement data defines the security requirement parameters, validity period and private key length of the digital certificate.

[0041] The certificate generation module is used to negotiate with the certificate issuance center based on the requirement data to generate a digital certificate that matches the requirement data.

[0042] In one optional implementation, the demand data includes:

[0043] One type of requirement data includes application scenarios for certificates;

[0044] The second type of required data includes private key algorithm, private key length, signature algorithm, and private key password.

[0045] In one optional implementation, the certificate generation module includes:

[0046] The file generation unit is used to receive the security level and generation method fed back by the certificate issuance center based on the required data, and generate private key and certificate application files based on the security level and generation method.

[0047] The file sending unit is used to send the certificate application file to the certificate issuing center, so that the certificate issuing center can generate a digital certificate and the root certificate required by the user based on the certificate request file;

[0048] The certificate import unit is used to verify the digital certificate received from the certificate issuing center using a private key, and import the digital certificate after successful verification, so as to use the digital certificate to authenticate the user's root certificate.

[0049] In one optional implementation, the method by which a certificate issuance center generates security levels and generation methods based on demand data includes:

[0050] The application scenarios in the demand data are converted into security level coefficients based on the preset application scenario security requirements.

[0051] Assess security level

[0052] Where EA is the encryption algorithm quantization coefficient, KL is the private key length, CVP is the certificate validity period, and SCVP is the standard certificate validity period used as the base time;

[0053]

[0054] This indicates that when CVP is 0, the certificate is unreasonable and the security level is the lowest; when CVP and SCVP are equal, the security level is normal; when CVP is twice SCVP, the certificate time is too long and the security level is further reduced.

[0055] When solving for the safety level SL, round the safety level up.

[0056] Based on the pre-defined mapping relationship between security level and generation method, the generation method corresponding to security level SL is retrieved.

[0057] In one optional implementation, the certificate generation module includes:

[0058] The basic generation unit is used to receive the security level and generation method fed back by the certificate issuance center based on the required data, and to generate a private key and certificate application file based on the security level and generation method.

[0059] The file interaction unit is used to send the certificate application file to the certificate issuing center and receive the encrypted root certificate obtained by encryption based on the root certificate from the certificate issuing center.

[0060] The certificate generation unit is used to generate an encrypted certificate based on the encrypted root certificate and the certificate application file, and send the encrypted certificate to the certificate issuance center so that the certificate issuance center can decrypt the encrypted certificate into a digital certificate.

[0061] The certificate verification unit uses the private key to verify the digital certificate received from the certificate issuing center, and imports the digital certificate after successful verification.

[0062] In one optional implementation, the method by which a certificate authority generates a cryptographic root certificate includes:

[0063] The received certificate application file triggers the certificate authority to generate a root certificate and a first private key using random numbers;

[0064] The root certificate is encrypted into an encrypted root certificate using the first private key.

[0065] In one optional implementation, the certificate generation unit includes:

[0066] Based on the certificate issuance rules, an encrypted certificate is generated according to the encrypted root certificate and the certificate application file, and the encrypted certificate is sent to the certificate issuance center. The encrypted certificate is then decrypted into a digital certificate by the encryption and decryption algorithm at the certificate issuance center based on the first private key.

[0067] Fourthly, the present invention also provides a digital certificate management system, comprising:

[0068] The basic generation module is used by the server to generate certificate application files and private keys.

[0069] The application sending module is used to send the certificate application file to the certificate issuing center and receive the encrypted root certificate obtained by encryption based on the root certificate from the certificate issuing center.

[0070] The certificate generation module is used to generate an encrypted certificate based on the encrypted root certificate and the certificate application file, and send the encrypted certificate to the certificate issuance center so that the certificate issuance center can decrypt the encrypted certificate into a digital certificate.

[0071] The certificate import module is used to verify the digital certificate received from the certificate issuing center using the private key, and import the digital certificate after successful verification.

[0072] Fifthly, a terminal is provided, comprising:

[0073] Processor, memory, among which,

[0074] This memory is used to store computer programs.

[0075] The processor is used to retrieve and run the computer program from memory, causing the terminal to perform the terminal method described above.

[0076] In a sixth aspect, a computer storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.

[0077] The beneficial effects of the present invention are that the digital certificate management method and system provided by the present invention generate digital certificates with matching security levels for servers based on the security requirements of different servers. This avoids generating high-security digital certificates for servers with low security requirements, reduces the computational load of the certificate issuance center, saves the computational resources of the certificate issuance center, and also improves the business processing capabilities of the certificate issuance center.

[0078] Furthermore, the design principle of this invention is reliable, the structure is simple, and it has a very wide range of application prospects. Attached Figure Description

[0079] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0080] Figure 1 This is an example diagram of existing digital certificate management methods.

[0081] Figure 2This is a schematic flowchart of a method according to an embodiment of the present invention.

[0082] Figure 3 This is an exemplary flowchart of a method according to an embodiment of the present invention.

[0083] Figure 4 This is an exemplary flowchart of a method according to an embodiment of the present invention.

[0084] Figure 5 This is another illustrative flowchart of a method according to an embodiment of the present invention.

[0085] Figure 6 This is a schematic block diagram of a system according to an embodiment of the present invention.

[0086] Figure 7 This is another schematic block diagram of a system according to an embodiment of the present invention.

[0087] Figure 8 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present invention. Detailed Implementation

[0088] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.

[0089] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

[0090] The key terms used in this invention will be explained below.

[0091] CSR stands for Certificate Signing Request. It's a document created by the CSP (Cryptoelectronic Service Provider) when the applicant applies for a digital certificate, along with the private key. The applicant submits the CSR to the Certificate Authority (CA), which then signs it with its root certificate's private key to generate the public key file, which is the certificate issued to the user. Typically, the CSR is submitted to the CA via a webpage (or can be automatically generated by a browser) when issuing and downloading the certificate after obtaining the reference code and authorization code.

[0092] The digital certificate management method provided in this embodiment of the invention is executed by a computer device, and correspondingly, the digital certificate management system runs on the computer device.

[0093] Figure 2 This is a schematic flowchart illustrating a method according to an embodiment of the present invention. Wherein, Figure 2 The implementing entity can be a digital certificate management system. Depending on different needs, the order of the steps in this flowchart can be changed, and some can be omitted.

[0094] like Figure 2 As shown, the method includes:

[0095] Step 210: Configure requirement data and send the requirement data to the certificate issuance center. The requirement data defines the security requirement parameters, validity period, and private key length of the digital certificate.

[0096] Step 220: Negotiate with the certificate issuance center based on the requirement data to generate a digital certificate that matches the requirement data.

[0097] To facilitate understanding of the present invention, the following description further illustrates the digital certificate management method provided by the present invention, based on the principles of the digital certificate management method and the process of managing digital certificates in the embodiments.

[0098] Specifically, the digital certificate management method includes:

[0099] S1. Configure the requirement data and send the requirement data to the certificate issuance center. The requirement data defines the security requirement parameters, validity period and private key length of the digital certificate.

[0100] The data requirements are categorized into two types: one type includes application scenarios for certificates; the other type includes private key algorithms, private key lengths, signature algorithms, and private key cryptography.

[0101] Specifically, for servers (Fx) that do not clearly specify the encryption details and validity period of the applied certificate, a requirement layer is added to the server. The requirement layer data can be actively modified by Fx or configured in batches via the local area network. The requirement data includes: the first type of requirement data is essential data, specifying the application scenario of the certificate, such as BMC access, employee machine access, storage of encrypted files, and the company's highest-level confidential information. Each requirement can be quantified at certain levels for overall control. The second type of requirement data is optional data, such as the key algorithm (RSA, SHA, etc.), key length, signature algorithm, private key password, and alternative names.

[0102] S2. Negotiate with the certificate issuance center based on the requirement data to generate a digital certificate that matches the requirement data.

[0103] The negotiation process based on demand data includes: the server receiving the security level and generation method from the certificate issuance center based on the demand data, and generating a private key and certificate application file based on the security level and generation method; sending the certificate application file to the certificate issuance center so that the certificate issuance center can generate a digital certificate and the root certificate required by the user based on the certificate application file; verifying the digital certificate received from the certificate issuance center using the private key, and importing the digital certificate after successful verification to authenticate the user's root certificate.

[0104] like Figure 3 As shown, server Fx sends the request data to certificate authority F1. Upon receiving the request data, certificate authority F1 calculates the corresponding security level and sends the security level and corresponding generation method back to server Fx. Server Fx, upon receiving the data, generates a private key K and a Certificate Signature (CSR) locally based on the security level and generation method, and uploads the CSR to certificate authority F1. Upon receiving the CSR, certificate authority F1 generates a root certificate R using a random number and issues a digital certificate A based on the root certificate R and the CSR. Then, certificate authority F1 sends digital certificate A to server Fx. Upon receiving digital certificate A, server Fx matches the private key K with digital certificate A. After matching, it imports digital certificate A into its local system or database and simultaneously sends a successful import notification to certificate authority F1. Upon receiving the notification of successful import of digital certificate A to the server, certificate authority F1 sends the root certificate to the client. Subsequently, when the client sends a communication establishment request to the server Fx, the client verifies whether the root certificate R matches the digital certificate A returned by the server Fx. If they match, the authentication is completed, and only after successful authentication can the client successfully establish communication with the server Fx.

[0105] The methods used by certificate issuance centers to generate security levels and generation methods based on demand data include:

[0106] The application scenarios in the demand data are converted into security level coefficients based on the preset application scenario security requirements.

[0107] Assess security level

[0108] Where EA is the encryption algorithm quantization coefficient, KL is the private key length, CVP is the certificate validity period, and SCVP is the standard certificate validity period used as the base time;

[0109]

[0110] This indicates that when CVP is 0, the certificate is unreasonable and the security level is the lowest; when CVP and SCVP are equal, the security level is normal; when CVP is twice SCVP, the certificate time is too long and the security level is further reduced.

[0111] When solving for the safety level SL, round the safety level up.

[0112] Based on the pre-defined mapping relationship between security level and generation method, the generation method corresponding to security level SL is retrieved.

[0113] To further reduce the computational load on Certificate Authority F1, the certificate generation process is shifted to the server. An additional computational layer on the server side can handle the task F1 originally performed on generating digital certificates based on CSRs. This computational load constitutes the main component of F1's computational burden. The specific implementation method is as follows: Figure 4 As shown, it includes the following steps:

[0114] The server (Fx) submits its request data to the certificate authority (CIA) F1. CIA F1 returns the security level and generation method matching the request data to the server (Fx), a process similar to the implementation described above. The server (Fx) generates a security signature (CSR) and a private key (K) based on the received security level and generation method, and submits the CSR to CIA F1. CIA F1 verifies the validity of the CSR, generates a root certificate (R) using a random number, and encrypts the root certificate (R) using method J to generate an encrypted root certificate (RL). CIA F1 sends RL to the server (Fx). The server (Fx) combines the CSR and RL to generate a digital encrypted certificate (AL), and sends AL to CIA F1. CIA F1 decrypts AL into digital certificate (A). CIA F1 sends digital certificate (A) to the server (Fx). The server (Fx) matches the private key (K) with digital certificate (A). Only if the match is successful can digital certificate (A) be imported into the server (Fx)'s system. After the digital certificate import is complete, CIA F1 imports the root certificate (R) into the client (Fx). When a client requests to establish communication with the server Fx, authentication is performed based on whether the root certificate R and the digital certificate A of the server Fx match. If they match, the communication connection is successfully established.

[0115] The method used by the Certificate Authority (CA) to encrypt the root certificate using method J includes: CAF1 generates a private key NKx to encrypt and decrypt digital certificate A. Here, NKx and the 'x' in server Fx indicate that this private key is used exclusively by server Fx. The specific encryption and decryption process for the root certificate includes: server Fx submits the Certificate Request for Submission (CSR) to CAF1. After receiving the CSR, CAF1 generates a root certificate R using a random number and also generates a private key NKx. CAF1 encrypts root certificate R using NKx to generate an encrypted root certificate RL. CAF1 sends RL to server Fx. After receiving RL, server Fx combines the CSR and RL to generate an encrypted digital certificate AL and uploads AL to CAF1. After receiving AL, CAF1 decrypts AL using NKx to obtain digital certificate A and sends digital certificate A to server Fx.

[0116] In another embodiment of the present invention, please refer to Figure 5 Only a computing layer is added to each server. The computing layer executes the following methods:

[0117] Step 510: The server generates the certificate application file and private key;

[0118] Step 520: Send the certificate application documents to the certificate issuing center and receive the encrypted root certificate obtained based on the root certificate from the certificate issuing center.

[0119] Step 530: Generate an encrypted certificate based on the encrypted root certificate and certificate application file, and send the encrypted certificate to the certificate issuing center so that the certificate issuing center can decrypt the encrypted certificate into a digital certificate;

[0120] Step 540 uses the private key to verify the digital certificate received from the certificate issuing center, and imports the digital certificate after successful verification.

[0121] In this implementation, the server undertakes the task of generating certificates. This approach also significantly reduces the computational load on the certificate issuance center. By adding a computational layer, the original function of the certificate issuance center F1 is transformed from generating random numbers, generating root certificate R based on the random numbers, parsing and auditing the CSR, and issuing digital certificate A based on root certificate R and CSR (which accounts for the majority of the computational load) to generating random numbers, generating root certificate R based on the random numbers, parsing and auditing the CSR, generating encrypted certificate RL from root certificate R using other asymmetric encryption methods, and decrypting AL returned by Fx into digital certificate A.

[0122] Specifically, server Fx generates a Certificate Request for Submission (CSR) and a private key K, and submits the CSR to Certificate Authority F1. Certificate Authority F1 verifies the validity of the CSR, generates a root certificate R using a random number, and encrypts the root certificate R using method J to generate an encrypted root certificate RL. Certificate Authority F1 sends RL to server Fx. Server Fx combines the CSR and RL to generate a digital encrypted certificate AL, and sends AL to Certificate Authority F1. Certificate Authority F1 decrypts AL into digital certificate A. Certificate Authority F1 sends digital certificate A to server Fx. Server Fx matches its private key K with digital certificate A; only if the match is successful can digital certificate A be imported into server Fx's system or database. After the digital certificate import is complete, Certificate Authority F1 imports the root certificate R into the client. When the client requests to establish communication with server Fx, it verifies the identity based on whether the root certificate R and server Fx's digital certificate A match; if they match, a communication connection is successfully established.

[0123] The method used by the Certificate Authority (CA) to encrypt the root certificate using method J includes: CAF1 generates a private key NKx to encrypt and decrypt digital certificate A. Here, NKx and the 'x' in server Fx indicate that this private key is used exclusively by server Fx. The specific encryption and decryption process for the root certificate includes: server Fx submits the Certificate Request for Submission (CSR) to CAF1. After receiving the CSR, CAF1 generates a root certificate R using a random number and also generates a private key NKx. CAF1 encrypts root certificate R using NKx to generate an encrypted root certificate RL. CAF1 sends RL to server Fx. After receiving RL, server Fx combines the CSR and RL to generate an encrypted digital certificate AL and uploads AL to CAF1. After receiving AL, CAF1 decrypts AL using NKx to obtain digital certificate A and sends digital certificate A to server Fx.

[0124] Existing technologies often require significant computation time due to complex encryption algorithms, long key lengths, and high security levels. However, in the implementation of this invention, it is only necessary to ensure the security level of the certificate issuance center F1 and the server Fx during data exchange. This communication process is often significantly less secure than the original scheme. Therefore, the workload on the certificate issuance center F1 can be significantly reduced.

[0125] In some embodiments, the digital certificate management system 600 may include multiple functional modules composed of computer program segments. The computer programs of each program segment in the digital certificate management system 600 may be stored in the memory of a computer device and executed by at least one processor to perform (see details). Figure 1 (Description) Functions of digital certificate management.

[0126] In this embodiment, the digital certificate management system 600 can be divided into multiple functional modules according to its functions, such as... Figure 6 As shown. The functional modules may include: a requirement configuration module 610 and a certificate generation module 620. The module referred to in this invention is a series of computer program segments that can be executed by at least one processor and perform a fixed function, and which are stored in memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0127] The requirement configuration module 610 is used to configure requirement data and send the requirement data to the certificate issuance center. The requirement data defines the security requirement parameters, validity period and private key length of the digital certificate.

[0128] The certificate generation module 620 is used to negotiate with the certificate issuance center based on the requirement data to generate a digital certificate that matches the requirement data.

[0129] Optionally, as an embodiment of the present invention, the demand data includes:

[0130] One type of requirement data includes application scenarios for certificates;

[0131] The second type of required data includes private key algorithm, private key length, signature algorithm, and private key password.

[0132] Optionally, as an embodiment of the present invention, the certificate generation module includes:

[0133] The file generation unit is used to receive the security level and generation method fed back by the certificate issuance center based on the required data, and generate private key and certificate application files based on the security level and generation method.

[0134] The file sending unit is used to send the certificate application file to the certificate issuing center, so that the certificate issuing center can generate a digital certificate and the root certificate required by the user based on the certificate request file;

[0135] The certificate import unit is used to verify the digital certificate received from the certificate issuing center using a private key, and import the digital certificate after successful verification, so as to use the digital certificate to authenticate the user's root certificate.

[0136] Optionally, as an embodiment of the present invention, the method by which a certificate issuance center generates a security level and generation method based on demand data includes:

[0137] The application scenarios in the demand data are converted into security level coefficients based on the preset application scenario security requirements.

[0138] Assess security level

[0139] Where EA is the encryption algorithm quantization coefficient, KL is the private key length, CVP is the certificate validity period, and SCVP is the standard certificate validity period used as the base time;

[0140]

[0141] This indicates that when CVP is 0, the certificate is unreasonable and the security level is the lowest; when CVP and SCVP are equal, the security level is normal; when CVP is twice SCVP, the certificate time is too long and the security level is further reduced.

[0142] When solving for the safety level SL, round the safety level up.

[0143] Based on the pre-defined mapping relationship between security level and generation method, the generation method corresponding to security level SL is retrieved.

[0144] Optionally, as an embodiment of the present invention, the certificate generation module includes:

[0145] The basic generation unit is used to receive the security level and generation method fed back by the certificate issuance center based on the required data, and to generate a private key and certificate application file based on the security level and generation method.

[0146] The file interaction unit is used to send the certificate application file to the certificate issuing center and receive the encrypted root certificate obtained by encryption based on the root certificate from the certificate issuing center.

[0147] The certificate generation unit is used to generate an encrypted certificate based on the encrypted root certificate and the certificate application file, and send the encrypted certificate to the certificate issuance center so that the certificate issuance center can decrypt the encrypted certificate into a digital certificate.

[0148] The certificate verification unit uses the private key to verify the digital certificate received from the certificate issuing center, and imports the digital certificate after successful verification.

[0149] Optionally, as an embodiment of the present invention, the method for a certificate issuing center to generate an encrypted root certificate includes:

[0150] The received certificate application file triggers the certificate authority to generate a root certificate and a first private key using random numbers;

[0151] The root certificate is encrypted into an encrypted root certificate using the first private key.

[0152] Optionally, as an embodiment of the present invention, the certificate generation unit includes:

[0153] Based on the certificate issuance rules, an encrypted certificate is generated according to the encrypted root certificate and the certificate application file, and the encrypted certificate is sent to the certificate issuance center. The encrypted certificate is then decrypted into a digital certificate by the encryption and decryption algorithm at the certificate issuance center based on the first private key.

[0154] like Figure 7 As shown. The functional modules may include: a basic generation module 710, an application sending module 720, a certificate generation module 730, and a certificate import module 740. The module referred to in this invention is a series of computer program segments that can be executed by at least one processor and perform a fixed function, and are stored in memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0155] The basic generation module 710 is used to generate certificate application files and private keys on the server side.

[0156] The application sending module 720 is used to send the certificate application file to the certificate issuing center and receive the encrypted root certificate obtained by encryption based on the root certificate from the certificate issuing center.

[0157] The certificate generation module 730 is used to generate an encrypted certificate based on the encrypted root certificate and the certificate application file, and send the encrypted certificate to the certificate issuance center so that the certificate issuance center can decrypt the encrypted certificate into a digital certificate.

[0158] The certificate import module 740 is used to verify the digital certificate received from the certificate issuing center using the private key, and import the digital certificate after successful verification.

[0159] Figure 8 This is a schematic diagram of the structure of a terminal 800 provided in an embodiment of the present invention. The terminal 800 can be used to execute the digital certificate management method provided in the embodiment of the present invention.

[0160] The terminal 800 may include a processor 810, a memory 820, and a communication module 830. These components communicate via one or more buses. Those skilled in the art will understand that the server structure shown in the figure does not constitute a limitation of the present invention. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0161] The memory 820 can be used to store the execution instructions of the processor 810. The memory 820 can be implemented using any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. When the execution instructions in the memory 820 are executed by the processor 810, the terminal 800 is able to perform some or all of the steps in the above method embodiments.

[0162] The processor 810 serves as the control center of the storage terminal, connecting various parts of the electronic terminal via various interfaces and lines. It executes software programs and / or modules stored in the memory 820, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 810 may consist only of a central processing unit (CPU). In this embodiment of the invention, the CPU may have a single processing core or include multiple processing cores.

[0163] The communication module 830 is used to establish a communication channel, enabling the storage terminal to communicate with other terminals. It receives user data sent by other terminals or sends user data to other terminals.

[0164] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps provided in the embodiments of the present invention. The storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0165] Therefore, this invention generates digital certificates with matching security levels for servers based on their different security requirements. This avoids generating high-security digital certificates for servers with low security requirements, reduces the computational load on the certificate issuance center, saves the certificate issuance center's computing resources, and also improves the certificate issuance center's business processing capabilities. The technical effects achieved by this embodiment can be found in the description above, and will not be repeated here.

[0166] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other medium capable of storing program code. It includes several instructions to cause a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0167] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

[0168] In the embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or modules may be electrical, mechanical, or other forms.

[0169] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0170] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.

[0171] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the invention should also be covered within the protection scope of the invention. Therefore, the protection scope of the invention should be determined by the scope of the claims.

Claims

1. A digital certificate management method, characterized in that, include: Configure the requirement data and send the requirement data to the certificate issuance center. The requirement data defines the security requirement parameters, validity period and private key length of the digital certificate. Negotiate with the certificate issuance center based on the demand data to generate a digital certificate that matches the demand data; Negotiating with the certificate issuing center based on demand data to generate a digital certificate that matches the demand data includes: The certificate issuance center receives the security level and generation method feedback based on the required data, and generates a private key and certificate application file based on the security level and generation method. Send the certificate request file to the certificate issuing center so that the certificate issuing center can generate a digital certificate and the root certificate required by the client based on the certificate request file; The digital certificate received from the certificate authority is verified using a private key, and after successful verification, the digital certificate is imported to authenticate the user's root certificate. The methods used by certificate issuance centers to generate security levels and generation methods based on demand data include: The application scenarios in the demand data are converted into security level coefficients based on the preset application scenario security requirements. Assess security level Where EA is the encryption algorithm quantization coefficient, KL is the private key length, CVP is the certificate validity period, and SCVP is the standard certificate validity period used as the base time; This indicates that when CVP is 0, the certificate is unreasonable and the security level is the lowest; when CVP and SCVP are equal, the security level is normal; when CVP is twice SCVP, the certificate time is too long and the security level is further reduced. When solving for the safety level SL, round the safety level up. Based on the pre-defined mapping relationship between security level and generation method, the generation method corresponding to security level SL is retrieved.

2. The method according to claim 1, characterized in that, The demand data includes: One type of demand data includes application scenarios for certificates; The second type of required data includes private key algorithm, private key length, signature algorithm, and private key password.

3. The method according to claim 1, characterized in that, Negotiating with the certificate issuing center based on demand data to generate a digital certificate that matches the demand data includes: The certificate issuance center receives the security level and generation method feedback based on the required data, and generates a private key and certificate application file based on the security level and generation method. Send the certificate application documents to the certificate issuing center and receive the encrypted root certificate obtained by encryption based on the root certificate from the certificate issuing center; An encrypted certificate is generated based on the encrypted root certificate and certificate application file, and the encrypted certificate is sent to the certificate issuance center so that the certificate issuance center can decrypt the encrypted certificate into a digital certificate. The private key is used to verify the digital certificate received from the certificate authority, and the digital certificate is imported after successful verification.

4. The method according to claim 3, characterized in that, The methods by which a certificate authority generates a cryptographic root certificate include: The received certificate application file triggers the certificate authority to generate a root certificate and a first private key using random numbers; The root certificate is encrypted into an encrypted root certificate using the first private key.

5. The method according to claim 4, characterized in that, An encrypted certificate is generated based on the encrypted root certificate and certificate application file, and the encrypted certificate is sent to a certificate authority so that the certificate authority can decrypt the encrypted certificate into a digital certificate, including: Based on the certificate issuance rules, an encrypted certificate is generated according to the encrypted root certificate and the certificate application file, and the encrypted certificate is sent to the certificate issuance center. The encrypted certificate is then decrypted into a digital certificate by the encryption and decryption algorithm at the certificate issuance center based on the first private key.

6. The method according to claim 1, characterized in that, include: The server generates the certificate application file and private key; Send the certificate application documents to the certificate issuing center and receive the encrypted root certificate obtained by encryption based on the root certificate from the certificate issuing center; An encrypted certificate is generated based on the encrypted root certificate and certificate application file, and the encrypted certificate is sent to the certificate issuance center so that the certificate issuance center can decrypt the encrypted certificate into a digital certificate. The private key is used to verify the digital certificate received from the certificate authority, and the digital certificate is imported after successful verification.

7. A digital certificate management system, characterized in that, include: The requirement configuration module is used to configure requirement data and send the requirement data to the certificate issuance center. The requirement data defines the security requirement parameters, validity period and private key length of the digital certificate. The certificate generation module is used to negotiate with the certificate issuance center based on the requirement data to generate a digital certificate that matches the requirement data. Negotiating with the certificate issuing center based on demand data to generate a digital certificate that matches the demand data includes: The certificate issuance center receives the security level and generation method feedback based on the required data, and generates a private key and certificate application file based on the security level and generation method. Send the certificate request file to the certificate issuing center so that the certificate issuing center can generate a digital certificate and the root certificate required by the client based on the certificate request file; The digital certificate received from the certificate authority is verified using a private key, and after successful verification, the digital certificate is imported to authenticate the user's root certificate. The methods used by certificate issuance centers to generate security levels and generation methods based on demand data include: The application scenarios in the demand data are converted into security level coefficients based on the preset application scenario security requirements. Assess security level Where EA is the encryption algorithm quantization coefficient, KL is the private key length, CVP is the certificate validity period, and SCVP is the standard certificate validity period used as the base time; This indicates that when CVP is 0, the certificate is unreasonable and the security level is the lowest; when CVP and SCVP are equal, the security level is normal; when CVP is twice SCVP, the certificate time is too long and the security level is further reduced. When solving for the safety level SL, round the safety level up. Based on the pre-defined mapping relationship between security level and generation method, the generation method corresponding to security level SL is retrieved.

8. The digital certificate management system according to claim 7, characterized in that, include: The basic generation module is used by the server to generate certificate application files and private keys. The application sending module is used to send the certificate application file to the certificate issuing center and receive the encrypted root certificate obtained by encryption based on the root certificate from the certificate issuing center. The certificate generation module is used to generate an encrypted certificate based on the encrypted root certificate and the certificate application file, and send the encrypted certificate to the certificate issuance center so that the certificate issuance center can decrypt the encrypted certificate into a digital certificate. The certificate import module is used to verify the digital certificate received from the certificate issuing center using the private key, and import the digital certificate after successful verification.

Citation Information

Patent Citations

  • Digital certificate issuing management method for industrial control system and encryption communication method for industrial control system

    CN112350826A

  • Method for issuing digital certificate, digital certificate issuing center, and medium

    US20210167972A1