I need to digitally sign a PDF previously created.
This PDF is being created through a Web Service that uses Office Interop to generate the from an Office Template.
I already have access to the ICP Brasil Certificate , it was purchased through SERASA or SERPRO) but I can not find a reference how to do it this without having to abandon all the existing PDF creation routine.
Posts I checked but could not adapt myself:
- Delphi using COM
- Signing * .jar with another type of certificate
- PHP but with methods that I do not know in .NET and I would not be able to adapt it to my understanding.
- Unsupported Java library port .
- Via the command line with OpenSSL but it's another something I have no experience with.
In short, you already have PDF generation generation routine, I just want to subscribe. Anyone have any tips? I have no experience with this piece of information security.
[Edited]
Ideally, you should not have to use a paid library since you are using Office (paid) to generate PDF . I have access to the PDF generator source if the change has to be there.