-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
http tls: expected host name is not properly set #1796
Comments
@eldargab thanks for opening this ticket. do you mean that by default we should always set the SNI (tls.vhost) to the original host and port in use ? @fujimotos what do you think ? |
@edsiper @eldargab I actually can confirm that Fluent Bit is able I generated a certificate with the following chain.
and I launched Fluent Bit as follows:
So Fluent Bit is able to post data via TLS and is getting 200 responses.
My guess is that the certificate has a port number in its @eldargab Can you check your certificate using the folloing command and
|
Yes, CN contains port number. Didn't know that it is not a common practice. What confused me is that
connects without an error. |
@eldargab It seems that openssl won't do any hostname verification by default.
From another angle, HTTP clients such as
So I believe a certificate verification should fail in such a case.
My understanding here is that the Common Name field has no concept of So if we set That may happen to work, but it's literally a "happen to work because SSL |
@fujimotos, thank you for clarification! |
Bug Report
Consider the following setup
Output fails with
As a workaround you can explicitly specify
tls.vhost
This works, but it should work without explicit
tls.vhost
as well.Your Environment
The text was updated successfully, but these errors were encountered: