Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch 2.15
OpenSearch.Client, 1.7.1
Describe the issue:
When attempting to connect to an OpenSearch instance using the OpenSearch .net client and BasicConnection the connection fails due to a certificate error (javax.net.ssl.SSLHandshakeException: Received fatal alert: unknown_ca). I can however connect to the OpenSearch instance using curl or a browser using the username and password.
Using the low level .net OpenSearch client in C#
var nodeAddress = new Uri("https://localhost:9200");
var config = new ConnectionConfiguration(nodeAddress).BasicAuthentication("admin", "admin");
var client = new OpenSearchLowLevelClient(config);
Any attempt to then run an operation such as indexing or querying on OpenSearch results in the CertificateError above. I thought BasicAuthentication should override certificate authentication so I should not be getting certificate errors. Is there anything I additionally need to do to enable BasicAuthentication in the .net client?
Configuration:
default OpenSearch installation in Docker as described in Installation quickstart - OpenSearch Documentation
Relevant Logs or Screenshots: