A mobile PDF electronic signature method and system based on key collaborative signature

Through the key collaborative signature technology of the mobile terminal and collaborative server, PDF files are electronically signed, which solves the problems of poor user experience and security risks, and achieves highly reliable and secure electronic signatures that comply with national secret standards.

CN114338035BActive Publication Date: 2024-10-01NANJING YIZHENG COMM INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111534144.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-10-01
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

The existing mobile PDF electronic signature method has problems such as poor user experience, security risks and over-reliance on the server, especially in large files and poor network environments, and does not meet national confidentiality standards.

Method used

Using a key-based collaborative signature method, the mobile terminal and collaborative server perform key collaborative calculations to digitally sign the hash value calculated from the SM3 summary, electronic seal, signature certificate and timestamp of the PDF file, and encapsulate it into a format that complies with The data structure of the national secret standard is used to complete the electronic signature operation.

Benefits of technology

It improves the reliability and security of electronic signatures, avoids the risk of forged signatures, enhances data security and user experience, and meets the regulatory requirements of national secret standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114338035B_ABST
    Figure CN114338035B_ABST
Patent Text Reader

Abstract

The present invention discloses a mobile PDF electronic signature method based on key collaborative signature, which specifically includes the following steps: applying to an electronic seal management system for making an electronic seal, and the electronic seal management system making an electronic seal according to a digital certificate and a signature image; selecting a signature field on a PDF page, pre-signing a PDF file, and obtaining a pre-signed PDF file stream; making an SM3 summary of the pre-signed PDF file stream; calculating a hash value through data including the SM3 summary and the electronic seal; digitally signing the hash value through a key collaborative operation; encapsulating the digital signature, and synthesizing the signature data of the digital signature into the PDF file, and completing the electronic signature of the PDF file. The present invention also discloses a mobile PDF electronic signature system based on key collaborative signature.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to electronic signature technology, and more specifically, to a method and system for mobile PDF electronic signature based on key collaborative signature technology and in compliance with national secret standards. Background Art

[0002] There are generally two traditional mobile electronic signature methods.

[0003] The first method is to select the signature field on the page of the PDF file in advance (the signature field is the area where the seal is located), and then pass the signature field data to the signature interface of the electronic signature server to perform summary calculation and some operations related to the digital signature on the PDF file. After the signature is completed, the signature data is written into the PDF file and the seal or handwritten signature is stamped to the location of the signature field. Finally, the new PDF file with the signature is synthesized and returned to the mobile terminal, thereby completing the electronic signature of the PDF file. During the whole process, the mobile terminal does not participate in the operations related to the electronic signature, but is only responsible for selecting the signature field.

[0004] The second method is to select the signature field on the page of the PDF file in advance, and then calculate the summary of the PDF file by calling the interface of the electronic signature server to obtain the summary of the signature field data, generate a summary, and after the mobile terminal obtains the summary of the PDF file, use the digital certificate of the mobile terminal to digitally sign the summary of the PDF file, and then pass the signature data to the signature interface of the electronic signature server to write the signature data into the PDF file and stamp the seal or handwritten signature to the location of the signature field, and finally synthesize the new PDF file after signing and return it to the mobile terminal, thereby completing the electronic signature operation of the PDF file. During the whole process, the mobile terminal is only responsible for digitally signing the summary of the PDF file, and does not participate in the calculation of the PDF summary and the writing of the signature data, as well as the synthesis of the new PDF file.

[0005] The disadvantages of the above two methods are:

[0006] Disadvantages of the first method:

[0007] 1. After selecting the signature field, if the PDF file does not exist on the server, the mobile terminal needs to upload the PDF file to the server, and perform some operations related to the electronic signature on the PDF file according to the selected signature field, and finally synthesize a new signed PDF file. The mobile terminal needs to download the signed PDF file to the user. This method involves the process of uploading and downloading, which is time-consuming. Especially when the PDF file is too large and the network environment is poor, uploading and downloading takes a long time, and the user experience is extremely poor.

[0008] 2. Since the mobile terminal is only responsible for selecting the signature field, the entire signature operation, including the synthesis of the PDF file, is completed on the server side. It is too dependent on the electronic signature server, almost 100% dependent on the electronic signature server.

[0009] 3. From the above, it can be seen that the most critical electronic signature operation is completely completed independently by the server, that is, the digital certificate and its private key are stored on the server. Therefore, in addition to excessive reliance on the electronic signature server, there are certain security risks. Unlike the traditional UKey (UKey: a small storage device that is directly connected to the computer through the universal serial bus interface USB, has password verification function, and is reliable and high-speed), this type of electronic signature for mobile PDF files does not even require a password. If the mobile phone is attacked by hackers, the user's personal information is obtained, and the user's personal information is used to electronically sign a contract, or someone with system authority maliciously extracts the user's digital certificate private key to sign a PDF file, etc., this will bring great security risks.

[0010] The disadvantages of the second method:

[0011] 1. As with the first method, after selecting the signature domain, the server interface also needs to be called. The difference from the first method is that the summary calculation is completed by the server, and the digital signature is completed by the client. However, the writing of the signature data and the synthesis of the new PDF file after signing are still completed by the server. The new PDF file still needs to be downloaded from the server to the user by the mobile terminal. There are also similar problems as the first method. When the PDF file is too large and the network environment is poor, it takes a long time to upload and download, and the user experience is not good.

[0012] 2. In addition to selecting the signature field, the second method also digitally signs the summary of the PDF file. Compared with the first method, the mobile terminal only performs the digital signature operation, and the summary calculation, signature data writing, and the synthesis of the new PDF file after signing are all completed by the server, which still has a great dependence on the server.

[0013] 3. Compared with the first method, the second method performs a digital signature operation on the mobile terminal, and uses the digital certificate issued locally from the server to digitally sign the summary of the PDF file. Although the digital signature is handed over to the mobile terminal, the digital certificate and its private key are managed by the user himself, avoiding the forgery of user information for digital signature through network interception, which is safer than the first method. However, since the digital certificate and its private key are all stored on the mobile terminal, hackers can extract the private key of the digital certificate by attacking the user's mobile device. Therefore, this method also has a greater security risk.

[0014] The above two electronic signature implementation methods basically do not comply with the standards and requirements of national secret electronic signatures. Summary of the invention

[0015] In view of the above technical problems, the present invention discloses a mobile PDF electronic signature method and system based on key collaborative signature to improve the reliability of PDF electronic signature.

[0016] In order to achieve the above-mentioned invention objectives, the technical solution adopted by the present invention is: a mobile PDF electronic signature method based on key collaborative signature, which digitally signs the hash value of the national secret signature structure calculated from the SM3 summary, electronic seal, signature certificate, and timestamp of the pre-signed PDF file stream by means of key collaborative calculation between the mobile terminal and the collaborative server, and encapsulates it into a data structure that meets the national secret standard to synthesize a new PDF file, thereby realizing the electronic signature operation of the PDF file and ensuring the security and reliability of the data.

[0017] The above method specifically comprises the following steps:

[0018] Apply to the electronic seal management system for the production of an electronic seal using a digital certificate and a signature image (including a seal image or a handwritten signature image, etc.);

[0019] Select the signature field on the PDF page to pre-sign the PDF file and obtain the pre-signed PDF file stream;

[0020] Make SM3 summary of pre-signed PDF file stream;

[0021] The hash value is calculated by the SM3 summary, electronic seal, signature certificate, and timestamp of the pre-signed PDF file stream. In the preferred case, the hash value should comply with the national encryption standard structure.

[0022] The hash value is digitally signed by means of key collaborative operation;

[0023] Encapsulate the digital signature and synthesize the signature data of the digital signature into the PDF file to complete the electronic signature of the PDF file.

[0024] Furthermore, the digital signature method of key collaborative operation includes: the collaborative server digitally signs the hash value through the key component to obtain the first signature data, and returns the first signature data to the mobile terminal; the mobile terminal digitally signs the hash value through its own key component to obtain the second signature data, and then synthesizes the first signature data and the second signature data through the collaborative signature algorithm, and encapsulates the synthesized signature data.

[0025] Furthermore, when calculating the hash value, the hash value is calculated using the SM3 digest, the electronic seal, the signature certificate, and the timestamp of the pre-signed PDF file stream.

[0026] Preferably, it also includes the step of applying for a national secret SM2 digital certificate, sending a request to the collaborative service, jointly generating a collaborative key pair through key collaboration, constructing a PKCS10 request, applying to the digital certificate registration system RA for the issuance of a digital certificate, and obtaining a digital certificate issued by RA.

[0027] Furthermore, when encapsulating a digital signature, the signature data of the digital signature is encapsulated into standard electronic signature data. The logical structure of the standard electronic signature data includes: version number, electronic seal, time information, hash value, original text attribute information, signer's digital certificate, signature algorithm identifier, and signature value; and the encapsulated signature data is synthesized into the PDF file.

[0028] The present invention also discloses a mobile PDF electronic signature system based on key collaborative signature, including a mobile terminal, an electronic seal management system, and a collaborative service terminal;

[0029] The electronic seal management system generates an electronic seal based on the application of the mobile terminal and the digital certificate and signature image provided by the mobile terminal and returns it to the mobile terminal;

[0030] On the mobile terminal, select the signature field on the PDF page to pre-sign the PDF file and obtain the pre-signed PDF file stream;

[0031] The mobile terminal makes an SM3 summary of the pre-signed PDF file stream; the hash value is calculated using the data including the SM3 summary and the electronic seal;

[0032] The mobile terminal initiates a collaboration request to the collaboration server and digitally signs the hash value through key collaboration.

[0033] The mobile terminal encapsulates the digital signature and synthesizes the signature data of the digital signature into the PDF file to complete the electronic signature of the PDF file.

[0034] Furthermore, the mobile terminal and the collaborative server jointly generate a collaborative key pair; the mobile terminal constructs a PKCS10 request and applies to the digital certificate registration system RA for issuance of a digital certificate; and the RA issues a digital certificate to the mobile terminal.

[0035] Furthermore, the mobile terminal calculates a hash value that complies with the national encryption standard structure through the SM3 summary, electronic seal, signature certificate, and timestamp of the pre-signed PDF file stream.

[0036] Further, the collaborative server digitally signs the hash value using the key component to obtain first signature data, and returns the first signature data to the mobile terminal;

[0037] The mobile terminal uses its own key component to perform a data signature on the hash value to obtain second signature data, then synthesizes the first signature data and the second signature data, and encapsulates the synthesized signature data.

[0038] The present invention has the following beneficial effects: when performing digital signature, the mobile PDF electronic signature method and system proposed in the present invention completes the digital signature operation by means of key collaboration between the mobile terminal and the collaborative service terminal, which can ensure that the signature cannot be forged at either end, and the key components at both ends are protected by PIN codes, which are only owned by the holder of the digital certificate and are unknown to any other party, thereby greatly improving the reliability of signature information and data security. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a timing diagram of a mobile terminal applying for issuance of a digital certificate in a mobile terminal PDF electronic signature method according to an embodiment of the present invention.

[0040] Figure 2 This is a mobile electronic signature timing diagram of the mobile PDF electronic signature method according to an embodiment of the present invention.

[0041] Figure 3 This is a timing diagram of combining mobile digital certificate application and collaborative electronic signature in the mobile PDF electronic signature method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] To facilitate understanding by those skilled in the art, the present invention is further described below in conjunction with embodiments and drawings.

[0043] First, some of the terms that will be mentioned in this embodiment are explained. Key collaboration: Key collaboration is the use of a specific collaborative signature algorithm to split the private key in a digital certificate into two key components. The two key components are generated on both the mobile terminal and the collaborative server in a collaborative manner. The key component of the mobile terminal is stored on the mobile terminal, and the key component of the collaborative server is stored on the collaborative terminal. When performing a digital signature, the data to be signed is signed by the part of the key stored at each end. Then, the two parts of the signature data are synthesized into complete signature data through a specific collaborative signature algorithm, which is consistent with the data signed by the complete private key. The advantage is that it is more secure and reliable.

[0044] Electronic signature: Electronic signature is a form of digital signature. It uses image processing technology to convert the electronic signature operation into the same visual effect as the paper document stamping operation. At the same time, electronic signature technology is used to ensure the authenticity and integrity of electronic information and the non-repudiation of the signer.

[0045] Summary: Also known as digital summary, it converts data of any length into data of fixed length through a hash algorithm.

[0046] SM3: Cryptographic hashing algorithm.

[0047] SM2: Elliptic curve public key cryptography algorithm.

[0048] Electronic seal: A data signed by the maker that includes holder information and graphical content and can be used to sign electronic documents.

[0049] Electronic signature data: data generated during the electronic signature process that contains electronic seal information and signature information.

[0050] Electronic seal management system: a management system that integrates seal administrator management, electronic seal production and management, electronic seal services and security audit functions.

[0051] Compared with the traditional technical scheme, the technical method proposed in this embodiment completes the digital signature operation by means of key collaboration between the mobile terminal and the collaborative service terminal when performing digital signature. The technical problems solved by this embodiment are: 1. How to calculate the SM3 summary of the PDF file after selecting the signature domain; 2. How to digitally sign the PDF file summary calculated after selecting the signature domain through key collaboration, and encapsulate it into electronic signature data that complies with national secret standards, write and synthesize a new PDF file, realize the electronic signature operation of the PDF file, and ensure the security and reliability of the data.

[0052] The mobile PDF electronic signature system based on key collaborative signature technology of this embodiment includes: a mobile terminal, an electronic seal management system, and a collaborative service terminal. The specific steps of the PDF electronic signature method based on key collaborative signature technology are as follows:

[0053] Step 1: If Figure 1 As shown, apply for the national secret SM2 digital certificate. Applying for the SM2 digital certificate further includes the following steps: the mobile terminal and the collaborative server jointly generate a collaborative key pair; the mobile terminal constructs a PKCS10 request and applies to the digital certificate registration system RA for the issuance of a digital certificate; RA issues a digital certificate to the mobile terminal. (If you have already applied for a national secret digital certificate, proceed directly to step 2)

[0054] Step 2: If Figure 2 As shown, the electronic seal management system generates an electronic seal based on the application of the mobile terminal and the digital certificate and seal image (or handwritten signature image) provided by the mobile terminal and returns it to the mobile terminal.

[0055] Step 3: On the mobile terminal, select the signature field on the PDF page, pre-sign the PDF file, and obtain the pre-signed PDF file stream.

[0056] Step 4: The mobile terminal makes an SM3 summary of the pre-signed PDF file stream.

[0057] Step 5: The mobile terminal calculates a hash value that complies with the national encryption standard structure through the SM3 summary, electronic seal, signature certificate, and timestamp of the pre-signed PDF file stream.

[0058] Step 6: The mobile terminal initiates a collaborative request to the collaborative server. The collaborative server digitally signs the hash value through key collaborative operation (i.e., through key components) to obtain first signature data, and returns the first signature data to the mobile terminal.

[0059] Step 7: The mobile terminal uses its own key component to sign the hash value to obtain the second signature data, and then synthesizes the first signature data and the second signature data of the collaborative server and the collaborative client through the collaborative signature algorithm, and encapsulates the synthesized signature data into the signature data of the standard structure of the national secret.

[0060] Step 8: The mobile terminal synthesizes the electronic signature data of the national encryption standard structure into the PDF file to generate a new signed PDF file.

[0061] The entire process from digital certificate issuance to electronic signature is as follows Figure 3 As shown, it includes the complete process of issuing digital certificates and electronic signatures.

[0062] The above embodiments are only for illustrating the technical idea of ​​the present invention, and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the present invention.

Claims

1. A mobile PDF electronic signature method based on key collaborative signature, characterized in that: The specific steps include: Send a request to the collaborative service to jointly generate a collaborative key pair through key collaboration; Construct a PKCS10 request and apply to the digital certificate registration system RA for the issuance of a digital certificate; Obtain a digital certificate issued by RA; Apply to the electronic seal management system for the production of an electronic seal. The electronic seal management system produces an electronic seal based on the digital certificate and signature image; Select the signature field on the PDF page to pre-sign the PDF file and obtain the pre-signed PDF file stream; Make SM3 summary of the pre-signed PDF file stream; calculate the hash value by including SM3 summary, electronic seal, signature certificate, and timestamp data; The hash value is digitally signed by means of key collaboration: The collaborative server digitally signs the hash value using the key component to obtain first signature data, and returns the first signature data to the mobile terminal; The mobile terminal uses its own key component to perform a data signature on the hash value to obtain the second signature data, then synthesizes the first signature data and the second signature data through a collaborative signature algorithm, and encapsulates the synthesized signature data; Encapsulate the digital signature and synthesize the signature data of the digital signature into the PDF file to complete the electronic signature of the PDF file.

2. According to claim 1, the method for electronically signing PDF files on a mobile terminal based on key collaborative signature is characterized in that: When calculating the hash value, the timestamp is obtained through the timestamp server.

3. According to claim 1, the method for electronically signing PDF files on a mobile terminal based on key collaborative signature is characterized in that: When encapsulating a digital signature, the signature data of the digital signature is encapsulated into standard electronic signature data. The logical structure of the standard electronic signature data includes: version number, electronic seal, time information, hash value, original text attribute information, signer's digital certificate, signature algorithm identifier, and signature value; and the encapsulated signature data is synthesized into the PDF file.

4. A mobile PDF electronic signature system based on key collaborative signature, characterized by: Including mobile terminal, electronic seal management system, and collaborative service terminal; The mobile terminal and the collaborative server jointly generate a collaborative key pair; the mobile terminal constructs a PKCS10 request and applies to the digital certificate registration system RA for a digital certificate; the RA issues a digital certificate to the mobile terminal; The electronic seal management system generates an electronic seal based on the application of the mobile terminal and the digital certificate and signature image provided by the mobile terminal and returns it to the mobile terminal; On the mobile terminal, select the signature field on the PDF page to pre-sign the PDF file and obtain the pre-signed PDF file stream; The mobile terminal performs SM3 summary on the pre-signed PDF file stream; the mobile terminal calculates a hash value that complies with the national encryption standard structure through the SM3 summary, electronic seal, signature certificate, and timestamp of the pre-signed PDF file stream; The mobile terminal initiates a collaboration request to the collaboration server and digitally signs the hash value through key collaboration: The collaborative server digitally signs the hash value using the key component to obtain first signature data, and returns the first signature data to the mobile terminal; The mobile terminal uses its own key component to perform a data signature on the hash value to obtain second signature data, then synthesizes the first signature data and the second signature data, and encapsulates the synthesized signature data; The mobile terminal encapsulates the digital signature and synthesizes the signature data of the digital signature into the PDF file to complete the electronic signature of the PDF file.

Citation Information

Patent Citations

  • Method and system for achieving electronic signature

    CN104468120A

  • Method and system for electronic signature and mobile communication terminal used for electronic signature

    CN106888089A

  • Mobile terminal password protection module, mobile terminal and password protection method

    CN111431719A

  • Mobile interactive electronic signature method

    CN113626880A

  • Method for the electronic signature of a document

    GB201711702D0