# Setting up ssl for Windows elasaticsearch, filebeat and kibana

**URL:** <https://discuss.elastic.co/t/setting-up-ssl-for-windows-elasaticsearch-filebeat-and-kibana/113855>\
**Category:** Kibana\
**Created:** [January 3, 2018, 1:32am UTC](https://discuss.elastic.co/t/setting-up-ssl-for-windows-elasaticsearch-filebeat-and-kibana/113855 "2018-01-03T01:32:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GSCully](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gscully/32/26104_2.png) [@GSCully](https://discuss.elastic.co/u/GSCully)\
**Post date:** [January 3, 2018, 1:32am UTC](https://discuss.elastic.co/t/setting-up-ssl-for-windows-elasaticsearch-filebeat-and-kibana/113855/1 "2018-01-03T01:32:46Z")

</div>

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

I figure once one is working the rest will.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [January 5, 2018, 1:36am UTC](https://discuss.elastic.co/t/setting-up-ssl-for-windows-elasaticsearch-filebeat-and-kibana/113855/2 "2018-01-05T01:36:52Z")

</div>

I have moved this to the X-Pack forum as SSL is part of the X-Pack plugin.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [January 5, 2018, 1:45am UTC](https://discuss.elastic.co/t/setting-up-ssl-for-windows-elasaticsearch-filebeat-and-kibana/113855/3 "2018-01-05T01:45:11Z")

</div>

Step 1 is to install X-Pack if you haven't already done so.

- [https://www.elastic.co/guide/en/x-pack/6.1/installing-xpack.html](https://www.elastic.co/guide/en/x-pack/6.1/installing-xpack.html)

Note that the security features of X-Pack (including SSL) require a commercial license, but offer a free  
30 day trial.

Then you want to follow the SSL/TLS setup guide for Elasticsearch

- [https://www.elastic.co/guide/en/x-pack/6.1/ssl-tls.html](https://www.elastic.co/guide/en/x-pack/6.1/ssl-tls.html)

And the Security guide for Kibana

- [https://www.elastic.co/guide/en/kibana/6.1/using-kibana-with-security.html](https://www.elastic.co/guide/en/kibana/6.1/using-kibana-with-security.html)

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.

---

<div class="post-metadata">

**Author:** ![GSCully](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gscully/32/26104_2.png) [@GSCully](https://discuss.elastic.co/u/GSCully)\
**Post date:** [January 16, 2018, 4:56pm UTC](https://discuss.elastic.co/t/setting-up-ssl-for-windows-elasaticsearch-filebeat-and-kibana/113855/4 "2018-01-16T16:56:30Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [January 17, 2018, 6:19am UTC](https://discuss.elastic.co/t/setting-up-ssl-for-windows-elasaticsearch-filebeat-and-kibana/113855/5 "2018-01-17T06:19:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![GSCully](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gscully/32/26104_2.png) [@GSCully](https://discuss.elastic.co/u/GSCully)\
**Post date:** [January 17, 2018, 5:49pm UTC](https://discuss.elastic.co/t/setting-up-ssl-for-windows-elasaticsearch-filebeat-and-kibana/113855/6 "2018-01-17T17:49:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 14, 2018, 5:49pm UTC](https://discuss.elastic.co/t/setting-up-ssl-for-windows-elasaticsearch-filebeat-and-kibana/113855/7 "2018-02-14T17:49:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
