Allowing Untrusted SSL Certificates with HttpClient
A quick and dirty solution is to use the ServicePointManager.ServerCertificateValidationCallback delegate. This allows you to provide your own certificate validation. The validation is applied globally across the whole App Domain. ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; I use this mainly for unit testing in situations where I want to run against an endpoint … Read more