Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AlejandroRuiz/5bafb7f98516af57915de7a9a5eb7c34 to your computer and use it in GitHub Desktop.
Save AlejandroRuiz/5bafb7f98516af57915de7a9a5eb7c34 to your computer and use it in GitHub Desktop.
Override SSL invalid certificate
var httpHandler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback = (o, cert, chain, errors) => true
};
var client = new HttpClient(httpHandler);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment