vbuch / node-signpdf

Simple signing of PDFs in node.
MIT License
679 stars 176 forks source link

PDF signature with pkcs#7 format certificate #173

Closed Faystos closed 11 months ago

Faystos commented 1 year ago

Hello, there are problems when using the library to sign a PDF file with a pkcs#7 usb token format certificate, an error occurs: "(node:21785) UnhandledPromiseRejectionWarning: Error: Unparsed DER bytes remain after ASN.1 parsing."

The question arises whether this library can be signed with a pkcs#7 format certificate? There is no mention in the documentation, if there is a wild excuse, could you then throw off the section where there are mentions

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in the past 90 days. It will be closed if no further activity occurs. Thank you for your contributions.

ParitoshKarnatak commented 2 weeks ago

Is there any solution on this for signing a pdf using pkcs7 in nodejs?