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

Is there a way to specify multiple cacert files #964

Open
qingkunl opened this issue Aug 20, 2020 · 0 comments
Open

Is there a way to specify multiple cacert files #964

qingkunl opened this issue Aug 20, 2020 · 0 comments

Comments

@qingkunl
Copy link

qingkunl commented Aug 20, 2020

Can we specify multiple cacert files? I have multiple Elasticsearch clusters configured with the same domain name (e.g. es.xxx.com), and use DNS to decide which Elasticsearch cluster to use. So my logstash output setting is like:

elasticsearch {
    hosts => [ "https://es.xxx.com" ]
    cacert => '/path/to/cacert'
    user => "xxx"
    password => "xxx"
    index => "xxx"
}

Since es.xxx.com may be resolved to differentiations Elasticsearch clusters, and each cluster uses its own cacert, I'd like a way to specify multiple cacert files.

I've tried to put all cacert in the same file (like the following), but only the last one is used.

-----BEGIN CERTIFICATE-----
xxxxxxxxxx
xxxxxxxxxx
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
xxxxxxxxxx
xxxxxxxxxx
-----END CERTIFICATE-----
@qingkunl qingkunl changed the title Is there a way to specify multiple cacert file Is there a way to specify multiple cacert files Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants