title: Using netsh, bind an SSL certificate to a port number is failing
body: <p>I have followed the instructions in <em><a href="http://www.codeproject.com/Articles/24027/SSL-with-Self-hosted-WCF-Service">SSL with Self Hosted WCF Service</a></em>. When I am trying to bind the certificate on Windows 7 using netsh as described in <a href="http://msdn.microsoft.com/en-us/library/ms733791.aspx">How to: Configure a Port with an SSL Certificate.</a>, it is failing as follows.</p>
  
  <h3>In Windows <a href="http://en.wikipedia.org/wiki/Windows_PowerShell">PowerShell</a></h3>
  
  <pre><code>PS C:\&gt; netsh http add sslcert ipport=0.0.0.0:8732 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF}
  Bad numeric constant: 224.
  At line:1 char:104
  + netsh http add sslcert ipport=0.0.0.0:8732 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={001 &lt;&lt;&lt;&lt; 12233-4455-6677-8899-AABBCCDDEEFF}
  + CategoryInfo          : ParserError: (224:String) [], ParentContainsErrorRecordException
  + FullyQualifiedErrorId : BadNumericConstant
  </code></pre>
  
  <h3>In a command prompt</h3>
  
  <pre><code>C:\&gt;netsh http add sslcert ipport=0.0.0.0:8732 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF}
  
  SSL Certificate add failed, Error: 1312
  A specified logon session does not exist. It may already have been terminated.
  </code></pre>