0
I have a project in ASP.NET Core 2.0 where I am generating PDF contracts, however, I need to sign them with the company’s A1 digital certificate, only this part is missing to finish the project.
Thanks in advance for the collaboration, I’m using the component Rotary.Aspnetcore. to generate the PDF.
where is the code?
– Leandro Angelo
If you’re using this component, Rotary.Aspnetcore, to generate the PDF, I think there should already be a direct option on the component to generate a signed PDF, but I did a quick search and couldn’t find anyone talking about how to do it, so maybe the component doesn’t have that option implemented. So maybe you had to change the component code to do this...
– Pedro Gaspar
Do you have any hint of any component that does this?
– Pedro Henrique
Unfortunately, I don’t know any. But, a quick Google search brought some options, however all I saw were paid (I don’t know if this is a problem). But all cases I saw had option to test the product for a while.
– Pedro Gaspar
I understand, unfortunately it is a problem yes, I need an Open Source tool, I will try to find something else, or some way to sign. Thank you
– Pedro Henrique
With iTextSharp is possible, but the answer is in English. In the reply uses the Windows Certificate Store, just load from A1 (file) instead of store: https://stackoverflow.com/questions/14997118/how-do-i-sign-a-pdf-document-using-a-certificate-from-the-windows-cert-store
– Anderson Matos