Skip to content

Instantly share code, notes, and snippets.

@igorkulman
Created June 10, 2014 20:41
Show Gist options
  • Save igorkulman/76c9d8f1e79b6fd41c33 to your computer and use it in GitHub Desktop.
Save igorkulman/76c9d8f1e79b6fd41c33 to your computer and use it in GitHub Desktop.
var filter = new HttpBaseProtocolFilter();
#if DEBUG
// *******************
// IGNORING CERTIFACTE PROBLEMS
// *******************
filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.IncompleteChain);
filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.Expired);
filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.Untrusted);
filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.InvalidName);
// *******************
#endif
var httpClient = new Windows.Web.Http.HttpClient(filter);
@brajeshkokkonda
Copy link

Thank you very much !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment