Skip to main content
Participant
Apr 16, 2025 1:04 PM UTC
Question

Sign with CryptSignMessage

Hello. I'm signing a document with CryptSignMessage (C), but when I open the document in Adobe, it tells me it's been modified or corrupted. Any recommendations on where the problem might be?

7 replies

JR Boulay
Community Expert
Community Expert
Apr 18, 2025 9:09 AM UTC

[MOVED TO THE ACROBAT FORUM]

Translate
Acrobate du PDF, InDesigner et Photoshopographe
Thom Parker
Community Expert
Community Expert
Apr 16, 2025 3:34 PM UTC

I opened the file you posted with out any error messages, other than an invalid signature. What the type and version of Acrobat do you have? 

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
Apr 16, 2025 4:58 PM UTC

I have version 2025.001.20435. The document does open, but when validating the signature, it indicates that it has been modified or corrupted. However, I've tried recalculating the SHA256 after adding the signature to the document, and it matches the one created before signing. I don't know what else I should check...

 

Translate
Thom Parker
Community Expert
Community Expert
Apr 17, 2025 5:03 PM UTC

Something must have happened to the document.  There is no way for us to debug this.  Try contacting Adobe support. Perhaps they have a bug. 

https://www.adobe.com/products/wishform.html

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often