title: How to access WCF WebServiceHost endpoint with HTTPS?
body: <p>I have successfully created <code>WCF self-hosted HTTP</code> web service. I use <code>webserviceHost</code> to create this service. I didn't make any changes in <code>web.config</code> file. Here is my code:</p>
  
  <p>Instance.cs:</p>
  
  <pre><code> [OperationContract, WebInvoke(Method = "GET", UriTemplate = "/getstatus/", ResponseFormat = WebMessageFormat.Json)]
      bool getstatus();
  </code></pre>
  
  <p>service.cs:</p>
  
  <pre><code> public bool getstatus()
      {
          return true;
      }
  </code></pre>
  
  <p>BindingWS.cs</p>
  
  <pre><code> void bindservice()
      {
          try
          {
              m_running = true;
              // Start the host
              m_serviceHost = new WebServiceHost(typeof(Swiper.cs), new Uri(http://localhost:8083"));
              ServiceEndpoint ep = m_serviceHost.AddServiceEndpoint(typeof(Instace.cs), new WebHttpBinding(), "");
              m_serviceHost.Open();
              while (m_running)
              {
                  // Wait until thread is stopped
                  Thread.Sleep(SleepTime);
              }
  
              // Stop the host
              m_serviceHost.Close();
          }
          catch (Exception e)
          {
              Console.WriteLine(e.Message);
              if (m_serviceHost != null)
              {
                  m_serviceHost.Close();
              }
          }
      }
  </code></pre>
  
  <p>Above code works fine to run <code>WCF</code> at <code>Htpp</code>. but how i convert it into <code>HTTPS</code>. I followes so many blogs but didn't got anything. Is it possible to do it?</p>