Hello to the team,

This is the description of what I am trying to do :
* I prepared a PDF for signature and I sent the digest to a provider.
* The provider signs the digest and sends me back the result.
=> I do not know how to add it into the document. I tried something but it
does not work, there is an error when opening the document in acrobat.

Maybe with the code it will be easier :
* Prepared PDF is "DeferSigningExternal" Class using only one unittest. At
the end I get the "Digest B64" that I send to the provider. I copy the date
used in this PDF for future...
* I use "DeferSigningExternalSign" to attach the signature into the PDF. As
I am using the same PDF I consider that I can restart the process on the
original PDF from scratch using the previous date, the offset is the same
because I am not changing anything. So I fix the date at the beginning in
dateInput and I set the signed hash with the answer of my provider in
digestSigned.

I probably forgot something that I did not understand yet about signatures
and all that stuffs :D. Maybe I need to add the Certificate of the user to
the PDF,... I do not know. I do not have the private key, I can get the
certificate.
This is like a prototype. Next I will try to do the same with Pades...

My provider told me that the signed hash is in PKCS#1 format using PKCS#1
v1.5 padding.

Thanks a lot for your help. I was thinking of using DSS if it is simpler...
I had a look at the testaread-sd-dss5 of MKL.


Best regards,
Fred
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to