title: Xamarin.Forms HTTPS and Self Signed Certificate Issue
body: <p>I am using Xamarin.Forms and my priority is UWP. I am trying to make a post request via <code>System.Net.Http.HttpClient</code> and my code looks like this</p>
  
  <pre><code>public async Task&lt;LoginResponse&gt; Login(User user)
  {
      HttpClient client = await GetClient();
  
      var response = await client.PostAsync(Url, new StringContent(JsonConvert.SerializeObject(user), Encoding.UTF8, "application/json"));
      var mobileResult = await response.Content.ReadAsStringAsync();
      var result = JsonConvert.DeserializeObject&lt;LoginResponse&gt;(mobileResult);
  
      return result;
  }
  </code></pre>
  
  <p>When i make the request i am getting this error</p>
  
  <blockquote>
    <p>System.Net.Http.HttpRequestException: An error occurred while sending
    the request. ---> System.Runtime.InteropServices.COMException: The
    text associated with this error code could not be found.</p>
    
    <p>The certificate authority is invalid or incorrect</p>
    
    <p>at
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
    task)    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)    at
    System.Net.Http.HttpHandlerToFilter.d__4.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---    at
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
    task)    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)    at
    System.Net.Http.HttpClientHandler.d__86.MoveNext()    ---
    End of inner exception stack trace ---    at
    System.Net.Http.HttpClientHandler.d__86.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---    at
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
    task)    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)    at
    System.Net.Http.HttpClient.d__58.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---    at
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
    task)    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)    at System.Runtime.CompilerServices.TaskAwaiter<code>1.GetResult() 
    at SampleApp.Services.LoginService.&lt;Login&gt;d__2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---    at
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
    task)    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)    at System.Runtime.CompilerServices.TaskAwaiter</code>1.GetResult() 
    at SampleApp.Views.LoginPage.d__1.MoveNext()</p>
  </blockquote>
  
  <p>I think the self-signed SSL causing the problem. I know i can use Windows.Web HttpClient to ignore SSL errors but due to some problems it is not possible now.
  How can i solve this problem ? Thanks in advance.</p>