Looking for help setting up ssl on kibana to elasticsearch help, Using Windows certificates, how do I go about securing the systems?
I can export my root certificate as a cer file or a p7b file, can those be used?
I've tried to export the root and client but elastic didn't like them.
Any ideas?
thanks
You mention having a "root certificate", which I assume is an existing CA that you wish to use. In that case you should follow the instructions for generating a Certificate Signing Request (CSR).
Please ask if you have any difficulties, SSL setup can get messy, and it's hard to document it precisely for everyone's needs, so we're happy to help if there's a gap in the docs.
Thanks, I am trying to use the pem files now, it appears elastic nodes are using it, but it is hard to tell, I tried a Invoke-webrequest but get an ssl error now. using certs generated from certutil.
Invoke-RestMethod http://elastic1:9200/_cluster/health?pretty -Method Get
tried https
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
If you enabled TLS on the HTTP port, using a cert that you created with certutil then you are using an auto generated certificate authority.
By default other software is not going to trust that TLS connection because the certificate is not signed by a trusted certificate authority.
Your options are:
Don't use TLS on the HTTP port
Use a certificate that is signed by a trusted CA (the certutil documentation provides instructions for generating a certificate signing request for that purpose)
Add the autogenerated CA to the trusted store
Or, if you are only going to use other Elastic stack products (Kibana, Beats, etc) to communicate with elasticsearch, you can just not worry about it - each of those products has the ability to configure a custom CA when connecting to ES.
Thanks,
I plan on using a valid cert, I just didn't have one handy.
I'll use the self signed ones for the stack com until I'm more familiar with openssl.
After install the ca I can view the stats.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.