<?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 - All Comments</title><link>http://blogs.technet.com/b/pki/</link><description>News and information for public key infrastructure (PKI) and Active Directory Certificate Services (AD CS) professionals</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Certutil and Certreq</title><link>http://blogs.technet.com/b/pki/archive/2013/03/08/certutil-and-certreq.aspx#3574535</link><pubDate>Fri, 24 May 2013 00:40:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3574535</guid><dc:creator>Kurt L Hudson MSFT</dc:creator><description>&lt;p&gt;Georgios, I will endeavor to improve the documentation. I agree that more examples and explanations could be added.&lt;/p&gt;
&lt;p&gt;If you are trying to actually accomplish a particular task, your best option is to post the task and details on the Security Forum (&lt;a rel="nofollow" target="_new" href="http://aka.ms/adcsforum"&gt;http://aka.ms/adcsforum&lt;/a&gt;) and then to use the Email blog author link to send me an alert on the question. We can them work with both the experts on the Forum as well as the internal experts to resolve your issues.&lt;/p&gt;
&lt;p&gt;As for the hyperlink issues: That is a software redirection issue with the publishing platform. I have already started to taking steps to resolve this problem, but it will take a couple of publishing iterations. For this one, I removed the links. In the future, they will return, but some workarounds are needed in the background.&lt;/p&gt;
&lt;p&gt;As for the certreq -submit question: A simple example of certreq usage from my Test Lab Guide is:&lt;/p&gt;
&lt;p&gt;certreq -submit A:\APP1.corp.contoso.com_IssuingCA-APP1.req&lt;/p&gt;
&lt;p&gt;That is the submission of a request from a subordinate CA for a CA signing certificate.&lt;/p&gt;
&lt;p&gt;The Certreq -submit example you mentioned in the document, I did not create, and I could not interpret without the help of the senior developer in charge of the utility and code. Here is a recap of the example:&lt;/p&gt;
&lt;p&gt;certreq -submit certRequest.req certnew.cer certnew.pfx&lt;/p&gt;
&lt;p&gt;So, we already know that the first part is a submission of a request to a CA. Then, what are the certnew.cer and certnew.pfx parts of the example command do? &lt;/p&gt;
&lt;p&gt;The response from the senior developer is as follows:&lt;/p&gt;
&lt;p&gt;=========&lt;/p&gt;
&lt;p&gt;• certnew.cer will contain the new certificate &lt;/p&gt;
&lt;p&gt;• certnew.pfx will contain an empty Pkcs7, with a bag of certs attached. The bag will contain the new cert and the full chain of CA certificates, including the root CA cert. (The .pfx extension doesn’t tell certreq to do anything differently).&lt;/p&gt;
&lt;p&gt;• If an additional filename were to be specified on the command line, it would contain the CMC Full &lt;/p&gt;
&lt;p&gt;Response: a non-empty Pkcs7 with CMC content and the same bag of certs attached, and the CMC content will be signed by the CA. The CMC content contains some additional data regarding the request: request processing result, RequestId, issued cert hash, etc.&lt;/p&gt;
&lt;p&gt;All of the output files will be base64 encoded (in ansi text format).&lt;/p&gt;
&lt;p&gt;Add in the -binary option to write binary data instead (DER encoded ASN.1).&lt;/p&gt;
&lt;p&gt;To obtain a PFX, use certreq -accept to install the certificate, and certutil -ExportPFX to export the cert and key into a PFX file (aka Pkcs12). This assumes that certreq -new was used on the same machine to create the request in the first place.&lt;/p&gt;
&lt;p&gt;==========&lt;/p&gt;
&lt;p&gt;Another warning he added, that I must endeavor to fix is:&lt;/p&gt;
&lt;p&gt;This certreq doc also has a link to &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/931351"&gt;support.microsoft.com/.../931351&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This link describes using certutil -setreg policy\EditFlags +EDITF_ATTRIBUTESUBJECTALTNAME2, which is a recipe for elevation of privilege [attack] and should not be used in any real deployment. &lt;/p&gt;
&lt;p&gt;Instead, the INF file syntax for certreq -new should be used:&lt;/p&gt;
&lt;p&gt;[Extensions]&lt;/p&gt;
&lt;p&gt;2.5.29.17 = &amp;quot;{text}dns=dns.name&amp;amp;dns=dns.name&amp;amp;…&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3574535" width="1" height="1"&gt;</description></item><item><title>re: Certutil and Certreq</title><link>http://blogs.technet.com/b/pki/archive/2013/03/08/certutil-and-certreq.aspx#3574356</link><pubDate>Thu, 23 May 2013 09:37:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3574356</guid><dc:creator>Georgios Koutepas</dc:creator><description>&lt;p&gt;- In the section Certreq -submit. &lt;/p&gt;
&lt;p&gt;The command description is &lt;/p&gt;
&lt;p&gt;CertReq [-Submit] [Options] [RequestFileIn [CertFileOut [CertChainFileOut [FullResponseFileOut]]]]&lt;/p&gt;
&lt;p&gt;There is no exact and specific description on what are CertFileOut CertChainFileOut FullResponseFileOut&lt;/p&gt;
&lt;p&gt;Some more info is supplied in the help text from certreq -submit -?&lt;/p&gt;
&lt;p&gt;You get (among other things):&lt;/p&gt;
&lt;p&gt; RequestFileOut &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Base64-encoded output file name&lt;/p&gt;
&lt;p&gt; PKCS10FileOut &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Base64-encoded PKCS10 output file name&lt;/p&gt;
&lt;p&gt; CertFileOut &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Base64-encoded X-509 file name&lt;/p&gt;
&lt;p&gt; CertChainFileOut &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Base64-encoded PKCS7 file name&lt;/p&gt;
&lt;p&gt; FullResponseFileOut &amp;nbsp; &amp;nbsp; - Base64-encoded Full Response file name&lt;/p&gt;
&lt;p&gt; PolicyFileIn &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- INF file containing a textual representation&lt;/p&gt;
&lt;p&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; of extensions used to qualify a request&lt;/p&gt;
&lt;p&gt;But it&amp;#39;s still confusing:&lt;/p&gt;
&lt;p&gt;RequestFileOut, PKCS10FileOut, &amp;nbsp;- what are they and how you specify them in the command line?&lt;/p&gt;
&lt;p&gt;CertFileOut, CertChainFileOut, FullResponseFileOut &lt;/p&gt;
&lt;p&gt;PolicyFileIn - what is this? you&amp;#39;re supposed to provide an .inf policy file with certreq -new. Why use one with certreq -submit ? In any case what is the syntax?&lt;/p&gt;
&lt;p&gt;The first (and only) example in the section&lt;/p&gt;
&lt;p&gt;certreq –submit certRequest.req certnew.cer certnew.pfx &lt;/p&gt;
&lt;p&gt;implies that CertFileOut is the .cer file (logical) and CertChainFileOut is the .pfx file. In tests, the produced .pfx file cannot be used as usual (to install the secret key etc.). Instead you get the following message: &lt;/p&gt;
&lt;p&gt;&amp;quot;Invalid Public Key Security Object File&lt;/p&gt;
&lt;p&gt;This file is invalid for use as the following: Personal Information Exchange.&amp;quot;&lt;/p&gt;
&lt;p&gt;I apologize if I have missed any basic stuff but still, these documents only provide a partial and confusing picture of certreq, while I still believe that it can prove to be a useful tool.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll be glad to provide more info to help improve things if you&amp;#39;re interested.&lt;/p&gt;
&lt;p&gt;Many thanks,&lt;/p&gt;
&lt;p&gt;Georgios&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3574356" width="1" height="1"&gt;</description></item><item><title>re: Certutil and Certreq</title><link>http://blogs.technet.com/b/pki/archive/2013/03/08/certutil-and-certreq.aspx#3574355</link><pubDate>Thu, 23 May 2013 09:36:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3574355</guid><dc:creator>Georgios Koutepas</dc:creator><description>&lt;p&gt;Dear Kurt, &lt;/p&gt;
&lt;p&gt;Thanks for providing the &amp;quot;curated&amp;quot; version of the documentation. Still, let&amp;#39;s work to make the underlying documents better. Here are some comments:&lt;/p&gt;
&lt;p&gt;Revisiting the utilities, the process which they imply and the documentation (even the command line help!), and summing up information from a number of different web pages here are some more comments:&lt;/p&gt;
&lt;p&gt;First of all, to summarize, the documents found online on certreq:&lt;/p&gt;
&lt;p&gt;A. The article on Certreq: &lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/library/cc725793.aspx"&gt;technet.microsoft.com/.../cc725793.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;B. The article on the Certreq.exe Syntax (mostly covering the .inf file syntax) - Appendix 3: &lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/en-us/library/cc736326(d=printer).aspx"&gt;technet.microsoft.com/.../cc736326(d=printer).aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;C. An additional article on How to Request a Certificate With a Custom Subject Alternative Name (SAN): &lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/en-us/library/ff625722(WS.10).aspx#BKMK_CertreqNew"&gt;technet.microsoft.com/.../ff625722(WS.10).aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This last one is the only that covers the process of manually issuing certificates from the command line, specifically:&lt;/p&gt;
&lt;p&gt;1. certreq.exe -new &amp;lt;RequestPolicy.inf&amp;gt;&amp;lt;CertificateRequest.req&amp;gt;&lt;/p&gt;
&lt;p&gt;2. certreq -submit -config &amp;quot;&amp;lt;ServerName\CAName&amp;gt;&amp;quot; &amp;quot;&amp;lt;CertificateRequest.req&amp;gt;&amp;quot; &amp;quot;&amp;lt;CertificateResponse.cer&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;3. [only if approval is required] certreq –retrieve -config &amp;quot;&amp;lt;ServerName\CAName&amp;gt;&amp;quot; &amp;lt;RequestID&amp;gt; &amp;quot;&amp;lt;CertificateResponse.cer&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;4. certreq –accept -config &amp;quot;&amp;lt;ServerName\CAName&amp;gt;&amp;quot; &amp;quot;&amp;lt;CertificateResponse.cer&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;Coming specifically to Document A (your link above). &lt;/p&gt;
&lt;p&gt;- In the section Verbs. &lt;/p&gt;
&lt;p&gt;Hyperlinks to more specific description, e.g. Certreq -submit take you to a page that says &amp;quot;This content has been moved to Certreq (&lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/library/cc725793.aspx"&gt;technet.microsoft.com/.../cc725793.aspx&lt;/a&gt;).&amp;quot;&lt;/p&gt;
&lt;p&gt;[continued below]&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3574355" width="1" height="1"&gt;</description></item><item><title>re: Certutil and Certreq</title><link>http://blogs.technet.com/b/pki/archive/2013/03/08/certutil-and-certreq.aspx#3574205</link><pubDate>Wed, 22 May 2013 18:56:58 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3574205</guid><dc:creator>Kurt L Hudson MSFT</dc:creator><description>&lt;p&gt;A new tool that our General Manager is promoting is in Beta. I thought this question would be a good one to test out the new tool: How Do I Use Certreq&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://curatedviews.azurewebsites.net/1230/how-do-i-use-certreq"&gt;curatedviews.azurewebsites.net/.../how-do-i-use-certreq&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3574205" width="1" height="1"&gt;</description></item><item><title>re: Certutil and Certreq</title><link>http://blogs.technet.com/b/pki/archive/2013/03/08/certutil-and-certreq.aspx#3574014</link><pubDate>Tue, 21 May 2013 23:28:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3574014</guid><dc:creator>Kurt L Hudson MSFT</dc:creator><description>&lt;p&gt;Sure, I found a few other examples: &lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/library/ff625722.aspx"&gt;technet.microsoft.com/.../ff625722.aspx&lt;/a&gt;, which has a section titled using CertReq that explains more. Also, the Two Tier PKI Hierarchy Test Lab Guide has some steps that illustrate the use of Certreq &lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/library/hh831348.aspx"&gt;technet.microsoft.com/.../hh831348.aspx&lt;/a&gt;. It is lacking a couple of certutil command line equivalents that I intend to add:&lt;/p&gt;
&lt;p&gt;certutil -resubmit 2&lt;/p&gt;
&lt;p&gt;cerutil -installcert A:\APP1.corp.contoso.com_corp-APP1-CA.crt&lt;/p&gt;
&lt;p&gt;start-service certsvc&lt;/p&gt;
&lt;p&gt;The above commands assume: The certificate request ID was 2, the removable media drive is A: and that the certificate that the subordinate CA is actually named APP1.corp.contoso.com_corp-APP1-CA.crt&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3574014" width="1" height="1"&gt;</description></item><item><title>re: Certutil and Certreq</title><link>http://blogs.technet.com/b/pki/archive/2013/03/08/certutil-and-certreq.aspx#3573774</link><pubDate>Tue, 21 May 2013 00:22:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3573774</guid><dc:creator>Kurt L Hudson MSFT</dc:creator><description>&lt;p&gt;Yes, you and all the users of these articles deserve some updates and more examples. I will work on it. In the meantime, please, check out:&lt;/p&gt;
&lt;p&gt;Appendix 3: Certreq.exe Syntax (&lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/library/cc736326.aspx"&gt;technet.microsoft.com/.../cc736326.aspx&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;blogs.technet.com/.../rsa-key-blocking-is-here.aspx&lt;/p&gt;
&lt;p&gt;social.technet.microsoft.com/.../3063.certutil-examples-for-managing-active-directory-certificate-services-ad-cs-from-the-command-line.aspx at the end of that article.&lt;/p&gt;
&lt;p&gt;Thanks for your feedback!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3573774" width="1" height="1"&gt;</description></item><item><title>re: Certutil and Certreq</title><link>http://blogs.technet.com/b/pki/archive/2013/03/08/certutil-and-certreq.aspx#3573626</link><pubDate>Mon, 20 May 2013 09:56:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3573626</guid><dc:creator>Georgios Koutepas</dc:creator><description>&lt;p&gt;Dear Kurt,&lt;/p&gt;
&lt;p&gt;Thank you very much for answering and sending me these useful links. I&amp;#39;ll probably be sending you more feedback to improve the documents as I further work on this. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3573626" width="1" height="1"&gt;</description></item><item><title>re: Certutil and Certreq</title><link>http://blogs.technet.com/b/pki/archive/2013/03/08/certutil-and-certreq.aspx#3573119</link><pubDate>Thu, 16 May 2013 13:43:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3573119</guid><dc:creator>Georgios Koutepas</dc:creator><description>&lt;p&gt;Dear Kurt,&lt;/p&gt;
&lt;p&gt;Recently I have been a frequent visitor to these pages. I currently manage an MS Certificate Server and I&amp;#39;m looking into ways to make the process of issuing certificates automated (rather than using the web interface) via tools like certreq and certutil. &lt;/p&gt;
&lt;p&gt;If you curate these two pages I&amp;#39;d like to point some omissions that IMHO make these tools difficult to understand and use.&lt;/p&gt;
&lt;p&gt;1. There is no description of the process that one should follow to manually issue certificates: i.e. certreq -new (using the .inf file), -submit, -retrieve&lt;/p&gt;
&lt;p&gt;2. In the certreq page, after describing certreq -submit there are examples mentioned that are never shown&lt;/p&gt;
&lt;p&gt;3. In the certreq page, when describing the .inf files there is only mention of &amp;quot;some of the possible sections&amp;quot; that can be added to an .inf file, e.g. the section [RequestAttributes] which is used to set the most useful CertificateTemplate parameter is shown in the examples but never really explained. Is there any reference document for ALL .inf sections available anywhere?&lt;/p&gt;
&lt;p&gt;These are just some of the many shortcoming that these pages have in my opinion. So, may I kindly ask you if there is any additional (and complete) documentation on these tools available.&lt;/p&gt;
&lt;p&gt;In any case, thank you very much for all your efforts,&lt;/p&gt;
&lt;p&gt;Georgios&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3573119" width="1" height="1"&gt;</description></item><item><title>re: Certutil and Certreq</title><link>http://blogs.technet.com/b/pki/archive/2013/03/08/certutil-and-certreq.aspx#3571074</link><pubDate>Tue, 07 May 2013 05:18:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3571074</guid><dc:creator>Glen Grady</dc:creator><description>&lt;p&gt;This is gold! ...and is making my life much easier. Thanks very much Kurt.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3571074" width="1" height="1"&gt;</description></item><item><title>re: Quick Check on ADCS Health Using Enterprise PKI Tool (PKIVIEW)</title><link>http://blogs.technet.com/b/pki/archive/2011/02/28/quick-check-on-adcs-health-using-enterprise-pki-tool-pkiview.aspx#3566700</link><pubDate>Sun, 14 Apr 2013 14:40:38 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3566700</guid><dc:creator>Amerk [MSFT]</dc:creator><description>&lt;p&gt;Noted and corrected&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3566700" width="1" height="1"&gt;</description></item></channel></rss>