Creating PDF Digital signature without Bouncy Castle

View: New views
1 Messages — Rating Filter:   Alert me  

Creating PDF Digital signature without Bouncy Castle

by Tamas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear IText Experts,

I would like to put a digital signature to an existing PDF document. In all of the IText documentation I found a desctiprion about how to sign a PDF and all of the ways use Bouncy Castle classes to encrypt the document hash.

eg:

PdfStamper st = PdfStamper.CreateSignature(reader, new FileStream(this.outputPDF, FileMode.Create, FileAccess.Write), '\0', null, true);

            st.MoreInfo = this.metadata.getMetaData();
            st.XmpMetadata = this.metadata.getStreamedMetaData();
            PdfSignatureAppearance sap = st.SignatureAppearance;
           
            sap.SetCrypto(this.myCert.Akp, this.myCert.Chain, null, PdfSignatureAppearance.WINCER_SIGNED);
...
st.Close();

 I have already had an encrypted signed hash (created from the pdf document content and a MyCert.pfx) and I'd like to insert, append (I dont know where to) this existing signature to the existing PDF.

Does anybody know what should I use?

Any help would be appreciated.

Tamas