Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing self signed certs does not work (AllowSelfSignedServerCert) #88

Open
DmitryMak opened this issue Aug 7, 2021 · 1 comment
Open

Comments

@DmitryMak
Copy link

DmitryMak commented Aug 7, 2021

Running latest log4stash and log4net against a cluster with self signed certificate results in

log4net:ERROR Got error while reading response from ElasticSearch
System.InvalidOperationException: Some error occurred while sending request to ElasticSearch.
System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
   at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
   at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
   at RestSharp.Http.<>c__DisplayClass7_0.<WriteRequestBodyAsync>g__RequestStreamCallback|1(IAsyncResult result)
   at log4stash.ElasticClient.ResponseValidator.CheckResponse(IRestResponse response)
   at log4stash.WebElasticClient.<SafeSendRequestAsync>d__14.MoveNext()
<Server>localhost</Server>
<Port>9200</Port>
<Ssl>true</Ssl>
<AllowSelfSignedServerCert>true</AllowSelfSignedServerCert>

Elastic is installed using default docker compose for amazon/opendistro-for-elasticsearch:1.13.2

@danammeansbear
Copy link

did you find out the error for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants