Created
May 20, 2020 16:56
-
-
Save AlejandroRuiz/5bafb7f98516af57915de7a9a5eb7c34 to your computer and use it in GitHub Desktop.
Override SSL invalid certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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