# Adding support for SNI to filebeat

**URL:** <https://discuss.elastic.co/t/adding-support-for-sni-to-filebeat/209108>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 22, 2019, 6:18pm UTC](https://discuss.elastic.co/t/adding-support-for-sni-to-filebeat/209108 "2019-11-22T18:18:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rstr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rstr/32/58184_2.png) [@rstr](https://discuss.elastic.co/u/rstr)\
**Post date:** [November 22, 2019, 6:18pm UTC](https://discuss.elastic.co/t/adding-support-for-sni-to-filebeat/209108/1 "2019-11-22T18:18:21Z")

</div>

We would like to have filebeat use SNI when connecting to our server. We reach our server via the [aaa.com](http://aaa.com) domain, but it only has a TLS cert for [bbb.com](http://bbb.com). We would like to tell filebeat to connect to the server using [aaa.com](http://aaa.com), but to expect a cert for [bbb.com](http://bbb.com) when performing a TLS handshake.

I was thinking this might look something like:

```auto
output:
    elasticsearch:
        tls:
            server_name: "bbb.com"

```

and then the parameter would get slotted into [https://github.com/elastic/beats/blob/master/libbeat/common/transport/tlscommon/config.go#L87](https://github.com/elastic/beats/blob/master/libbeat/common/transport/tlscommon/config.go#L87) somehow.

I am happy to write the patch - would it be likely to be accepted? Thanks!

---

<div class="post-metadata">

**Author:** ![rstr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rstr/32/58184_2.png) [@rstr](https://discuss.elastic.co/u/rstr)\
**Post date:** [December 2, 2019, 4:01pm UTC](https://discuss.elastic.co/t/adding-support-for-sni-to-filebeat/209108/2 "2019-12-02T16:01:22Z")

</div>

Hi Elastic team - what do I need to do to move this along? The CONTRIBUTING guide for Beats told me to ask here before starting work on my feature. Thanks.

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [December 5, 2019, 9:43pm UTC](https://discuss.elastic.co/t/adding-support-for-sni-to-filebeat/209108/3 "2019-12-05T21:43:51Z")

</div>

Hi! Sorry for the late response. Please feel free to push the PR! The team will review it for sure!

---

<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:** [January 2, 2020, 9:43pm UTC](https://discuss.elastic.co/t/adding-support-for-sni-to-filebeat/209108/4 "2020-01-02T21:43:52Z")

</div>

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