Strategy for signing PDF #474
Replies: 2 comments 4 replies
-
It sounds like you have an issue in what was signed rather than the signing itself. We have our own libraries we use for this but they are not currently available to the public. The best external resource I am aware of for doing the PDF aspects of the work is this project: https://github.com/vbuch/node-signpdf A guess is that you are passing hash rather than data and that webcrypto commuting hash on a signing producing an invalid signature as a result |
Beta Was this translation helpful? Give feedback.
-
Are you familiar with our Hancock.ink product? It can handle all the PDF and token integration for you. |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm trying to incorporate smart card PDF signatures into a C# Blazor web application with Fortify. I've made some good progress, but I can't quite figure out how to put it all together.
At a high level, the program flow is the following:
This produces a PDF signed with a certificate and chain that passes validation, however...something's not quite right: "The document has been altered or corrupted since the Signature was applied".
I suspect I'm not getting the correct hash/digest when creating the CMS. Or I am misunderstanding the process for reserving the signature and applying it.
Does anyone have a high level suggestion or observation to point me in the right direction? Sorry for being vague at this point, but I wanted to start by sanity checking my workflow/process before getting bogged down in code.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions