vbuch / node-signpdf

Simple signing of PDFs in node.
MIT License
688 stars 175 forks source link

[Question] - Can I signing this pdf with encrypted (Password protected) #117

Closed chayakornjj closed 3 years ago

chayakornjj commented 3 years ago

Question

Thank you :-)

kevinbeal commented 3 years ago

Does this work?

signer.sign(pfBuffer, p12Buffer, { passphrase: "your-password" })
chayakornjj commented 3 years ago

@kevinbeal Not sure yet will try. Actually i made this work with other programing language (Java, PDFBOX). But happy to try with this package.

erickximenes commented 3 years ago

@chayakornjj This function is used to sign a PDF with a digital certificate that has a password.

@chayakornjj Essa função serve para assinar um PDF com um certificado digital que possui senha.

vbuch commented 3 years ago

Yeah, @kevinbeal 's way is not what @chayakornjj is looking for. Passphrase is the password of the P12, not one in the PDF.

chayakornjj commented 3 years ago

Thanks guys seem like passphrase is for P12 file password not for PDF password.

KristophrAlves commented 2 years ago

Does this work?

signer.sign(pfBuffer, p12Buffer, { passphrase: "your-password" })

it helped me, thanks!