title: WCF Authentication With SSL
body: <p>I am very new to WCF and I have created a service to be consumed via a windows mobile app using the basicHttpBinding. I am now looking at how to implement encrpytion and authenticaion and I am not getting very far. </p>
  
  <p>I have added the following to my server side service configuration (which I believe is correct):</p>
  
  <pre><code>  &lt;basicHttpBinding&gt;
      &lt;binding name="SecurityByTransport"&gt;
        &lt;security mode="TransportWithMessageCredential"&gt;
          &lt;message clientCredentialType="UserName" /&gt;
          &lt;transport clientCredentialType="Certificate" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;  
  </code></pre>
  
  <p>Now after installing a temporary certificate on my IIS instance I can navigate to my service via https. </p>
  
  <p>At this point I used visual studios built in tool for running svcutil.exe and generated my proxy, which connects just fine. </p>
  
  <p>The issue I have is in the client config, in that the endpoint reference is using http and not https. If I change this I get the following error:</p>
  
  <pre><code>The provided URI scheme 'https' is invalid; expected 'http'.
  </code></pre>
  
  <p>Which obviously I do not want.</p>
  
  <p>Also in my client config the security specified seems to be "None", is this right?</p>