Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing documents with iText 7 and GlobalSign DSS in .NET C#

Tags:

c#

.net

pdf

itext7

We are trying to create a document signing solution with iText (v7) and GlobalSign DSS. Does anybody have experience with this? I can't find a lot (if any) examples on this. How is one supposed to combine the API requests ("identity", "certificate_path", "timestamp", "identity/.../sign",...) with iText?

I have found some sample code, but it is in Java and uses an old version of iText (with the PdfStamper). The goal is to create LTV enabled signatures (including a visible seal), with the server certificate stored at GlobalSign's HSM.

Many thanks for any help and/or sympathy!

like image 386
johey Avatar asked Dec 13 '17 16:12

johey


2 Answers

https://github.com/SimonChris/SigningServer

I have published an open-source implementation above. The license is AGPL, as required by iText7, but you can run the program on its own server and have your main application send PDF data for signing through the REST API.

like image 191
Simon Christiansen Avatar answered Oct 24 '22 14:10

Simon Christiansen


You can find the guide for both c# and Java on https://kb.itextpdf.com/home/it7kb/examples/how-to-use-a-digital-signing-service-dss-such-as-globalsign-with-itext-7

like image 2
Pavel Chermyanin Avatar answered Oct 24 '22 13:10

Pavel Chermyanin