Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Where to find config/root-ca.pem? #638

Open
chhaosh opened this issue Jun 3, 2021 · 1 comment
Open

Where to find config/root-ca.pem? #638

chhaosh opened this issue Jun 3, 2021 · 1 comment

Comments

@chhaosh
Copy link

chhaosh commented Jun 3, 2021

Is your feature request related to a problem? Please describe.

I am referring https://opendistro.github.io/for-elasticsearch-docs/docs/trace/data-prepper/ to configure the data-prepper
My ES cluster is OpenDistro ES Cluster with demo security configuration, I am wondering where I can get cert: "config/root-ca.pem", I tried to use /usr/share/elasticsearch/config/root-ca.pem and put it under data-prepper pod, but it complains
Caused by: javax.net.ssl.SSLPeerUnverifiedException: Host name 'opendistro-es-client-service' does not match the certificate subject provided by the peer (CN=node-0.example.com, OU=node, O=node, L=test, DC=de)

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@chenqi0805
Copy link
Contributor

@chhaosh Thank you for trying out data-prepper. The PEM file can be generated by OpenSSL with hostname matching the common name (CN). This doc might be useful: https://opendistro.github.io/for-elasticsearch-docs/old/0.9.0/docs/security/generate-certificates/

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

No branches or pull requests

2 participants