<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Enabling Infopath Full Trust for external office apps using internal CA Cert</title><link>https://www.infopathdev.com:443/forums/thread/68963.aspx</link><pubDate>Wed, 03 Aug 2011 18:59:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68963</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68963.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=68963</wfw:commentRss><description>&lt;p&gt;Wow. Thank you so much for sharing this info with the rest of the community!!!!&lt;/p&gt;</description></item><item><title>Enabling Infopath Full Trust for external office apps using internal CA Cert</title><link>https://www.infopathdev.com:443/forums/thread/68962.aspx</link><pubDate>Wed, 03 Aug 2011 18:52:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68962</guid><dc:creator>n0junk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68962.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=68962</wfw:commentRss><description>&lt;p&gt;I just struggled with this all morning and finally got it to work. Here is my knowledge dump. &lt;/p&gt;&lt;p&gt;&amp;nbsp;
 
  
 

 
  Normal
  0
  
  
  
  
  false
  false
  false
  
  EN-US
  X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
  
  
   
   
   
   
   
   
   
   
   
   
   
  

 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 


 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:&amp;quot;&amp;quot;;
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:&amp;quot;Times New Roman&amp;quot;;
	mso-bidi-theme-font:minor-bidi;}



&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;Infopath Full Trust &lt;/b&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;This
will allow you to put code in your infopath form (e.g. open an excel
spreadsheet from infopath) and then sign the code (Code Signing) for others with your organization to use&lt;br /&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Tun on Full trust&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;In the
developer Tab click on the Language option&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;In the
Form Options window select “Security and Trust”&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Select
“&lt;u&gt;F&lt;/u&gt;ull Trust (the form has access to files and settings on the computer)”&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Check
the box for “Sign this form template”&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Click
the select certificate button&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="mso-tab-count:2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;(see
how to create&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;cert)&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;How to create a cert&lt;/b&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin-left:.5in;"&gt;You can buy certs online or you can
use an internal Certificate Authority (CA). The scope of this guide will not
include setting up a CA.&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click Start -&amp;gt; Run -&amp;gt; type “MMC”&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Add the certificate snap-in with the “My user account”
option&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Expand Certificates -&amp;gt; Personal&lt;/p&gt;

&lt;p class="MsoNormal"&gt;In the Personal Window right click on the white space and
select “All Tasks” -&amp;gt; “Advanced Operations” -&amp;gt; “Create Custom Request”&lt;/p&gt;

&lt;p class="MsoNormal"&gt;In the Certificate Enrollment window click Next to proceed&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Highlight “Active Directory Enrollment Policy” (selected by
default) and click next &lt;/p&gt;

&lt;p class="MsoNormal"&gt;In the Template dropdown choose “Code Signing” and click
next&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click on the dropdown next to details and click on the
properties button&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Assign your cert a name in the General Tab and the click on
the Subject Tab&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Under subject select “Common Name” under Type and put your
alias under Value&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click on the Private Key tab&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click on the Cryptographic Service Provider dropdown and
make sure that “Microsoft Enhanced Cryptographic Provider v1.0 (Signature)” is
the only thing selected&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Close the dropdown for Cryptographic Service Provider and
expand the dropdown for Key Options&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Change the key size to 2048 and check the box next to “Make
private key exportable”&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click ok to close the window&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click Next back on the Certificate Enrollment window&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Assign a Name location the file and select the Binary option&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click finish to close the window&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Proceed to How to export/import a custom Certificate&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;How to export/import
a custom Certificate&lt;/b&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin-left:.5in;"&gt;After creating the custom
certificate request the request must be granted and the new cert imported to
the Personal folder. I have had the best luck doing this by exporting the cert
to a file and importing the file to the personal folder via IE&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;i&gt;Export&lt;/i&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt; &lt;/b&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;With the MMC Certificate snap-in open (see above for details
to open the snap-in), expand Certificates -&amp;gt; Certificate Enrollment Requests
(may require an “F5” refresh if the window was open at time of creation) -&amp;gt;
Certificates&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Right click on the cert in the right pane -&amp;gt; All Tasks
-&amp;gt; Export&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Select Next in the Certificate Export Wizard to proceed&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Select “&lt;u&gt;Y&lt;/u&gt;es, Export the private key” and click next&lt;/p&gt;

&lt;p class="MsoNormal"&gt;With the “Personal Information Exchange – PKCS #12 (.PFX)”
option already selected, put a check in the “Include all certifates in the
certification path if possible” box and the “Export all extended properties”
box&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;- click next&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Give your cert file a password and click next (e.g.
P@$$w0rd)&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Give the cert file a location and file name (e.g.
C:/InfopathCert.pfx) and click next and finish to complete the export&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;i&gt;Import&lt;/i&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Open Internet Explorer&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click on Tools from the top menu (may require you to press
“Alt” if the menu is hidden” -&amp;gt; “Internet options”&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click on the Content tab and click on the “&lt;u&gt;C&lt;/u&gt;ertificates”
button&lt;/p&gt;

&lt;p class="MsoNormal"&gt;In the new “Certificates” window, click on the Import button
which will start the Certificate Import Wizard &lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click next in the new window to proceed&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Select the certificate file you saved above
(C:/InfopathCert.pfx) by browsing to the folder and changing the file type drop-down to “All Files(*.*)” and then click Next&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Enter the password you created (e.g. P@$$w0rd) and check the
box to mark the key as exportable and click next&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Make sure that “Place all certificates in the following
store” is selected and the “Personal” store is entered in the textbox and click
next&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Click finish to complete the import&lt;/p&gt;

&lt;p class="MsoNormal"&gt;You should now be able to see the cert in the Infopath Cert
Selection above&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Final Tip – Don’t forget to renew the cert before the year
is up!&lt;/p&gt;</description></item></channel></rss>