<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Comment Feed for Generating my own Software Publishing Certificate (TechOff on Channel 9)</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/forums/techoff/13583-generating-my-own-software-publishing-certificate/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Comment Feed for Generating my own Software Publishing Certificate (TechOff on Channel 9)</title><link>http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/</link></image><description>Generating my own Software Publishing Certificate</description><link>http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/</link><language>en-us</language><pubDate>Fri, 23 Jul 2004 13:54:29 GMT</pubDate><lastBuildDate>Fri, 23 Jul 2004 13:54:29 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Re: Generating my own Software Publishing Certificate</title><description>&lt;P&gt;Hey, I have a success. And in part thanks to the original MS guy in the MSDN managed newsgroup. So I owe him an apology.&lt;BR&gt;&lt;BR&gt;Instead of browsing the Cert Authority website from &lt;a href="http://localhost"&gt;http://localhost&lt;/a&gt; whilst logged on as the admin. I ended up granting my regular account 'Enroll' permissions for Code Sign template and browsing the web site from a client PC logged in with regular account. Now the 'mark keys as exportable' check box is enabled.&lt;BR&gt;&lt;BR&gt;For the benefit of anybody else who struggling to figure this out I have documented what I needed to do below:&lt;BR&gt;&lt;BR&gt;After Certificate Services is installed on Windows 2003 server.&lt;/P&gt;
&lt;P&gt;Log on to server as admin.&lt;BR&gt;Run up the Certificate Templates snap-in.&lt;BR&gt;Right-Click the Code Signing template-&amp;gt;Properties-&amp;gt;Security Tab-&amp;gt; Enable 'enroll' permission for whoever will need to to request a Code-Signing cert. Maybe use 'Authernticate Users' group&lt;/P&gt;
&lt;P&gt;Run up the Certification Authority snap-in.&lt;BR&gt;Right-Click Certificate Templates-&amp;gt;New-&amp;gt;Certificate Template to Issue -&amp;gt; Code Signing&lt;/P&gt;
&lt;P&gt;Enable IIS, ASP pages, and the CertSrv virtual directory if any of this is switched off/locked down.&lt;/P&gt;
&lt;P&gt;From the client desktop and account of user requiring cert.&lt;BR&gt;Browse to &lt;a href="http://&lt;server"&gt;http://&amp;lt;server&lt;/a&gt; name&amp;gt;/CertSrv&lt;/P&gt;
&lt;P&gt;-&amp;gt; Request a certificate&lt;BR&gt;-&amp;gt; Advanced Certificate request&lt;BR&gt;-&amp;gt; Create and submit a request to this CA&lt;/P&gt;
&lt;P&gt;Type of cert needed:&lt;BR&gt;&amp;nbsp;&amp;nbsp; code signing cert&lt;/P&gt;
&lt;P&gt;Key Option:&lt;BR&gt;&amp;nbsp;&amp;nbsp; Create new keyset checked&lt;BR&gt;&amp;nbsp;&amp;nbsp; CSP: Microsoft enhanced RSA and AES Crypto provider ( should be the bottom option )&lt;BR&gt;&amp;nbsp;&amp;nbsp; KeyUsage: signature&lt;BR&gt;&amp;nbsp;&amp;nbsp; KeySize: 2048 ( or 4096 )&lt;BR&gt;&amp;nbsp;&amp;nbsp; Check automatic key container name&lt;BR&gt;&amp;nbsp;&amp;nbsp; check - mark keys as exportable&lt;BR&gt;&amp;nbsp;&amp;nbsp; check - export keys to file ( give the .pvk file )&lt;BR&gt;&amp;nbsp;&amp;nbsp; check - enable strong key protection&lt;/P&gt;
&lt;P&gt;Additional Options:&lt;BR&gt;&amp;nbsp;&amp;nbsp; Request format: cmc&lt;BR&gt;&amp;nbsp;&amp;nbsp; hash algo: sha1&lt;/P&gt;
&lt;P&gt;Hit submit&lt;BR&gt;pvk file should be downloaded to filepath specified&lt;BR&gt;and you should get a pending request page&lt;/P&gt;
&lt;P&gt;Log back into server as admin&lt;BR&gt;Run up the Certification Authority snap-in.&lt;BR&gt;Pending Requests -&amp;gt; Right-click on freshly waiting cert-&amp;gt;Issue&lt;/P&gt;
&lt;P&gt;From the client desktop and account of user requiring cert.&lt;BR&gt;Browse to &lt;a href="http://&lt;server"&gt;http://&amp;lt;server&lt;/a&gt; name&amp;gt;/CertSrv&lt;BR&gt;-&amp;gt; View the status of pending certificate request&lt;BR&gt;Download the waiting cert&lt;/P&gt;
&lt;P&gt;Use cert2spc.exe to generate spc file.&lt;BR&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfsoftwarepublishercertificatetesttoolcert2spcexe.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfsoftwarepublishercertificatetesttoolcert2spcexe.asp&lt;/a&gt;&lt;/P&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13870</link><pubDate>Fri, 23 Jul 2004 13:54:29 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13870</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/13870/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hey, I have a success. And in part thanks to the original MS guy in the MSDN managed newsgroup. So I owe him an apology.Instead of browsing the Cert Authority website from http://localhost whilst logged on as the admin. I ended up granting my regular account 'Enroll' permissions for Code Sign&amp;#8230;</evnet:previewtext><dc:creator>Simo</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/13870/Trackback.aspx</trackback:ping></item><item><title>Re: Generating my own Software Publishing Certificate</title><description>Ok, I still come off the rails when choosing the Crypto provider (CSP) and Marking keys as exportable.&lt;BR&gt;&lt;BR&gt;Certs were being issued automaticaly because I had enabled this option in the Certification Authority snap-in.&lt;BR&gt;&lt;BR&gt;Looking at my Code Signing cert template (Cert Templates&amp;nbsp;snap-In), switching to the second tab of the property page (Request Handeling) the MS RSA &amp;amp; AES Crypto Provider is not enabled along with 'allow private key&amp;nbsp;to be exported'.&lt;BR&gt;&lt;BR&gt;I guess this is why the options are not available when I'm generating a cert from this template.&lt;BR&gt;&lt;BR&gt;So... I created a new cert template based on the default Code Signing template and enabled the appropriate CSP and checked 'allow private key to be exported'. Finaly saved this as a new template.&lt;BR&gt;&lt;BR&gt;The final stage to make my Cert Template available is to enable it in the Certification Authority (CA) snap-in -&amp;gt; Certificate Templates -&amp;gt; Right-Click -&amp;gt; New -&amp;gt; Certificate Template to Issue. But my new template can not be selected.&lt;BR&gt;&lt;BR&gt;I think it can't be selected because the new template has a minimum supported CA of Windows 2003, Enterprise Edition. I have only std edition Win2003 available to me.&lt;BR&gt;&lt;BR&gt;So I think the options for me are:&lt;BR&gt;&lt;BR&gt;1. figure out why the default Code Signing template in my installation is not enabled for&amp;nbsp;RSA/AES CSP&amp;nbsp;and private key export.&lt;BR&gt;&lt;BR&gt;or &lt;BR&gt;&lt;BR&gt;2. Figure out how to create a new template with a minimum supported CA of Windows 2003, Std Edition. Interestingly enough the default Code Signing Cert template has a min CA authority of Win2000</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13853</link><pubDate>Fri, 23 Jul 2004 08:42:33 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13853</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/13853/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Ok, I still come off the rails when choosing the Crypto provider (CSP) and Marking keys as exportable.Certs were being issued automaticaly because I had enabled this option in the Certification Authority snap-in.Looking at my Code Signing cert template (Cert Templates&amp;nbsp;snap-In), switching to the&amp;#8230;</evnet:previewtext><dc:creator>Simo</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/13853/Trackback.aspx</trackback:ping></item><item><title>Re: Generating my own Software Publishing Certificate</title><description>&lt;P&gt;cool, we're getting close though. &lt;BR&gt;&lt;BR&gt;Could you try these settings in the cert request web-page please. i get a .pvk etc successfully from this:&lt;BR&gt;&lt;BR&gt;Type of cert needed:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;code signing cert&lt;BR&gt;&lt;BR&gt;Key Option:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Create new keyset checked&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CSP: Microsoft enhanced RSA and AES Crypto provider ( should be the bottom option )&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;KeyUsage: signature&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;KeySize: 2048 ( or 4096 )&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Check automatic key container name&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;check - mark keys as exportable ( somethign is badly wrong if this is greyed out )&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;check - export keys to file ( give the .pvk file )&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;check - enable strong key protection&lt;BR&gt;&lt;BR&gt;Additional Options:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Request format: cmc&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;hash algo: sha1&lt;BR&gt;&amp;nbsp;&lt;BR&gt;not sure what's wrong if this doesnt work but let me know and we can try a couple of other things...&lt;BR&gt;&lt;BR&gt;It looks like your cert wasn't correctly issued btw. Did it show up in the issued section in the certsrv.msc mmc snapin?&lt;BR&gt;&lt;BR&gt;I would expect "view the status of pending request" to have the cert there after it was issued, so maybe its worth checking it really is issued? &lt;BR&gt;&lt;BR&gt;"download a ca cert" isnt what you need btw, it's for download the cert of another certificate authority, and for updating cert revocation lists etc.&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13841</link><pubDate>Fri, 23 Jul 2004 04:07:50 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13841</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/13841/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>cool, we're getting close though. Could you try these settings in the cert request web-page please. i get a .pvk etc successfully from this:Type of cert needed:&amp;nbsp;&amp;nbsp;&amp;nbsp;code signing certKey Option:&amp;nbsp;&amp;nbsp;&amp;nbsp;Create new keyset checked&amp;nbsp;&amp;nbsp;&amp;nbsp;CSP: Microsoft enhanced RSA and&amp;#8230;</evnet:previewtext><dc:creator>spod</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/13841/Trackback.aspx</trackback:ping></item><item><title>Re: Generating my own Software Publishing Certificate</title><description>ok I re-read what you told me to do and have made major progress.&lt;BR&gt;&lt;BR&gt;My mistake was that that i wasn't browsing the certserv site from &lt;a href="http://localhost"&gt;http://localhost&lt;/a&gt; on the Certificate services box and was using my std. read email/browse the web account. doh doh doh. Sorry.&lt;BR&gt;&lt;BR&gt;So I'm now offerd the chance to create a Code Signing certificate.&lt;BR&gt;&lt;BR&gt;But....&lt;BR&gt;&lt;BR&gt;Am not offered RSA/AEs as a provider, so am opting for MS Enhanced Cryptographic.&lt;BR&gt;&lt;BR&gt;The "Mark keys as exportable" check box is disabled, am guessing this is a big issue. So i can't check it.&lt;BR&gt;&lt;BR&gt;The Request formats on offer are CMC &amp;amp; PKCS10, not sha512&lt;BR&gt;&lt;BR&gt;When I make the request the certificate is automaticaly issued. So i don't have to authorise the requests.&lt;BR&gt;&lt;BR&gt;When I browse "View the status of pending request" There are no certs on offer. Instead I can browse Download a CA Certificate. But my Code signing Cert is not there, just something that appears to be the root certificate for the domain.&lt;BR&gt;&lt;BR&gt;However, the code signing cert was issues and i managed to export from the Certificates MMC for the logged on user. But I was not allowed to export the private key.&lt;BR&gt;&lt;BR&gt;SO i've still screwed up somewhere.</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13789</link><pubDate>Thu, 22 Jul 2004 17:40:05 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13789</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/13789/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>ok I re-read what you told me to do and have made major progress.My mistake was that that i wasn't browsing the certserv site from http://localhost on the Certificate services box and was using my std. read email/browse the web account. doh doh doh. Sorry.So I'm now offerd the chance to create a&amp;#8230;</evnet:previewtext><dc:creator>Simo</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/13789/Trackback.aspx</trackback:ping></item><item><title>Re: Generating my own Software Publishing Certificate</title><description>&lt;P&gt;That's strange. I just re-set up a cert server on one of my boxes to confirm that what i said worked, and it gives me all the choices on a fresh install also..&lt;BR&gt;&lt;BR&gt;Are you an admin on the box? Is this a root standalone CA that you've installed...this is all Windows 2003&amp;nbsp;right?&lt;BR&gt;&lt;BR&gt;if you go to &lt;a href="http://localhost/certsrv"&gt;http://localhost/certsrv&lt;/a&gt; hit "request a certificate", hit "advanced certificate request", hit "create and submit a request to this CA" do you only get the two choices in the certificate type dropdown box? There should be about 7 or 8 there...&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13763</link><pubDate>Thu, 22 Jul 2004 15:47:04 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13763</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/13763/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>That's strange. I just re-set up a cert server on one of my boxes to confirm that what i said worked, and it gives me all the choices on a fresh install also..Are you an admin on the box? Is this a root standalone CA that you've installed...this is all Windows 2003&amp;nbsp;right?if you go to&amp;#8230;</evnet:previewtext><dc:creator>spod</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/13763/Trackback.aspx</trackback:ping></item><item><title>Re: Generating my own Software Publishing Certificate</title><description>hey thanks for replying...&lt;BR&gt;&lt;BR&gt;The problem i've got is making the Code Signing Cert appear in the Cert Type Combo. At the moment I'm only offered a choice of Basic EFS or User</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13712</link><pubDate>Thu, 22 Jul 2004 07:31:12 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13712</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/13712/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>hey thanks for replying...The problem i've got is making the Code Signing Cert appear in the Cert Type Combo. At the moment I'm only offered a choice of Basic EFS or User</evnet:previewtext><dc:creator>Simo</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/13712/Trackback.aspx</trackback:ping></item><item><title>Re: Generating my own Software Publishing Certificate</title><description>Hi Simo&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Have you already set up certificate services on a machine. I'm assuming you have in the following...let me know if not...&lt;BR&gt;&lt;BR&gt;If so you should be able to browse to &lt;a href="http://localhost/certsrv"&gt;http://localhost/certsrv&lt;/a&gt; on the machine with certificate services installed.&lt;BR&gt;&lt;BR&gt;assuming this works&amp;nbsp;then follow the wizard on that page:&lt;BR&gt;the personal info can be whatever...&lt;BR&gt;Choose code signing cert in the certificate type combo&lt;BR&gt;Choose a suitable CSP and key length ( 2048 ms rsa/aes enhanced provider maybe? )&lt;BR&gt;mark the keys as exportable via the checkbox and strongly protect the private keys.&lt;BR&gt;&lt;BR&gt;request format shouldn't matter. sha512 it if u are paranoid...&lt;BR&gt;&lt;BR&gt;Hit submit and you should get a pending request page&lt;BR&gt;&lt;BR&gt;Now you have to play the role of the certserver and accept the certificate request.&lt;BR&gt;&lt;BR&gt;So&amp;nbsp;run the certificate services mmc snapin on the same machine( start, run, certsrv.msc )&lt;BR&gt;&lt;BR&gt;there should be a tab underneath your CA that says pending requests. Go to this and right hand mouse on the cert that's ( hopefully ) there and click issue..&lt;BR&gt;&lt;BR&gt;the cert is now issued. One last step...&lt;BR&gt;&lt;BR&gt;Browse back to &lt;a href="http://localhost/certsrv"&gt;http://localhost/certsrv&lt;/a&gt; and click on the link that says "view the status of a pending request". Click on the cert there and click download. This will give you a valid cert that u can use for code signing...&lt;BR&gt;&lt;BR&gt;Let me know if that's enough info to go on...it is kind of long winded, but ok once you've been through it once... :-)&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;edit:&lt;BR&gt;you can gen spc files from an exported .cer cert using this utility&lt;BR&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfsoftwarepublishercertificatetesttoolcert2spcexe.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfsoftwarepublishercertificatetesttoolcert2spcexe.asp&lt;/a&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13710</link><pubDate>Thu, 22 Jul 2004 07:14:11 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/13583-Generating-my-own-Software-Publishing-Certificate/?CommentID=13710</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/13710/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi SimoHave you already set up certificate services on a machine. I'm assuming you have in the following...let me know if not...If so you should be able to browse to http://localhost/certsrv on the machine with certificate services installed.assuming this works&amp;nbsp;then follow the wizard on that&amp;#8230;</evnet:previewtext><dc:creator>spod</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/13710/Trackback.aspx</trackback:ping></item></channel></rss>