Closed sayak02 closed 1 year ago
Hi @sayak02
Thanks for checking in. This type of validation error can be due to any number of factors. The most common culprits are the following:
pyhanko.yml
config file and the trust.txt
, others.txt
,... files it refers to?Hope that helps. If not, please post a full stack trace and all pyHanko-related log events.
(I'm moving this to the discussion board as it's a support question and not a bug report.)
Describe the bug Adding custom signature to a pdf works in my local Node.js environment, but gives the "The Signer's certificate could not be validated error" in my deployed development environment in ECS.
Node.js Pyhanko Execution Command :
let command = "pyhanko sign addsig --field Signature_Of_" + user.name.replace(/\s/g, "_") + " --name " + user.name.replace(/\s/g, "_") + " --reason Agreement_to_this_Document_By_" + user.name.replace(/\s/g, "_") + " --location Sama_IN --with-validation-info --validation-context special-setup --use-pades pkcs12 " + pdfPath + " " + signedpath + " file.pfx --passfil password.txt"
where
Attaching Docker File Config Screenshot for Reference:
Attaching the pyhanko.yml config file
Local Environment Python Version : python3 --version Python 3.8.9
Pyhanko version pyHanko, version 0.13.2