Digital certificate processing method and device, blockchain node and storage medium
A digital certificate processing method includes: receiving a distribution request for a digital certificate, wherein the digital certificate does not contain validity period information; acquiring a verification result for the digital certificate; and according to the verification result, recording the digital certificate which has passed verification to a blockchain.
1. A method for processing a digital certificate, comprising:
receiving an issuing request for the digital certificate, wherein the issuing request comprises the digital certificate and carries validity period information corresponding to the digital certificate, the validity period information is not contained in the digital certificate, and the validity period information is used to determine an effective time of the digital certificate;
acquiring a verification result of the digital certificate; wherein the verification result of the digital certificate is used for indicating whether the digital certification has passed verification;
determining the effective time of the digital certificate according to the validity period information carried in the issuing request;
wherein the verification result of the digital certificate is a verification result issued by a verification node after verification based on a consensus mechanism; and the method further comprises: when the verification result issued by verification nodes reaching a predetermined ratio indicates that the digital certificate has passed verification, or the verification result provided by a predetermined number of verification nodes indicates that the digital certificate has passed verification, determining that the digital certificate has passed verification; and
when the effective time of the digital certificate is reached, recording, according to the verification result, the digital certificate which has passed verification to a blockchain.
2. The method of claim 1 , wherein
acquiring the verification result of the digital certificate comprises:
acquiring the verification result issued when the effective time is reached.
3. A method for processing a digital certificate, comprising:
receiving an issuing request for the digital certificate, wherein the issuing request comprises the digital certificate and carries validity period information corresponding to the digital certificate, the validity period information is not contained in the digital certificate, and the validity period information is used to determine an effective time of the digital certificate;
determining the effective time of the digital certificate according to the validity period information carried in the issuing request;
when the effective time of the digital certificate is reached, verifying the digital certificate to obtain a verification result of the digital certificate; wherein the verification result of the digital certificate is used for indicating whether the digital certification has passed verification;
wherein the verification result of the digital certificate is a verification result issued by a verification node after verification based on a consensus mechanism; and the method further comprises: when the verification result issued by verification nodes reaching a predetermined ratio indicates that the digital certificate has passed verification, or the verification result provided by a predetermined number of verification nodes indicates that the digital certificate has passed verification, determining that the digital certificate has passed verification; and
issuing the verification result of the digital certificate.
4. An apparatus for processing a digital certificate, comprising:
a processor; and
memory for storing a computer program executable on the processor,
wherein when the computer program is executed by the processor, the processor is configured to perform:
receiving an issuing request for the digital certificate, wherein the issuing request comprises the digital certificate and carries validity period information corresponding to the digital certificate, the validity period information is not contained in the digital certificate, and the validity period information is used to determine an effective time of the digital certificate;
acquiring a verification result of the digital certificate; wherein the verification result of the digital certificate is used for indicating whether the digital certification has passed verification;
determining the effective time of the digital certificate according to the validity period information carried in the issuing request;
wherein the verification result of the digital certificate is a verification result issued by a verification node after verification based on a consensus mechanism; and the processor is further configured to perform, when the verification result issued by verification nodes reaching a predetermined ratio indicates that the digital certificate has passed verification, or the verification result provided by a predetermined number of verification nodes indicates that the digital certificate has passed verification, determining that the digital certificate has passed verification; and
when the effective time of the digital certificate is reached, recording, according to the verification result, the digital certificate which has passed verification to a blockchain.
5. The apparatus of claim 4 , wherein the acquiring the verification result of the digital certificate comprises:
acquiring the verification result issued when the effective time is reached.