vizicsaba89 / pdf-signer

sign pdf documents
MIT License
38 stars 33 forks source link

Fix error: invalid asymmetric cipher #48

Open ph-gomes opened 2 years ago

ph-gomes commented 2 years ago

This PR aims in fixing the error of invalid asymmetric cipher when trying to validate the generated pdf signature with some sites like: https://validator.docusign.com https://verificador.iti.gov.br

This issue is related to the additional field signingTime in the method getSigner. According to the node-forge documentation, this is an optional field, if not provided the field value will be the timestamp when the signature is realized. So its removal won't generate any side effects.

Additionally, this PR also updates the used packages to the latest versions and fixes the Date convert test.

Below we can see the validation results: docsign-validation

iti-validation

fraterblack commented 1 year ago

:+1: