Closed maielo closed 3 years ago
Found it in code. Nevermind. for those who search for it like i do. ->
sign(pdfBuffer, p12Buffer, additionalOptions = {}) {
const options = {
asn1StrictParsing: false,
passphrase: '',
...additionalOptions
};
Yup. https://github.com/vbuch/node-signpdf/blob/develop/src/signpdf.test.js#L242 The main idea of the package was to have stuff shown with examples. Sorry you needed to search for it and it was not directly linked somewhere. Maybe an .md file with index of demonstrated features would be a nice thing to have. If someone wants to do that, PRs are welcome.
I can write do that once i have time. Will create PR for it.
I am trying to sign existing PDF. Adding placeholder and added certificate which was supplied by gov. Tried
.pfx
,p12
certs but it still throws errorOR
any idea what i am doing wrong?