Using latest NetCore Splunk.Client,
The following fails
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) =>
{
return true;
};
Service service = new Service(new Uri(SplunkBaseUri));
var task = service.LogOnAsync("Jas", "1234");
task.Wait();
return service;
With * AuthenticationException: The remote certificate is invalid according to the validation procedure. * HttpRequestException: The SSL connection could not be established, see inner exception.
If I write it using HttpClient, i.e.
HttpClient client = new HttpClient(new HttpClientHandler
{
ServerCertificateCustomValidationCallback = (message, certificate2, arg3, arg4) => true
})
{
BaseAddress = baseAddress
};
This does not happen. How do we do this with the new Splunk.client?
... View more