Copy link to clipboard
Copied
Hi Adobe,
We are using adbe.pkcs7.detached adding signature to the PDF. whenever I open signed PDF form it will show signature is unknown with below error code as
Error during signature verification.
Signature contains incorrect, unrecognized, corrupted or suspicious data.
Support Information: SigDict /Contents illegal data
Can anyone confirm me issue w.r.t to the signature verification.
With regards
Ravi
Copy link to clipboard
Copied
Unfortunately I don't do any rust development and cannot recommend any libraries there, I'm more into Java and C#.
As far as documentation is concerned, the lopdf entry links to where you can receive the PDF 2.0 specification ISO 32000-2 for free.
Copy link to clipboard
Copied
Hello @MikelKlink ,
I'm having a similar problem, trying to do multiple signatures in my test environment. What could be the issue and possible fix?
Thanks!
Copy link to clipboard
Copied
I'm having a similar problem, trying to do multiple signatures in my test environment. What could be the issue and possible fix?
In your example file the initial revision (containing the first signature) has been re-saved after signing (not applying changes in an incremental update but completely re-writing the PDF). This not only changed the signed byte range contents but also moved the signature dictionary (rendering the ByteRange entry itself incorrect) and changed the size of the single-revision PDF (making the ByteRange not covering a whole revision anymore). Furthermore, the software doing this re-write has an error in its cross reference table writing code.
Thus, the first signature in your document must be reported as broken.
After that first revision with the broken first signature there are a number of additional revisions (saved using incremental updates) to apply a second signature:
At first glance these steps look ok.
So you should check which code in your setup broke the initial PDF and fix that.