Dear list, I have the following sample \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed[background=signature,framecolor=darkred] {\fieldbody[signature][width=3cm,option=hidden]} \stopTEXpage \stoptext After compiling, I sign it with the following command (in latest from 2024.05.31 18:50): mtxrun --script pdf --sign --certificate=mycert.pfx --password=ABCabc a It requires the pass phrase (again?) and I get a signed PDF document. But Acrobat cannot find (or display) any signature in that PDF document. pdfsig (from poppler-utils-24.02.0) complains about digest mismatch: $ pdfsig a.pdf Digital Signature Info of: a.pdf Signature #1: - Signature Field Name: signature - Signer Certificate Common Name: John Doe - Signer full Distinguished Name: CN=John Doe,O=No Brainer - Signing Time: Jun 03 2024 16:24:03 - Signing Hash Algorithm: SHA-256 - Signature Type: adbe.pkcs7.detached - Signed Ranges: [0 - 6428], [10527 - 10912] - Not total document signed - Signature Validation: Digest Mismatch. mutool sign (from mupdf-1.24.1) also complains about modified document after signing: $ mutool sign -v a.pdf Verifying signature 3: Distinguished name: cn=John Doe, o=No Brainer, ou=, email=, c=XX Certificate error: Self-signed certificate. Digest error: Signature invalidated by change to document. Sorry, but what am I doing wrong here? Many thanks for your help, Pablo
participants (1)
-
Pablo Rodriguez