[0027] See figure 1 The method for checking electronic licenses based on format files provided by the present invention includes the following steps:
[0028] Step S11: Obtain a trigger instruction for the format file reader to open the electronic license, and obtain the electronic license information from the electronic license opened by the format file reader according to the trigger instruction.
[0029] In one embodiment, the electronic certificate is a format file generated in a formatted document format, which includes the metadata of the electronic certificate, the contents of the electronic certificate, the electronic seal of the issuing unit, the digital signature, etc., wherein the metadata of the electronic certificate includes the electronic License number, e-license name, date of issuance of e-license, effective time of electronic license, etc. The format document formats include PDF, OFD, XPS and other document formats.
[0030] In one embodiment, the format file reader is any reader that can be used to open format files such as PDF, OFD, or XPS.
[0031] In an embodiment, the electronic certificate information includes: digest information generated by an encryption algorithm, signature information generated by an encryption algorithm, a public key, and a serial number of the electronic certificate. The summary information may include the name of the electronic license, the time when the electronic license is issued, and the initial effective time of the electronic license, etc. The encryption algorithm can be SM3 algorithm, or SM2 algorithm, or SM9 algorithm, or other encryption algorithms that can be used for information encryption, so as to enhance the complexity of the algorithm and realize the confidentiality and safe transmission of electronic certificate information. When the electronic certificate is signed, a certificate is used to sign, and the public key is the public key of the certificate. The public key can be used to verify whether the electronic certificate has been tampered with.
[0032] Step S12: Send the electronic license information to an electronic license verification system for verification; the electronic license verification system stores legal electronic license information corresponding to the electronic license.
[0033] In one embodiment, the legal electronic certificate information is information in an electronic certificate issued by a government department or a professional service organization with legal qualifications. The legal electronic certificate information includes: digest information generated by an encryption algorithm, signature information generated by an encryption algorithm, a public key, and an electronic certificate number. The summary information may include the name of the electronic license, the time when the electronic license is issued, and the initial effective time of the electronic license, etc. The encryption algorithm can be SM3 algorithm, or SM2 algorithm, or SM9 algorithm, or other encryption algorithms that can be used for information encryption, so as to enhance the complexity of the algorithm and realize the confidentiality and safe transmission of electronic certificate information. In an optional embodiment, the electronic license information is transmitted to the electronic license verification system through POST.
[0034] Step S13: Obtain the inspection result data transmitted by the electronic certificate inspection system.
[0035] The invention does not need to manually upload the electronic license. After the electronic license is opened through the format file reader, the electronic license information can be automatically obtained, and the electronic license information is automatically uploaded to the electronic license inspection system for inspection, and the inspection result data is obtained, reducing manual operations , It facilitates the inspection; and only needs to transmit the electronic license information to perform the inspection, which reduces the amount of data transmission and improves the inspection efficiency.
[0036] In an optional embodiment, the method further includes the step of creating a result display window in the format document reader according to the inspection result data information, and displaying the inspection result data. In an optional embodiment, the result display window is suspended above the opened electronic certificate.
[0037] To reflect the accuracy of the inspection result data, in an optional embodiment, the inspection result data includes the status of the electronic certificate and the inspection time corresponding to the status. The status of the electronic certificate includes: whether the electronic certificate is normal, or whether the electronic certificate is expired, or whether the electronic certificate is revoked, or whether the electronic certificate has been tampered with.
[0038] In an optional embodiment, the electronic certificate verification system is an HTTPS-based website for official authentication of electronic certificates; compared to the way that only the developer of electronic certificate verification services can provide an interface for online verification of electronic certificates, By adopting the officially certified outlets that interact with the format document reader, the present invention can prevent the electronic certificate from being uploaded to a disguised phishing website, leading to the leakage of electronic certificate information or other security problems.
[0039] In order to reflect the interactivity of the inspection, in one embodiment, after obtaining the electronic license information from the electronic license, before sending the electronic license information to the electronic license verification system for verification, it is also determined whether the electronic license submission is received Information request information. When the request information for submitting electronic license information is not received, the electronic license information will not be sent to the electronic license verification system for inspection; only after the request information for submitting electronic license information is received The electronic license information is sent to the electronic license inspection system for inspection, and then the manual refresh of the electronic license inspection is realized. In one embodiment, a submit button is provided on the layout document reader, and the request information for submitting the electronic license is obtained by pressing the button.
[0040] In order to prevent the format document reader from being unable to interact with the electronic license verification system, there is a process of waiting for it, in a more preferred embodiment, the verification result data transmitted by the electronic license verification system is also stored after obtaining the verification result. Data, when the electronic license is checked again, if the format document reader cannot interact with the electronic license inspection system within the set time, then the stored inspection result data will be obtained; otherwise, the electronic license inspection system will be sent Check the result data. In an optional embodiment, when the electronic certificate is opened by the format file reader for the first time, if the format file reader cannot interact with the electronic certificate verification system within a set time, the format file is obtained The offline data information of the reader, and the offline data information of the layout document reader is displayed in the result display window; otherwise, the inspection result data transmitted by the electronic certificate inspection system is obtained.
[0041] The present invention also provides an electronic certificate inspection system based on format files, including:
[0042] The trigger instruction acquisition module is used to acquire the trigger instruction of the format document reader to open the electronic license, and obtain the electronic license information from the electronic license opened by the format document reader according to the trigger instruction;
[0043] An information sending module, configured to send the electronic license information to an electronic license inspection system for inspection; the electronic license inspection system stores legal electronic license information corresponding to the electronic license;
[0044] The inspection result data acquisition module is used to acquire the inspection result data transmitted by the electronic certificate inspection system.
[0045] The invention does not need to manually upload the electronic license. After the electronic license is opened through the format file reader, the electronic license information can be automatically obtained, and the electronic license information is automatically uploaded to the electronic license inspection system for inspection, and the inspection result data is obtained, reducing manual operations , It facilitates the inspection; and only needs to transmit the electronic license information to perform the inspection, which reduces the amount of data transmission and improves the inspection efficiency.
[0046] In an optional embodiment, a display module is further included, and the display module is configured to create a result display window in the format file reader according to the inspection result data information, and display the inspection result data. In an optional embodiment, the result display window is suspended above the opened electronic certificate.
[0047] To reflect the accuracy of the inspection result data, in an optional embodiment, the inspection result data includes the status of the electronic certificate and the inspection time corresponding to the status. The status of the electronic certificate includes: whether the electronic certificate is normal, or whether the electronic certificate is expired, or whether the electronic certificate is revoked, or whether the electronic certificate has been tampered with.
[0048] In an optional embodiment, the electronic certificate verification system is an HTTPS-based website for official authentication of electronic certificates; compared to the way that only the developer of electronic certificate verification services can provide an interface for online verification of electronic certificates, By adopting the officially certified outlets that interact with the format document reader, the present invention can prevent the electronic certificate from being uploaded to a disguised phishing website, leading to the leakage of electronic certificate information or other security problems.
[0049] In order to reflect the interactivity of inspection, in one embodiment, after obtaining the electronic license information from the electronic license, before sending the electronic license information to the electronic license inspection system for inspection, the information sending module also uses When judging whether the request information for submitting electronic license information is received, when the request information for submitting electronic license information is not received, the electronic license information is not sent to the electronic license verification system for inspection; After the information is requested, the electronic license information is sent to the electronic license inspection system for inspection, and then manual refresh of the electronic license inspection is realized. In one embodiment, a submit button is provided on the layout document reader, and the request information for submitting the electronic license is obtained by pressing the button.
[0050] In order to prevent the format document reader from being unable to interact with the electronic certificate verification system, the process of waiting for a while, in a more preferred embodiment, after the verification result data transmitted by the electronic certificate verification system is obtained, the verification result data is acquired The module is also used to store the inspection result data. When the electronic license is checked again, if the format file reader cannot interact with the electronic license inspection system within a set time, then the stored inspection result data is obtained ; Otherwise, obtain the inspection result data sent by the electronic certificate inspection system. In an optional embodiment, when the electronic certificate is opened by the format file reader for the first time, if the format file reader cannot interact with the electronic certificate verification system within a set time, the format file is obtained The offline data information of the reader, and the offline data information of the layout document reader is displayed in the result display window; otherwise, the inspection result data transmitted by the electronic certificate inspection system is obtained.
[0051] See figure 2 Figures (a), (b), (c) and (d) of Figures, in which, in order to protect privacy, the avatar and some personal information in the figure are hidden. The following is a specific example to illustrate the technical solution of the present invention:
[0052] Open the electronic license through the format file reader, and at the same time the format file reader receives the trigger instruction to open the electronic license. At this time, the format file reader extracts the electronic license information from the opened electronic license and sends the electronic license information to Electronic certificate inspection system. The electronic certificate verification system compares the electronic certificate information sent by the format file reader with the stored electronic certificate information. If the electronic certificate information has not been tampered with, the electronic certificate has not been revoked, and the electronic certificate is within the validity period, the result display window Display the normal electronic license and the corresponding inspection time; if the electronic license is not within the valid period, the electronic license has expired and the corresponding inspection time will be displayed in the result display window; if the electronic license has been revoked, the electronic license has been revoked in the result display window And the corresponding inspection time; if the electronic certificate has been tampered with, the result display window shows that the electronic certificate has been tampered with and the corresponding inspection time. After that, the format file reader stores the above-mentioned inspection result data. When the layout document reader opens the electronic license again, if the layout document reader cannot interact with the electronic license inspection system within the set time, for example, when the layout document reader is offline, the stored inspection result data will be acquired and displayed , For example, the display format file reader has been tampered with, and the time of last inspection was XX, XX, XX, XX. Otherwise, obtain and display the inspection result data transmitted by the electronic license inspection system.
[0053] The present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for checking an electronic license based on a format file as described above are realized.
[0054] The present invention can be in the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program codes. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
[0055] The present invention also provides a computer device, including a storage, a processor, and a computer program stored in the storage and executable by the processor. When the processor executes the computer program, it implements any of the above The steps of the method for checking electronic licenses based on format files.
[0056] The above-mentioned embodiments only express several embodiments of the present invention, and the descriptions are more specific and detailed, but they should not be understood as limiting the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can be made, and these all fall within the protection scope of the present invention.