title: System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority
body: <p>I am getting below error while trying to call webservice through UAT environment. However on my local it is working properly.  I see some comment as it might be due to dummy cert but could not get the answer so posting it here . Also i am beginner to WCF . 
  Please let me know how can i fix this . </p>
  
  <p>what will be impact on production if i trust all by </p>
  
  <pre><code>//Trust all certificates
          System.Net.ServicePointManager.ServerCertificateValidationCallback =
              ((sender, certificate, chain, sslPolicyErrors) =&gt; true);
  </code></pre>
  
  <p>error says -
  System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority . ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.</p>
  
  <p>binding is </p>
  
  <pre><code>  &lt;basicHttpBinding&gt;
      &lt;binding name="GLEditServiceSOAP" closeTimeout="00:01:00" openTimeout="00:01:00"
        receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
        bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
        maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
        messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
        useDefaultWebProxy="true"&gt;
        &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
          maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
        &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="None" proxyCredentialType="None"
            realm="" /&gt;
          &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
  </code></pre>
  
  <p>also wonder how it is working on my localhost.</p>