title: netsh binding imported ssl certificate to port
body: <p>I've created an authority certificate and client certificate (that is signed by the first one). What I'm trying to do is to import both certificates (which I think I do with success) and then bind client certificate to port using this netsh command :</p>
  
  <pre><code>netsh http add sslcert ipport=0.0.0.0:8000 certhash=xxx appid={xxx}
  </code></pre>
  
  <p>When I create this certificates and use the command above it's done correctly. But I have to do remove/import certificates operation and in this case it fails.</p>
  
  <p>I've done some search and I found <a href="https://stackoverflow.com/questions/9641723/netsh-bind-ssl-certificate-to-port-number-failing">here</a> that maybe I have to "delete this certificate properly* from your certificate store and IIS Server cache" (by Johnydep). I don't use IIS Server (it's a self-hosted wcf service) so - have you got any ideas what should I do?</p>
  
  <p>Thanks in advance. </p>
  
  <p>EDIT :
  According to the issue-trace <a href="http://www.kozeniauskas.com/itblog/2011/03/25/ssl-certificate-add-failed-error-1312/" rel="nofollow noreferrer">here</a> ( "the certificate that you are using does not have the private key" ) I've just tried creating the authority certificate with private key in the same file but with no effect.</p>