title: Implementing a set of web services with WCF using https without IIS
body: <p>Trying to implement https on a WCF webservice which we are not running in IIS. Currently using the following code for each class and interface which describes and implements a service. </p>
  
  <pre><code>WSHttpBinding binding = new WSHttpBinding();
  binding.Security.Mode = SecurityMode.Transport;
  
  WebServiceHost host = new WebServiceHost(typeof(ServiceClass), "https://localhost:8085/ServiceClass");
  host.AddServiceEndpoint(typeof(IServiceClass), binding, "");
  host.Open();
  </code></pre>
  
  <p>The service starts without any exceptions, but when I try to connect a browser to :</p>
  
  <pre><code>https://localhost:8085/ServiceClass/Item?format=xml
  </code></pre>
  
  <p>I get a ERR_CONNECTION_RESET error. Additionally I hook host.Faulted and host.Closed and am not getting any error messages.</p>
  
  <p>I can't find an example anywhere of implementing WCF web service over https using basic authentication, which is what we're looking for.</p>