node-signpdf icon indicating copy to clipboard operation
node-signpdf copied to clipboard

Unparsed DER bytes remain after ASN.1 parsing.

Open ignoric opened this issue 2 years ago • 2 comments

Hi I'am use a simple function ` const { SignPdf } = require('node-signpdf'); const {plainAddPlaceholder, extractSignature} = require("node-signpdf/dist/helpers");

const p12Buffer = fs.readFileSync(${__dirname}/../resources/certificate_m.p12); let pdfBuffer = fs.readFileSync(${__dirname}/../resources/w3dummy.pdf);

pdfBuffer = plainAddPlaceholder({ pdfBuffer });

const signer = new SignPdf() const signedPdf = signer.sign(pdfBuffer, p12Buffer);

`

and return Unparsed DER bytes remain after ASN.1 parsing.

please help me .Thankyou

ignoric avatar Feb 07 '23 05:02 ignoric

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.

stale[bot] avatar Aug 12 '23 13:08 stale[bot]

Could this be related? https://github.com/digitalbazaar/forge/issues/975 Does the proposed patch to node-forge fix it? Not really sure. The issue has stayed for quite some months (sorry for that, maintainer's fault). Did you manage to resolve that @ignoric ?

vbuch avatar Nov 07 '23 13:11 vbuch