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

Could not find a suitable TLS CA certificate bundle, invalid path: /usr/local/share/ca-certificates/ca.crt #167

Open
vas-rus opened this issue Apr 9, 2020 · 0 comments

Comments

@vas-rus
Copy link

vas-rus commented Apr 9, 2020

I am attempting to connect to an ES cluster over TLS from and the connection fails because the TLS certificate can not be verified. I have placed them inside docker and still getting this error.
Following is my DockerFile

COPY config/server-cert.crt /usr/local/share/ca-certificates/server-cert.crt
COPY config/server-cert.key /usr/local/share/ca-certificates/server-cert.key
COPY config/ca.crt /usr/local/share/ca-certificates/ca.crt
COPY config/trustedca.crt /usr/local/share/ca-certificates/trustedca.crt
COPY rule_templates/ /opt/elastalert/rule_templates
COPY elastalert_modules/ /opt/elastalert/elastalert_modules
RUN chmod 644 /usr/local/share/ca-certificates/trustedca.crt
RUN chmod 644 /usr/local/share/ca-certificates/server-cert.crt
RUN chmod 644 /usr/local/share/ca-certificates/server-cert.key
RUN chmod 644 /usr/local/share/ca-certificates/ca.crt
RUN  update-ca-certificates

And following is Elastalert config

use_ssl: True

verify_certs: True

client_cert: /usr/local/share/ca-certificates/server-cert.crt

client_key: /usr/local/share/ca-certificates/server-cert.key

ca_certs: /usr/local/share/ca-certificates/ca.crt

Can someone help me here

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

1 participant