title: Why do I keep getting a failed when trying to make a .cer for testing?
body: <p>I'm trying to make a certificate for testing and I am using this site <em><a href="http://msdn.microsoft.com/en-us/library/ff699202.aspx" rel="nofollow noreferrer">How to: Create Your Own Test Certificate</a></em> as a tutorial on how to but when it comes time to enter in the password after you create the password it says failed in the command prompt why is that?</p>
  
  <p>What I've done:</p>
  
  <p>First, I open a command prompt and type in:</p>
  
  <pre><code>  cd C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin
  </code></pre>
  
  <p>Second, I type in</p>
  
  <pre><code>  makecert -sv myPrivateKeyFile.pvk -n "TestCert" myCertFile.cer -b 01/01/2011 -e 01/01/2015 -r
  </code></pre>
  
  <p>Then I create the password then enter the password on the sencond pop up box and then it says failed in command prompt</p>
  
  <p>When I enter in this again, the popup is asking for the password pops up first this time, and I enter it in and it says:</p>
  
  <blockquote>
    <p>Error: CryptCertStrToNameW failed => 0x80092023 (-2146885597)</p>
  </blockquote>
  
  <pre><code>    makecert -sv myPrivateKeyFile.pvk -n "TestCert" myCertFile.cer -b 01/01/2011 -e 01/01/2015 -r
  </code></pre>