# Enable SNI in logstash tcp output module

**URL:** <https://discuss.elastic.co/t/enable-sni-in-logstash-tcp-output-module/199919>\
**Category:** Logstash\
**Created:** [September 18, 2019, 6:59am UTC](https://discuss.elastic.co/t/enable-sni-in-logstash-tcp-output-module/199919 "2019-09-18T06:59:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![funduraghu](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@funduraghu](https://discuss.elastic.co/u/funduraghu)\
**Post date:** [September 18, 2019, 6:59am UTC](https://discuss.elastic.co/t/enable-sni-in-logstash-tcp-output-module/199919/1 "2019-09-18T06:59:01Z")

</div>

I use ssl over tcp to secure my communication with remote server. My remote server serves multiple domains and needs clients to send SNI so that it can serve correct certificates. I observed that logstash tcp output module doesn't send SNI. How do I fix this?

We need logstash tcp output module to send SNI to remote server.

Output configuration:  
output {  
tcp {  
host =\> "[test1.example.net](http://test1.example.net)"  
port =\> 5050  
ssl\_cacert =\> "/etc/logstash/certs/wildcard.example.net.crt"  
ssl\_cert =\> "/etc/logstash/certs/test1.example.net.cert.pem"  
ssl\_key =\> "/etc/logstash/certs/test1.example.net.key.pem"  
ssl\_enable =\> true  
ssl\_verify =\> true  
codec =\> line { format =\> "%{message}"}  
}  
}

---

<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:** [October 16, 2019, 6:59am UTC](https://discuss.elastic.co/t/enable-sni-in-logstash-tcp-output-module/199919/2 "2019-10-16T06:59:04Z")

</div>

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