Code Signing Certificate for Admin Approved InfoPath form template

Security level for admin approved code behind InfoPath form templates should be Fully trusted. Code Signing Certificate should be used to sign fully trusted InfoPath form templates before uploading to Central Admin.

Go to File and Select ‘Form Options‘ under Advanced options

Form options

Select ‘Security and Trust‘ in the left pane

Fully Trusted Infopath

Code Signing Certificate:

You can either use a self signed certificate generated by InfoPath by selecting ‘Create Certificate‘ button or buy one certificate from Verisign or Thawte or get one generated by your company’s sub authority.

Note: Certificate generated by InfoPath has validity of only 1 month. You can use this to get started with development. But should be later replaced.

If there are multiple Code Signing Certificates available, you get the option to pick a particular one by clicking ‘Select CertificateCode Signing Certificate

Everything looks simple and straight until this point. But the  issue I had is,

The Code Signing Certificate which I imported to Certificate Store does not show up in InfoPath template

Resolution:

Here are the 2 important things:

1. When you are importing you Certificate to your Certificate Store, load the Certificate snap-in under ‘My user account‘ not ‘Computer Account. (Run -. MMC -> File -> Add/Remove Snap-in -> Select Certificates -> Select ‘My user account’)Importing certificate

2. ¬†Certificate should have a private key. Make sure that you see this on your certificate – ‘You have a private key that corresponds to this certificate’ and you have the password to enter while importing certificate.Code Signing Certificate

Once you make sure that you got both 1 & 2, certificate will show up in InfoPath. Save, Publish and upload to central admin.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

SharePoint Designer cannot display the item

You run into ‘SharePoint Designer cannot display the item’ error when you are trying to edit an existing workflow setup in Designer quite often when there is a windows update or update to .NET framework installed in your computer. In some cases it may also not allow you to create new workflows. Resolution: Clearing Designer […]

Read More

Windows security prompt. Connecting to SharePoint….

Users often run into this issue. Windows security prompt pops up every 15 minutes or so repeatedly trying to connect to SharePoint. No matter you enter credentials or cancel, user will be prompted for credentials again and again. SharePoint may not be the culprit all the time. List of things I check whenever I run […]

Read More

User with Contribute access gets access denied

Only one user with contribute access gets access denied to SharePoint site collection. Every SharePoint admin might have faced this issue atleast once. In my case, user is added to a SharePoint group with Contribute access. Access shows up as Contribute when verified through site permissions – check permission option. Every other person in the […]

Read More