# Elastic Stack with Chain of certificates

**URL:** <https://discuss.elastic.co/t/elastic-stack-with-chain-of-certificates/330265>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 19, 2023, 6:28am UTC](https://discuss.elastic.co/t/elastic-stack-with-chain-of-certificates/330265 "2023-04-19T06:28:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikhil\_Khurana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikhil_khurana/32/119984_2.png) [@Nikhil\_Khurana](https://discuss.elastic.co/u/Nikhil_Khurana)\
**Post date:** [April 19, 2023, 6:28am UTC](https://discuss.elastic.co/t/elastic-stack-with-chain-of-certificates/330265/1 "2023-04-19T06:28:28Z")

</div>

I want to enable Security when using Filebeat and Logstash. I have created a Root CA. This Root Certificate creates an Intermediate CA. The intermediate CA is then used to create and sign my client and sever certificates for Filebeat and Logstash.

> Root CA -\> Intermediate CA -\> Client/Server Certificate.

How do I specify the configuration of Filebeat? Do I specify both Root and Intermediate CA in **ssl\_certificate\_authorities**?

Or do I just specify Root CA and filebeat would look up in hierarchy and validate Intermediate and Root both.

---

<div class="post-metadata">

**Author:** ![mazoutte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mazoutte/32/120188_2.png) [@mazoutte](https://discuss.elastic.co/u/mazoutte)\
**Post date:** [April 25, 2023, 11:51am UTC](https://discuss.elastic.co/t/elastic-stack-with-chain-of-certificates/330265/2 "2023-04-25T11:51:05Z")

</div>

Hello,  
Just concatenate the 2 PEM files of the Intermediate and the ROOT CA into one file.

```auto
-----BEGIN CERTIFICATE-----
*PEM SUB CA*
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
*PEM ROOT CA*
-----END CERTIFICATE-----

```

Then indicate that file in your ssl\_certificate\_authorites.

Regards,

---

<div class="post-metadata">

**Author:** ![Nikhil\_Khurana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikhil_khurana/32/119984_2.png) [@Nikhil\_Khurana](https://discuss.elastic.co/u/Nikhil_Khurana)\
**Post date:** [April 26, 2023, 5:52pm UTC](https://discuss.elastic.co/t/elastic-stack-with-chain-of-certificates/330265/3 "2023-04-26T17:52:06Z")

</div>

In case Root CA is trusted by my system, i.e. it is available in Trusted Root Certification Authorities of my system, do I still have to specify that Root either standalone or appended with Intermediate CA in **ssl\_certificate\_authorities** setting? Can I rely upon ELK stack to create a chain of Trust based on that?

---

<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:** [May 24, 2023, 7:52pm UTC](https://discuss.elastic.co/t/elastic-stack-with-chain-of-certificates/330265/4 "2023-05-24T19:52:49Z")

</div>

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