Closed GuasaPlay closed 3 years ago
Take a look at this file. The issue is that they are using ES6 import/exports which end up exporting everything into the .default
property.
To correctly import/use the module try:
const signer = require('node-signpdf').default;
signer.sign(...)
@NoahCardoza thanks it already worked. But now when I go to check if the PDF is signed it shows me that:
The signature is NOT VALID
And then if I go to the details of the signature it shows me the following: The signature was created with Not available Hash algorithm: SHA256 Signature algorithm: rsaEnvryption-pcks1.
By the way, this signature is issued by the government of my country and I suppose it is valid
Maybe you know something about this?
Interesting... Try generating your own psk12 store and see if that works?
This issue has been automatically marked as stale because it has not had activity in the past 90 days. It will be closed if no further activity occurs. Thank you for your contributions.
Hi everyone, I am trying to implement this package following the example here, but I really don't know how to do it. I am a newbie in this topic, please help me how could I do it. This is my code:
And this is the error it shows me:
@NoahCardoza, maybe you can help me with this?