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

Ignore certificate host mismatch? #36

Open
marksawersw opened this issue Nov 6, 2017 · 4 comments
Open

Ignore certificate host mismatch? #36

marksawersw opened this issue Nov 6, 2017 · 4 comments

Comments

@marksawersw
Copy link

marksawersw commented Nov 6, 2017

Hello. Does the plugin have the capability to ignore a host mismatch in the X.500 cert?

I have different elasticsearch domains for dev and prod. I'd like to have one fluentd conf (actually a docker image) that works in both dev and prod. I'd like to set the endpoint url to a domain name that we can vary in each environment, for example in different DNS zones, or pass in as an --add-host or Environment property to the container.

I tried using a domain (shown below as es.mydomain.com) in the endpoint url, but I'm seeing the following error:

2017-11-06 21:22:27 +0000 [warn]: #0 failed to flush the buffer. retry_time=4 next_retry_seconds=2017-11-06 21:22:27 +0000 chunk="55d570c043428d9eb6051e904e4ab690" error_class=Faraday::SSLError error="hostname \"es.mydomain.com\" does not match the server certificate (OpenSSL::SSL::SSLError)

Any suggestions to ignore the mismatch? Or are there alternate patterns for image portability?

Thanks!
Mark

@Tiny-wlx
Copy link

Tiny-wlx commented May 9, 2018

+1

@cosmo0920
Copy link
Collaborator

Could you add ssl_verify false, which is originated from original ES plguin, into your configuration?

@cosmo0920
Copy link
Collaborator

Or, I'm sending the PR to support verify_hostname option: lostisland/faraday#1172
But the PR is not merged yet.

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

4 participants
@cosmo0920 @Tiny-wlx @marksawersw and others