title: Disabling httpclient ssl verification, on request level, in net 4.6
body: <p>Have a net 4.6.2 project (System.Net.Http 4.0). Have a httpclient connection that works fine when disable ssl verification, but its done using ServicePointManager.</p>
  
  <p>Had some trouble finding how to disable this on a handler / client level in 4.6.</p>
  
  <p>The following works:</p>
  
  <pre><code>ServicePointManager.ServerCertificateValidationCallback += (sender,certificate,chain,sslPolicyErrors) =&gt; true;
  var handler = new HttpClientHandler();
  var client = new HttpCLient(handler);
  </code></pre>
  
  <p>But when looking at <a href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclienthandler?view=netframework-4.6.2" rel="nofollow noreferrer">msdn documentation</a>, <strong>httpclienthandler</strong> does not seem to support ServerCertificateValidationCallback (or the 'dangerous' option)  on 4.6 (its not avaible in code, and not ClientCertificates either).</p>
  
  <p>So the question is how to disable this on client / handler / message level in 4.6?</p>