ninja-labs-tech / verify-pdf

Verify pdf signatures in JS
49 stars 39 forks source link

Root certificate not extracted from invisible signature #121

Open MathExpertBulgaria opened 1 year ago

MathExpertBulgaria commented 1 year ago

b-trust.pdf The attached file is signed with an invisible signature. The signature is verified by Adobe acrobat DC and the root cert is extracted correctly. When using your package though, the root cert is not extracted, only the client cert., I investigated the code and noticed that the problem is in lib/helpers/general.js getMessageFromSignature method which returns only the client certificate.

Can you check? Thanks in advance.