# How to set up mutual SSL authentication between an ELK server (Logstash) and a remote Filebeat server?

**URL:** <https://discuss.elastic.co/t/how-to-set-up-mutual-ssl-authentication-between-an-elk-server-logstash-and-a-remote-filebeat-server/180456>\
**Category:** Logstash\
**Created:** [May 9, 2019, 11:57pm UTC](https://discuss.elastic.co/t/how-to-set-up-mutual-ssl-authentication-between-an-elk-server-logstash-and-a-remote-filebeat-server/180456 "2019-05-09T23:57:14Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![zenimagine](https://avatars.discourse-cdn.com/v4/letter/z/3bc359/32.png) [@zenimagine](https://discuss.elastic.co/u/zenimagine)\
**Post date:** [May 11, 2019, 12:53pm UTC](https://discuss.elastic.co/t/how-to-set-up-mutual-ssl-authentication-between-an-elk-server-logstash-and-a-remote-filebeat-server/180456/7 "2019-05-11T12:53:18Z")

</div>

I have tried OpenSSL several times and it does not work.

> [@How to connect two servers to Filebeat?](https://discuss.elastic.co/t/how-to-connect-two-servers-to-filebeat/180162):
>
> I have 2 servers HTTPS with let's Encrypt : [monitoring.example.com](http://monitoring.example.com) with ELK (IP: 11.11.111.111) [www.example.com](http://www.example.com) with my site in production (IP: 22.22.222.222) To install and configure ELK, I followed this tutorial : On the server [monitoring.example.com](http://monitoring.example.com) I have this configuration : $ sudo nano /etc/nginx/sites-available/monitoring-example-com server { listen 80 default\_server; listen [::]:80; server\_name monitoring.example.com; location / { return 301 https://mon…

---

_[View the full topic](https://discuss.elastic.co/t/how-to-set-up-mutual-ssl-authentication-between-an-elk-server-logstash-and-a-remote-filebeat-server/180456)._
