title: How to create a Private-Key exportable self-signed certificate?
body: <p>I've tried the below template which creates the certificate and installs it in the localmachine Personal certificate store:</p>
  
  <pre><code>makecert -sk &lt;&lt;UniqueKeyName&gt;&gt; -iv RootCATest.pvk -n "CN=&lt;&lt;MachineName&gt;&gt;" -ic RootCATest.cer -sr localmachine -ss my -sky exchange -pe 
  </code></pre>
  
  <p>RootCATest.pvk is the private key of the root CA certificate.
  RootCATest.cer is the public key of the root CA certificate (used for issuing certificates).</p>
  
  <p>When I view it from the MMC and right click on it, properties -> export, then its private key export option is grayed out.</p>
  
  <p>How to create a Private-Key exportable self-signed certificate?</p>