# Set authentification on elasticsearch using ansible

**URL:** <https://discuss.elastic.co/t/set-authentification-on-elasticsearch-using-ansible/248561>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 14, 2020, 4:25pm UTC](https://discuss.elastic.co/t/set-authentification-on-elasticsearch-using-ansible/248561 "2020-09-14T16:25:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Albert\_Zaharovits](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/albert_zaharovits/32/24390_2.png) [@Albert\_Zaharovits](https://discuss.elastic.co/u/Albert_Zaharovits)\
**Post date:** [September 29, 2020, 2:30pm UTC](https://discuss.elastic.co/t/set-authentification-on-elasticsearch-using-ansible/248561/5 "2020-09-29T14:30:44Z")

</div>

Hi @smutel,

I believe the issue you've got is similar to [ES 7.8 X-Pack not returning whole cert chain root ca, intermediate and server cert](https://discuss.elastic.co/t/es-7-8-x-pack-not-returning-whole-cert-chain-root-ca-intermediate-and-server-cert/243475/3) .  
You need to concatenate all the cert chain in a single pem file, and set `xpack.security.http.ssl.certificate` to it.

---

_[View the full topic](https://discuss.elastic.co/t/set-authentification-on-elasticsearch-using-ansible/248561)._
