# How to set server.name in elasticsearch 5.5?

**URL:** <https://discuss.elastic.co/t/how-to-set-server-name-in-elasticsearch-5-5/162130>\
**Category:** Elasticsearch\
**Created:** [December 26, 2018, 11:02am UTC](https://discuss.elastic.co/t/how-to-set-server-name-in-elasticsearch-5-5/162130 "2018-12-26T11:02:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bella698](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@Bella698](https://discuss.elastic.co/u/Bella698)\
**Post date:** [December 26, 2018, 11:02am UTC](https://discuss.elastic.co/t/how-to-set-server-name-in-elasticsearch-5-5/162130/1 "2018-12-26T11:02:08Z")

</div>

I'm trying to begin using x-pack and specify a https cert. In order to do so, I need each elasticsearch node to have a configured hostname ([a.foo.com](http://a.foo.com)) instead of starting with its IP address (1.2.3.4). Otherwise, SSL fails to start up with entries like [here](https://www.apkjunky.com/):

```auto
Caused by: java.security.cert.CertificateException: No subject alternative names matching IP address 127.0.0.1 found 

```

I know that _kibana_ can be configured with a `server.name` . Elasticsearch can't. So, how do I have ES start with a configured domain name?

---

<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 23, 2019, 11:02am UTC](https://discuss.elastic.co/t/how-to-set-server-name-in-elasticsearch-5-5/162130/2 "2019-01-23T11:02:09Z")

</div>

Closed on January 23, 2019, 11:02am UTC

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