Freigeben über


How to sign an InfoPath form template with VeriSign certificate?

VeriSign code-signing certificate comes as 2 files including 1 certificate file (.spc) and 1 private key file (.pvk). The following describes what we had to go through at my customer to digitally sign the InfoPath form template which has the Full Trust level set.

1. Download pvk2pfx.exe tool and run the tool to generate pfx file

https://msdn2.microsoft.com/en-us/library/aa906332.aspx

pvk2pfx -pvk mypvkfile.pvk -pi mypasswd -spc myspcfile.spc -pfx mypfxfile.pfx -f

2. Import pfx file into Current User's Personal Certificate store

Start->Run, mmc

From File, select add/remove snap-in

Add Certificates, when prompted, select Current user account

In the Personal node, select Certificates

In the details pane, select All Tasks->Import, go through the wizards to import the pfx file from step 1 and install to Personal store.

Now the VeriSign certificate should appear in the Personal Certificates store.

3. Sign the InfoPath form template

Open the form template in design mode.

From tools->Form Options->Security and Trust

Select Full Trust and Check Sign the form template

Click Select Certificate, now you should see the VeriSign certificate. Select it and click OK.

4. Republish the form template to the SharePoint form library.

5. Open the form from within SharePoint form library as the end user and now you should be prompted with warning about the publisher. Check "Always trust documents from this publisher" and click Open. The form should open.

Comments

  • Anonymous
    February 20, 2009
    My certificate appears under the Personal Certificates store (Current User -> Personal), BUT it does not appear in the list in InfoPath when I go to tools->Form Optoins->Security and Trust and click "Select Certificate". It is a Thawte Code Signing Certificate. Any ideas?  I have been fighting this all day. thanks, Mark

  • Anonymous
    December 13, 2010
    mrackley - I have the same issue did you ever resolve this issue?

  • Anonymous
    April 06, 2011
    same here, no love when trying to add the cert.

  • Anonymous
    April 06, 2011
    I have the same issue. Does ANYONE know how to fix this? Certificates?? I hate them :)

  • Anonymous
    May 22, 2012
    I have posted instructions on my blog for  aThawte certificate but it would be the same process for any other third party certificate - this especially deals with the problem of the imported certificate not appearing in the Personal store when in InfoPath, but also, covers some of the other pitfalls of this process. Go to www.office365oz.blogspot.com.au