title: self-signed SSL certificate error: certificate has invalid digital signature
body: <p>I have a c# program and part of it creates a self-signed certificate.</p>
  
  <p>The problem is when i try to import the certificate in MMC it says "This certificate has an invalid digital signature."</p>
  
  <p>And when i try to add this certificate through command prompt using netsh http add it says:</p>
  
  <p>SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated.</p>
  
  <p>I've tried all suggestions from other questions similar to this but to no luck.
  I've also tried downloading Hotfix from Microsoft but it didnt work.</p>
  
  <p>By the way, my machine is running in Windows7-64bit.</p>