Home > Article > Backend Development > Can a server-side PDF be signed with a client-provided digital signature without storing the signature on the server?
Issue:
Can a document created on a server be signed by the user's own digital signature without the signature being stored on the server? PHP and JavaScript are not considered sufficient for this task.
Solution:
A client-side module is necessary to perform signing since the private key is stored on the client. JavaScript cannot access this key.
Recommended Approach:
Implement a Java applet that runs within the user's browser to access the signing certificate and private key.
Alternative Option: SecureBlackbox Distributed Signature Add-On
The SecureBlackbox product provides a browser module (Java Applet, ActiveX control, or Flash applet) to facilitate the signing process:
Technical Details:
If the document hash is calculated at the server, it must be passed to the client for signing. The signature is then embedded back into the document. However, it may be simpler to transfer the entire document to the client for signing and upload the signed document back.
Available Libraries:
The above is the detailed content of Can a server-side PDF be signed with a client-provided digital signature without storing the signature on the server?. For more information, please follow other related articles on the PHP Chinese website!