pdf-signer icon indicating copy to clipboard operation
pdf-signer copied to clipboard

Fix error: invalid asymmetric cipher

Open ph-gomes opened this issue 2 years ago • 1 comments

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

ph-gomes avatar Sep 27 '22 10:09 ph-gomes

:+1:

fraterblack avatar Oct 28 '22 17:10 fraterblack