Open dody87 opened 3 years ago
Hi @dody87!
Thank you for opening the issue.
Is it possible to send us the .p12 certificate for testint purposes?
Hi @dody87!
Thank you for opening the issue.
Is it possible to send us the .p12 certificate for testint purposes?
Thanks to you, sure! I will send you via email.
@dody87 i think the problem occours when you have a cert with special / utf8 characters (for example OU=Oficina Nacional de Tecnologías de Información).
We're working on it, but in the meantime you can try to create a cert without utf-8 chars in it and use that as a signature.
@dody87 i think the problem occours when you have a cert with special / utf8 characters (for example OU=Oficina Nacional de Tecnologías de Información).
We're working on it, but in the meantime you can try to create a cert without utf-8 chars in it and use that as a signature.
Thanks, Csaba, I will ask them to provide me a new one without these special characters and will back to you with some news.
I've tried with no special characters and it's the same issue.
Hi I have the same problem. Tested with two certificates one with special characters and one without. The certificate with special characteres doesn't work.
Do you have some news ? Thanks
I think that the node-forge dependency is not handling special chars correctly. Because both of us (me and @pankucsi) have a full time job, we have limited time to investigate problems, and this ones seems to be a more complex one, but we're working on it.
Thank you for your patience folks!
Hi! I'm having a similar problem. Acrobat says the certificate has "invalid policy constrains". LibreOffice, however, says the document is partially signed, and that the certificate is all good.
No one found a solution yet?
@dody87 what type of certificate you using? issue might likely be with type of p12 you using.
Hi, I had faced with this issue, pls try to downgrade node-forge
to exact version 0.10.0.
I've tried with several p12 certificates and when I sign via my Nodejs approach it returns an invalid signature on Adobe.
However, signing just with Adobe the signature seems to be valid (just with a warning).
` "use strict" const sign = require('pdf-signer') const fs = require('fs')
`
Thanks.