<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/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>Windows PKI blog : setup</title><link>http://blogs.technet.com/pki/archive/tags/setup/default.aspx</link><description>Tags: setup</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Using VBScript to install CA on WS2008R2 server core</title><link>http://blogs.technet.com/pki/archive/2009/09/18/using-vbscript-to-install-ca-on-server-core.aspx</link><pubDate>Fri, 18 Sep 2009 19:24:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3281976</guid><dc:creator>shawncor</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/pki/comments/3281976.aspx</comments><wfw:commentRss>http://blogs.technet.com/pki/commentrss.aspx?PostID=3281976</wfw:commentRss><description>&lt;P&gt;In my &lt;A href="http://blogs.technet.com/pki/archive/2009/09/18/automated-ca-installs-using-vb-script-on-windows-server-2008-and-2008r2.aspx" mce_href="http://blogs.technet.com/pki/archive/2009/09/18/automated-ca-installs-using-vb-script-on-windows-server-2008-and-2008r2.aspx"&gt;previous post&lt;/A&gt; I provided a script used for setup and installation of a CA using VBScript. The same script is capable of installing a CA on server core, where there is no UI available for installing. With the script and a few possible additional steps it's pretty easy to install a CA on server core with just a couple of commands in the CMD.&lt;/P&gt;
&lt;P&gt;Steps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If you need the functionality of WoW64, for example using a network HSM that needs to use 32bit binaries on the 64bit system you will need to install the WoW64 support. 
&lt;UL&gt;
&lt;LI&gt;Run "Start /w ocsetup ServerCore-WOW64" to install the WoW64 support, reboot the machine after installing this package.&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;If using an HSM or network HSM install and configure the HSM software by following the instructions provided by the HSM vendor. 
&lt;LI&gt;Use the &lt;A href="http://blogs.technet.com/pki/archive/2009/09/18/automated-ca-installs-using-vb-script-on-windows-server-2008-and-2008r2.aspx" mce_href="http://blogs.technet.com/pki/archive/2009/09/18/automated-ca-installs-using-vb-script-on-windows-server-2008-and-2008r2.aspx"&gt;setupca.vbs&lt;/A&gt; script to install the CA&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;The setupca.vbs script takes care of installing all the needed packages and files using OCSetup, since servermanagercmd is not available on the core builds.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3281976" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/pki/archive/tags/setup/default.aspx">setup</category><category domain="http://blogs.technet.com/pki/archive/tags/Certification+authority/default.aspx">Certification authority</category></item><item><title>Automated CA installs using VB script on Windows Server 2008 and 2008R2 [UPDATED]</title><link>http://blogs.technet.com/pki/archive/2009/09/18/automated-ca-installs-using-vb-script-on-windows-server-2008-and-2008r2.aspx</link><pubDate>Fri, 18 Sep 2009 16:23:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3281975</guid><dc:creator>shawncor</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/pki/comments/3281975.aspx</comments><wfw:commentRss>http://blogs.technet.com/pki/commentrss.aspx?PostID=3281975</wfw:commentRss><description>&lt;P&gt;Starting with Windows Server 2008 the CA product team introduced a set of COM objects that can be used to control the installation of CAs. Using VBScript you can quickly automate the setup and installation of a CA.Below is a script that is being used by the product team in our testing of Certificate Services. SetupCA.vbs was designed to have the functionality present in the setup UI but in an easy command line that can be used in automation. Most of the functionality of the script is fairly straight forward in just setting properties on the setup object. A couple of features, like the key/cert re-use, take a bit of code to get the setting right.&lt;/P&gt;
&lt;P&gt;All of the ICertSrvSetup COM object properties and methods are documented in the MSDN at &lt;A title=http://msdn.microsoft.com/en-us/library/bb736371%28VS.85%29.aspx href="http://msdn.microsoft.com/en-us/library/bb736371%28VS.85%29.aspx" mce_href="http://msdn.microsoft.com/en-us/library/bb736371%28VS.85%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/bb736371%28VS.85%29.aspx&lt;/A&gt;.&lt;/P&gt;
&lt;P align=left&gt;The setup script is attached to this post, simply click the link for setupca.vbs and save the file to your local system.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some example usages of the script:&lt;/P&gt;
&lt;P&gt;Install Enterprise Root CA&lt;BR&gt;Cscript setupca.vbs /ie /sn MyRootCA /sk 4096 /sp "RSA#Microsoft Software Key Storage Provider" /sa SHA256&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Install Standalone Sub CA&lt;BR&gt;Cscript setupca.vbs /it /sn MySubCA /sr MyParentCAMachine\MyRootCA /sk 384 /sp "ECDSA_P384#Microsoft Software Key Storage Provider" /sa SHA1&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Uninstall CA:&lt;BR&gt;Cscript setupca.vbs /uc&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Install Web Pages:&lt;BR&gt;Cscript setupca.vbs /iw /sr MyParentCAMachine\MyRootCA&lt;/P&gt;
&lt;P&gt;There is also a usage that lists all the parameters if you run the script without any arguments.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UPDATE: Script has been updated to include option for offline requests using new /OR switch. Example:&lt;/P&gt;
&lt;P align=left&gt;Install Enterprise Sub CA saving request to a file: 
&lt;P align=left&gt;Cscript setupca.vbs /if /sn "My Sub CA" /sp "RSA#Microsoft Software Key Storage Provider" /sk 4096 /or "c:\temp\ca.req" &lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3281975" width="1" height="1"&gt;</description><enclosure url="http://blogs.technet.com/pki/attachment/3281975.ashx" length="43690" type="application/octet-stream" /><category domain="http://blogs.technet.com/pki/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.technet.com/pki/archive/tags/setup/default.aspx">setup</category><category domain="http://blogs.technet.com/pki/archive/tags/Certification+authority/default.aspx">Certification authority</category></item><item><title>How to set up a CA with a CNG (ECC) certificate</title><link>http://blogs.technet.com/pki/archive/2008/01/23/how-to-set-up-a-ca-with-a-cng-ecc-certificate.aspx</link><pubDate>Wed, 23 Jan 2008 13:39:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2772201</guid><dc:creator>MS2065</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/pki/comments/2772201.aspx</comments><wfw:commentRss>http://blogs.technet.com/pki/commentrss.aspx?PostID=2772201</wfw:commentRss><description>&lt;P style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'; mso-ansi-language: EN-US"&gt;One of the improvements of the Windows Server 2008 Certification authority is the support for &lt;A href="http://msdn2.microsoft.com/en-us/library/aa376210(VS.85).aspx"&gt;Cryptography Next Generation (CNG)&lt;/A&gt; with &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'"&gt;Elliptic Curve Cryptography (ECC)&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'; mso-ansi-language: EN-US"&gt;.&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'; mso-ansi-language: EN-US"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'; mso-ansi-language: EN-US"&gt;I have described the CNG capabilities in my &lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=9bf17231-d832-4ff9-8fb8-0539ba21ab95&amp;amp;displaylang=en"&gt;Certificate Server Enhancements in Windows Server codename "Longhorn"&lt;/A&gt; whitepaper but after reviewing the paper recently I noticed that it does not exactly explain how to set up a new Windows Server 2008 CA with a CNG certificate.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'; mso-ansi-language: EN-US"&gt;Also, the reference provided in paragraph "Configuring setup using a CAPolicy.inf file" is outdated and refers to an invalid page. The &lt;I&gt;PKCS #1: RSA Cryptography Standard&lt;/I&gt; is now documented at &lt;A href="http://www.rsa.com/rsalabs/node.asp?id=2125"&gt;http://www.rsa.com/rsalabs/node.asp?id=2125&lt;/A&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'; mso-ansi-language: EN-US"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'; mso-ansi-language: EN-US"&gt;To set up a CA with a CNG certificate, perform the normal "Active Directory Certificate Services" setup procedure until you reach the &lt;I&gt;Configure Cryptography for CA&lt;/I&gt; wizard page. Now you have to decide which Cryptography or Key Provider is used by the CA. All providers that have a #-sign as prefix in their name represent key storage provider and can support CNG algorithms.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'; mso-ansi-language: EN-US"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'; mso-ansi-language: EN-US"&gt;Even if you don't have a requirement for a CNG certificate today, you should select a key storage provider that is supporting CNG. Luckily, the &lt;I style="mso-bidi-font-style: normal"&gt;RSA#Microsoft Software Key Storage Provider&lt;/I&gt; is the default setting so that you have greater flexibility regarding hash algorithm configuration compared to cryptographic service providers. How to change the hash algorithm for a key storage provider is described in the chapter "Configuring the Cryptographic Algorithms used by the CA" in the&lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'"&gt; &lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Lucida Sans Unicode','sans-serif'; mso-ansi-language: EN-US"&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=9bf17231-d832-4ff9-8fb8-0539ba21ab95&amp;amp;displaylang=en"&gt;Certificate Server Enhancements in Windows Server codename "Longhorn"&lt;/A&gt; whitepaper.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.technet.com/photos/pki/images/2772190/original.aspx" mce_src="http://blogs.technet.com/photos/pki/images/2772190/original.aspx"&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=2772201" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/pki/archive/tags/setup/default.aspx">setup</category></item></channel></rss>