title: Make C# application trust SSL certificate
body: <p>I'm trying to do a HTTPS get request via the HttpClient class. However there are exceptions thrown when trying to do the request as the provided certificate isn't trusted. </p>
  
  <p>I have access to the private SSL key and the question is how do I install the private key into the application so it can decrypt the public key from the website?</p>
  
  <pre><code>HttpClient httpClient = new HttpClient();
  httpClient.BaseAddress = new Uri("https://siteUsingSSL.com/");
  
  var response = await httpClient.GetAsync("swagger/index.html");
  
  Console.WriteLine(response.StatusCode);
  </code></pre>