Open arvinjarvin opened 6 months ago
Hi,
You would need to implement a Signer
. The package only has one such implementation currently - https://github.com/vbuch/node-signpdf/blob/develop/packages/signer-p12/src/P12Signer.js but as you can see the abstract is quite simple https://github.com/vbuch/node-signpdf/blob/develop/packages/utils/src/Signer.js#L4
Thank you.
I'll get back on this issue if any more Qs.
Is the buffer being returned a buffer of the signed hash, or of the whole PDF integrating the signed hash?
It's the signature only. It will be used here: https://github.com/vbuch/node-signpdf/blob/develop/packages/signpdf/src/signpdf.js#L79 The idea is that @signpdf/signpdf will deal with the PDF part. The Signer should only care of crypto.
You should probably have a look at https://github.com/vbuch/node-signpdf/pull/230 You didn't say what the external signing service would be...
Hi
Hope you're well
Wondering how I can append a remote PADES signature with your library, which is a base64 returned by an external signing service.