none
Develop a custom signature provider for digitally signing the documents RRS feed

  • Question

  • Hi,

    I need to develop a custom signature provider for digitally signing the documents, to multiple custom smart cards.

    Please help, as it is very urgent for me.

    thanks

    vinay

    Monday, May 14, 2012 2:31 AM

All replies

  • Hi,

    I need to develop a custom signature provider for digitally signing the documents, to support custom smart cards.

    Please help, as it is very urgent for me.

    thanks

    vinay

    Monday, May 14, 2012 7:30 AM
  • Hi,

    I need to develop a custom signature provider for digitally signing the documents, to support custom smart cards.

    Please help, as it is very urgent for me.

    thanks

    vinay

    Monday, May 14, 2012 10:34 AM
  • Hi vinaykumar.t,

    Which kind of document you will sign?

    Best Regards,

    T.X.

    Tuesday, May 15, 2012 1:30 AM

  • Hi,

    Actually, I need to sign word documents using a certificate stored in smart card. There is a PKI applet running in the smart card, which can Sign, Encrpt and Decrypt any byte array. And there is a library through which we can communicate with this applet inside the card. But smart card will never expose its private key outside.

    I read from other forums that, we can develop Signature provider to sign documents.

    private void ThisAddIn_Startup(object sender, System.EventArgs e)
      {
       Word.Application wordApp = this.Application;
       Word.Document doc = wordApp.ActiveDocument;
       object sigID = "{00000000-0000-0000-0000-000000000000}";
       
       Office.Signature sig = doc.Signatures.AddSignatureLine(sigID);
       sig.Setup.SuggestedSigner = "ddd";
       sig.Setup.SuggestedSignerEmail = "kk@gmail.com";
       sig.Setup.SuggestedSignerLine2 = "sadfas";
          
       sig.Sign();
       
       doc.Signatures.Commit();
       MessageBox.Show(doc.Signatures.Count.ToString());
    }

    Instead of the sigID = "{00000000-0000-0000-0000-000000000000}";, i want to register my own custom signature provider to sign word documents.

    Please help me resolving this issue.

    Regards

    Vinay

    Tuesday, May 15, 2012 6:23 PM