A hierarchical verification and degraded supplementary verification method, system and device of cross-agency format electronic files and a storage medium
By combining local verification and downgraded certificate chain verification, the business availability and completeness issues of cross-organization document verification when the trust service is unavailable are resolved. A secure downgraded verification and re-verification mechanism is implemented to ensure the trustworthiness and availability of document verification.
Patent Information
- Application Number
- CN202611274327.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-27
AI Technical Summary
Cross-organizational document verification cannot balance business availability and verification completeness when the trust service is unavailable, and it lacks offline release re-verification mechanisms and tamper-proof protection for cache directories.
A combination of local verification and downgraded certificate chain verification is adopted. Downgraded verification is performed through a locally cached certificate directory, and automatic verification is performed when the trust service is restored. A signature directory is built to prevent forgery, and access behavior is recorded to achieve closed-loop traceability.
It enables secure business access when trust services are unavailable, the degradation verification process is auditable, risks are tagged and traceable, ensuring the credibility and availability of file verification and preventing spoofed directories.
Smart Images

Figure CN123184887A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital certificate verification technology, and in particular to a method, system, electronic device, and computer-readable storage medium for hierarchical verification and downgrade verification of cross-organizational format electronic documents. Background Technology
[0002] When accessing electronic medical records and other electronic documents across different medical institutions, the requesting party needs to verify the authenticity of the document signature. In reality, different institutions use certificates issued by different Certificate Authorities (CAs) and different timestamp sources, and the verification of the complete certificate chain and the query of revocation status rely on online trust services.
[0003] Healthcare settings present unique constraints: clinical access, such as for emergency care and referrals, cannot be blocked due to network failures or unavailability of trusted services. Current technologies offer only two options: a strict verification method refuses to open files when trusted services are unavailable, sacrificing clinical usability; a lenient approach skips certificate chain verification and directly displays files, sacrificing trustworthiness and offering no remedial measures afterward.
[0004] While common Certificate Revocation List (CRL) or Online Certificate Status Protocol (OCSP) caching technologies can accelerate verification, the cache directory itself lacks tamper-proof protection and lacks a closed-loop design of "downgrade release—status marking—recovery verification—failure tracing." Blockchain hash-based notarization solutions can only prove that the file has not been modified after being stored, but cannot verify the signer's identity and certificate status, thus failing to solve this problem. Patent publication number CN111538971B relates to a general system and method for document digital signature verification, but does not cover hierarchical verification or downgrade verification.
[0005] In summary, existing technologies have at least the following drawbacks: verification completeness conflicts with business availability, and one must be sacrificed; there is no mechanism for retroactive verification of files released offline, and the risk exposure cannot be closed; the cache directory lacks anti-tampering protection, and the degradation judgment can be deceived by a forged directory. Summary of the Invention
[0006] This section is intended to provide a simplified overview for a basic understanding of this application, and is not an exhaustive overview of this application.
[0007] The technical problem this application aims to solve is: how to ensure that cross-organizational document verification can still be securely allowed for business use when the trust service is unavailable, and that risks can be marked, re-verified, and traced in a closed loop.
[0008] To address the aforementioned technical problems, the first aspect of this application provides a method for verifying cross-organizational formatted electronic documents, comprising: sequentially performing local verification on the received formatted electronic documents—integrity verification, signature validity verification, and certificate validity verification; detecting the reachability of a trust service, and if reachable, performing certificate chain verification on the trust service; if unreachable, loading a locally cached certificate directory to perform downgraded certificate chain verification, wherein the certificate directory contains the digital signature and validity period of the trust service, and the signature and validity period of the directory are verified before performing downgrade verification; files that pass downgrade verification are marked as pending review and allowed access, and access behavior is recorded; after the connection with the trust service is restored, certificate chain supplementary verification is automatically performed on files in the pending review state, and if the supplementary verification passes, the mark is cleared; if the supplementary verification fails, an alarm is generated and traceability is performed based on the access record.
[0009] In one possible implementation, if any of the local verifications fails, verification is terminated and access is denied, without proceeding to the downgrade process.
[0010] In one possible implementation, the certificate chain verification also includes cross-certification relationship queries across certificate authorities and timestamp source verification.
[0011] In one possible implementation, when the certificate directory expires, a downgrade conclusion level lower than that for a valid directory is output, and stricter access restrictions are imposed.
[0012] In one possible implementation, the tracing includes identifying the visitor who accessed the file during the downgrade release period and sending the visitor a notification that the file signing subject certificate status is abnormal.
[0013] In one possible implementation, a file in a pending review state carries a downgrade flag when presented, and its content is restricted from being referenced, or is forced to carry a pending review label when referenced.
[0014] In one possible implementation, the certificate directory is updated using both push and pull methods and supports incremental updates, with directory update records kept.
[0015] The second aspect of this application provides a system for implementing the above-described method, the functional modules of which correspond to the steps of the first aspect and have the same technical effects. The third aspect provides an electronic device including a processor and a memory; the fourth aspect provides a computer-readable storage medium.
[0016] Compared with existing technologies, the beneficial effects of this application include: achieving both business availability and verification completeness, with zero obstruction to clinical access; the entire degradation path is auditable: the signed directory prevents fraud, and the combination of marking, recording, supplementary verification, and traceability forms a closed loop; it truly answers the questions of the signer's identity and certificate status, comparable to non-hash-based evidence storage solutions. Attached Figure Description
[0017] Figure 1 This is a flowchart illustrating the cross-organizational hierarchical verification and downgrade verification method provided in the embodiments of this application. Detailed Implementation
[0018] The embodiments of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solutions of this application and should not be construed as limiting the scope of protection of this application.
[0019] As shown in Figure 1, the method provided in this embodiment includes the following steps: S501, Receive electronic documents in the format of external organizations, wherein the documents contain a signature chain and a signing certificate.
[0020] S502, Level I Integrity Verification: Calculate the content digest locally and compare it with the signature-protected digest.
[0021] S503, Level II signature validity verification: Verify the correspondence between the signature value and the original text using the certificate public key.
[0022] S504, Level III Certificate Validation: Verifies validity period, algorithm compliance, and queries local revocation cache. Levels I to III are all local operations; failure at any level terminates the process and denies access.
[0023] S505, detects the reachability of trusted services.
[0024] S506, when available, performs Level IV online verification: certificate chain tracing to trusted CA, cross-CA cross-certification relationship query, real-time revocation status query and timestamp source verification, and outputs the final verification conclusion.
[0025] S507, when unreachable, performs downgrade verification: Loads the locally cached certificate directory; first verifies the digital signature of the trusted service on the directory and the directory's validity period to prevent directory forgery; then performs a certificate chain determination based on the directory. If the directory expires, it outputs a weaker downgrade conclusion.
[0026] S508, Marking and Allowing: Files that have passed the downgrade are marked as pending review and are allowed to be accessed by the business; when presented, they carry a downgrade identifier, and all access behavior is fully recorded (visitor, time, file, reason for downgrade).
[0027] S509, Recovery Verification: After the connection with the trusted service is restored, Level IV online verification is automatically performed on all files to be reviewed; if successful, the mark is cleared; if unsuccessful, an alarm is generated, and all access records of the file during the downgrade period are traced based on the available traces, and the relevant visitors and security management are notified.
[0028] S510, output verification conclusion: all four levels pass and it is trustworthy; downgraded level passes and it is temporarily trustworthy (to be verified); any level fails and it is untrustworthy.
[0029] The structure of the signed cache certificate directory is shown in the table below:
[0030] Fields meaning Remark trustedCAs[] / crossCerts[] Trusted CA List / Cross-Certification Relationships Degradation chain verification basis revocationSnapshot Snapshot of revocation status and its timing Incremental update validUntil Catalog validity period Expired downgrade dirSignature Trust service provides digital signatures for the entire directory. This signature must be verified before downgrading. Example 1: Emergency Department Inter-Hospital Access Encounters Dedicated Network Failure. At night, the emergency department receives patients transferred from other hospitals, and when retrieving their surgical records, the regional dedicated network is interrupted. System Levels I to III verification pass, Level IV is downgraded: the local cache directory contains documents issued three days prior by a trusted service, valid for seven days; directory signature verification passes, and the signing CA is determined to be on the trusted list—the document is displayed with a pending review mark, and doctors can refer to and treat the patient normally, with access recorded. The dedicated network is restored the following morning, the system automatically re-verifies and clears the mark. The entire process involves zero clinical disruption and zero risk exposure.
[0031] Example 2: Closed-loop traceability for failed re-verification. After a document was downgraded and released, re-verification revealed that the signing certificate had been revoked two days prior. The system issued an alert and, based on the trace evidence, discovered that the document had been accessed by two doctors during the downgrade period. The system automatically sent a notification to the two doctors stating, "The signature certificate of this document has been revoked, and the credibility of the content is questionable," and also pushed the event to the security audit. Although the risk occurred, it was located, notified, and can be addressed.
[0032] Example 3: Defense against forged directory attacks. An attacker implants a forged certificate directory into the accessing terminal in an attempt to force an untrusted CA to pass downgrade verification; since the forged directory does not have a valid signature of the trusted service, the directory signature verification in step S507 fails, the system refuses downgrade and issues an alert—signed directories make the downgrade path itself unspoofable.
[0033] In other implementations, the downgrade conclusion can be further categorized (directory valid downgrade, directory expired downgrade), with different levels being bound to different interface warnings and permission convergence strategies; In other implementations, if the verification fails, a withdrawal prompt can be sent along the reference chain to documents that have referenced the content of that file; In other implementations, the trust service may be deployed by the regional health authority or the leading institution of the medical consortium. This method does not limit the specific entity that undertakes the trust service.
[0034] In the system embodiment of the second aspect of this application, the local verification module is used to perform steps S502 to S504; the detection and online verification module is used to perform steps S505 to S506; the downgrade verification module is used to perform step S507, which has a built-in directory verification sub-module; the marking and logging module is used to perform step S508; and the supplementary verification and traceability module is used to perform step S509.
[0035] It should be noted that the descriptions such as "first" and "second" in the embodiments of this application are only used to distinguish the objects being described and do not constitute a limitation on the quantity or execution order; the execution order of each step can be adjusted or executed in parallel as long as there is no conflict.
[0036] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art; any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for verifying cross-institutional formatted electronic documents, characterized in that, include: The received electronic documents are subjected to local verification in sequence, including integrity verification, signature validity verification and certificate validity verification. Detect the reachability of the trusted service; if reachable, perform certificate chain verification on the trusted service; If the certificate is unreachable, the locally cached certificate directory is loaded to perform a downgraded certificate chain verification; the certificate directory contains the digital signature and validity period of the trust service, and the digital signature and validity period of the directory are verified before performing the downgrade verification; Files that pass the downgrade verification are marked as pending review and allowed access; access behavior is logged. After the connection with the trust service is restored, the certificate chain is automatically re-verified for files in the pending verification state: if the re-verification is successful, the mark is cleared; if the re-verification fails, an alarm is generated and the access record is traced.
2. The method according to claim 1, characterized in that, If any of the local verifications fails, the verification process is terminated and access is denied.
3. The method according to claim 1, characterized in that, The certificate chain verification also includes cross-certification relationship queries across certificate authorities and timestamp source verification.
4. The method according to claim 1, characterized in that, When the certificate directory expires, a downgrade conclusion level lower than that for a valid directory is output, and stricter access restrictions are imposed.
5. The method according to any one of claims 1 to 4, characterized in that, The tracing includes: identifying the visitors who accessed the file during the downgrade and release period, and sending a notification to the visitors that the file signing subject certificate status is abnormal.
6. The method according to any one of claims 1 to 4, characterized in that, Documents in a pending review status are displayed with a downgrade flag, and their content is restricted from being cited or is required to be marked as pending review when cited.
7. A cross-organizational document verification system, characterized in that, include: The local verification module is used to perform integrity, signature validity, and certificate validity checks. The online verification module is used to perform certificate chain verification when the trust service is available; The downgrade verification module is used to verify the signature and validity period of the local cached certificate directory and perform downgrade certificate chain verification based on it when the trust service is unreachable. The marking and logging module is used to mark files that have passed the downgrade as pending review and record access behavior; and the verification and tracing module is used to automatically perform verification after the connection is restored and to trace files that fail verification based on access records.
8. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
System and method for verifying a digital signature of a document
CN111538971B
