-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi! this code works on linux with .net core 3.0 and openssl 1.1.1
var handler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback = (message, cert, chain, errors) =>
{
if (errors == SslPolicyErrors.None)
return true;
else
{
Console.WriteLine("MailJet sslPolicyErrors {0}", errors);
}
return true;
}
};
// Create HttpClient
//_httpClient = (httpMessageHandler != null) ? new HttpClient(httpMessageHandler) : new HttpClient();
HttpClient _httpClient = new HttpClient(handler)
this skips the validation of the ssl certificate
Bye.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels