Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is a really nice article about <a href="http://www.remondo.net/using-ssl-transport-security-wcf-basichttpbinding/" rel="nofollow noreferrer">just that</a> and a <a href="https://stackoverflow.com/questions/6028033/how-can-i-use-ssl-encryption-in-wcf">nice post on Stack here</a>.</p> <p>The key will be within your <code>Config</code> file.</p> <pre><code>&lt;system.serviceModel&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="BasicSecure"&gt; &lt;security mode="Transport" /&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service name="WcfServiceLibrary.Echo.EchoService"&gt; &lt;endpoint address="https://localhost:8888/EchoService/" binding="basicHttpBinding" bindingConfiguration="BasicSecure" contract="WcfServiceLibrary.Echo.IEchoService"&gt; &lt;identity&gt; &lt;certificateReference storeName="My" storeLocation="LocalMachine" x509FindType="FindByThumbprint" findValue="f1b47a5781837112b4848e61de340e4270b8ca06" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="http://localhost:8080/" /&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name=""&gt; &lt;serviceMetadata httpGetEnabled="true"/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt; </code></pre> <p>They thing to note here, is <code>security mode = "Transport"</code> and the <code>CertificateReference</code>. Those will be very, very important. You'll have to ensure your Ports are properly configured for this to work.</p> <p>Keep in mind also <code>wshttpBinding</code> has this encryption enabled by default. </p> <p>Good luck.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

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