# Logstash-forwarder + SSL + HAProxy

**URL:** <https://discuss.elastic.co/t/logstash-forwarder-ssl-haproxy/27008>\
**Category:** Logstash\
**Created:** [August 6, 2015, 9:08pm UTC](https://discuss.elastic.co/t/logstash-forwarder-ssl-haproxy/27008 "2015-08-06T21:08:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HelpComputer](https://avatars.discourse-cdn.com/v4/letter/h/ac8455/32.png) [@HelpComputer](https://discuss.elastic.co/u/HelpComputer)\
**Post date:** [August 6, 2015, 9:08pm UTC](https://discuss.elastic.co/t/logstash-forwarder-ssl-haproxy/27008/1 "2015-08-06T21:08:39Z")

</div>

Hello,

I am trying to setup an ELK stack but I have a question about Logstash-forwarder and SSL. My setup looks like this:

Logstash-forwarder -\> HAProxy (VM) -\> (2 VM's) Logstash/Redis -\> (2 VM's) Logstash Indexer -\> (1 physical server) ElasticSearch/Kibana

When generating the SSL cert and key pair for Logstash-forwarder what FQDN do I use since there will be two Logstash servers behind the HAProxy LB?

Thanks in advance for the help.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 7, 2015, 10:48am UTC](https://discuss.elastic.co/t/logstash-forwarder-ssl-haproxy/27008/2 "2015-08-07T10:48:15Z")

</div>

Depends, if you terminate SSL at HAProxy then that would be it, if not then you will need both of the LS VMs hostnames in there.

---

<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:** [July 6, 2017, 5:32am UTC](https://discuss.elastic.co/t/logstash-forwarder-ssl-haproxy/27008/3 "2017-07-06T05:32:37Z")

</div>


