title: C# ignore certificate errors via config file
body: <p>I know you can ignore certificate errors by using following line in your code:</p>
  
  <pre><code>ServicePointManager.ServerCertificateValidationCallback += ( sender, cert, chain, sslPolicyErrors ) =&gt; true;
  </code></pre>
  
  <p>However, I am wondering if there is a way to do that via web.config file. Reason for that is b/c we can specify proxy server in web.config via defaultProxy and any HttpClient is going to use the proxy. The issue comes when we are specifying Fiddler as the proxy and enabling traffic decryption so we can debug calls to 3rd party services. However, in such cases we will get a certificate error which could be ignored by using that line but I would like to do it without recompiling our service.</p>