# Hostname/IP does not match certificate's altnames

**URL:** <https://discuss.elastic.co/t/hostname-ip-does-not-match-certificates-altnames/297928>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 22, 2022, 4:06pm UTC](https://discuss.elastic.co/t/hostname-ip-does-not-match-certificates-altnames/297928 "2022-02-22T16:06:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emile\_Plas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emile_plas/32/84542_2.png) [@Emile\_Plas](https://discuss.elastic.co/u/Emile_Plas)\
**Post date:** [February 22, 2022, 4:06pm UTC](https://discuss.elastic.co/t/hostname-ip-does-not-match-certificates-altnames/297928/1 "2022-02-22T16:06:39Z")

</div>

I am trying to set up Elasticsearch and kibana 8 on a new machine.

For one or another reason kibana gives me the following error: Hostname/IP does not match certificate's altnames. IP: **.**. **.** is not in the certificate's altnames.

Is there an easy command to add the IP address to the certificates altnames? The documentation wasn't that clear to me.

thanks in advance.

---

<div class="post-metadata">

**Author:** ![DineshNaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dineshnaik/32/89308_2.png) [@DineshNaik](https://discuss.elastic.co/u/DineshNaik)\
**Post date:** [February 22, 2022, 7:33pm UTC](https://discuss.elastic.co/t/hostname-ip-does-not-match-certificates-altnames/297928/2 "2022-02-22T19:33:40Z")

</div>

Are you using self signed certificate or a certificate signed by an external CA?

Using ip address is not a recommend way in certificate as it can change during compute replaces etc. So it's good to have the hostname in the certificates if possible.

---

<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:** [March 22, 2022, 7:33pm UTC](https://discuss.elastic.co/t/hostname-ip-does-not-match-certificates-altnames/297928/3 "2022-03-22T19:33:44Z")

</div>

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