Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF with SSL doesn't use any certifacte and fails
    text
    copied!<p>I have created a WCF with several calls and I want to protect it with Transport security so it'll go over SSL.</p> <p>So I configured SSL in webmatrix since I'm using VS2012 + IIS Express like you can see below. <img src="https://i.stack.imgur.com/EJtGG.png" alt="HTTPs configured in Webmatrix on port 44330"> <em>HTTPs configured in Webmatrix on port <strong>44330</strong>.</em></p> <p>I updated my Web.config to support one endpoint with metadata on HTTPS and transportsecurity.</p> <pre><code>&lt;system.serviceModel&gt; &lt;services&gt; &lt;service name="Counter" behaviorConfiguration="Behavior"&gt; &lt;endpoint address="https://localhost:44330/Counter.svc" binding="wsHttpBinding" bindingConfiguration="HTTPsBinding" contract="ICounter"&gt; &lt;/endpoint&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name="HTTPsBinding"&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="None" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="Behavior"&gt; &lt;serviceMetadata httpGetEnabled="false" httpsGetEnabled="true" httpsGetUrl="" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; </code></pre> <p></p> <p>Now when I run this in the browser it points me to the metadata at the HTTPS address like you can see below. <img src="https://i.stack.imgur.com/drdK6.png" alt="HTTP works but HTTPs fails"> <em>HTTP works but HTTPs fails.</em></p> <p>And here is the problem, it doesn't use any certificate and I don't see anything. <img src="https://i.stack.imgur.com/rr6kw.png" alt="&quot;This page can&#39;t be displayed&quot; without any certificate being used."> <em>"This page can't be displayed" <strong>without</strong> any certificate being used.</em></p> <p>How do I fix this or what am I doing wrong?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload