title: Private key of certificate in certificate-store not readable
body: <p>I think I've got the same issue <a href="https://stackoverflow.com/questions/1386303/installing-a-certificate-in-a-msi-custom-action-doesnt-work-properly">like this guy</a>, but I wasn't as lucky as him/her since the solution provided doesn't work for me.</p>
  
  <p>The solution provided looks for files on the <code>C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys</code> (<strong>not</strong> in sub directories) and <code>C:\Users\[Username]\AppData\Roaming\Microsoft\Crypto\RSA</code> (and subdirectories)
  However since I want the setup to install the application to all users, the custom action is running under the <code>SYSTEM</code>-User, which leads the files beeing actually created in <code>C:\ProgramData\Application Data\Microsoft\Crypto\RSA\S-1-5-18</code>.</p>
  
  <p>When running an "normal" application as Admin (right click -> Run as Admin) executing exactly the same code, a file is created at <code>C:\Users\[Username]\AppData\Roaming\Microsoft\Crypto\RSA\S-1-5-21-1154405193-2177794320-4133247715-1000</code>. </p>
  
  <p>The certificate generated using the WIX custom action seems to not have a private key ("<em>The key set does not exists</em>"), while the cert generated by the "normal" application does.</p>
  
  <p>When looking at the permissions of the files, they seem to be alright, even if they differ (the working one does include the <code>SYSTEM</code> user), even after adding the <code>SYSTEM</code> one to the ("non-working")file I am not able to read the private key, same error here.</p>
  
  <p>Then I used the <a href="http://msdn.microsoft.com/en-us/library/aa717039.aspx" rel="nofollow noreferrer">FindPrivateKey</a> util the find the corresponding file but all I get is <code>"Unable to obtain private key file name"</code>.</p>
  
  <p>Ok whats going one here? Where does Windows store the private keys for certificates stored by the <code>SYSTEM</code> user? Maybe there isn't any private key file created? Why?</p>