Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to stop certificate errors temporarily with WCF services
    text
    copied!<p>I am testing an early release of a WCF web service I have created. On the client side when I use VS to 'add service reference' that all works.</p> <p>But when I try to use the service I get the error,</p> <blockquote> <pre><code>Could not establish trust relationship for the SSL/TLS secure channel with authority ** </code></pre> </blockquote> <p>Where the stars represent the IP address of the server.</p> <p>Anyway on the server there is a security certificate but it has been self generated just for testing, so I am not concerned about certificate errors for the moment.</p> <p>On the client side an app.config has been generated for me,</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name="BindingName" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /&gt; &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address="***************" binding="wsHttpBinding" bindingConfiguration="BindingName" contract="***************" name="BindingName"&gt; &lt;identity&gt; &lt;servicePrincipalName value="***************" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre> <p>So what settings do I need to change to temporarily ignore certificate errors?</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