# Certificate not accepted by logstash

**URL:** <https://discuss.elastic.co/t/certificate-not-accepted-by-logstash/380509>\
**Category:** Logstash\
**Created:** [July 28, 2025, 3:59pm UTC](https://discuss.elastic.co/t/certificate-not-accepted-by-logstash/380509 "2025-07-28T15:59:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tesla\_User](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tesla_user/32/97146_2.png) [@Tesla\_User](https://discuss.elastic.co/u/Tesla_User)\
**Post date:** [July 28, 2025, 3:59pm UTC](https://discuss.elastic.co/t/certificate-not-accepted-by-logstash/380509/1 "2025-07-28T15:59:17Z")

</div>

Hi  
I am getting the below error while configuring a new certificate with Logstash.  
My old cert is working fine but the new one is not.

Error: failed to perform request {:message=\>"certificate for \<10.10.x.x\> doesn't match any of the subject alternative names.

I would like to know why it is resolving the IP address and not taking the server name instead also how to get over this issue.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 28, 2025, 4:06pm UTC](https://discuss.elastic.co/t/certificate-not-accepted-by-logstash/380509/2 "2025-07-28T16:06:02Z")

</div>

What is the configuration of the input or filter or output that is generating this error? Which logstash version?

---

<div class="post-metadata">

**Author:** ![Tesla\_User](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tesla_user/32/97146_2.png) [@Tesla\_User](https://discuss.elastic.co/u/Tesla_User)\
**Post date:** [July 29, 2025, 3:51pm UTC](https://discuss.elastic.co/t/certificate-not-accepted-by-logstash/380509/3 "2025-07-29T15:51:33Z")

</div>

It is happening on the input plugin. Version is 7.17.25.

input {  
tcp {  
port =\> xxxx  
codec =\> "json\_lines"  
add\_field =\> {"rcv\_port" =\> xxxx}  
ssl\_enable =\> true  
ssl\_extra\_chain\_certs =\> ["/etc/logstash/certs/FSA-Inter.cer", "/etc/logstash/certs/FSA-root.cer"]  
ssl\_cert =\> "/etc/logstash/certs/xxx.cer"  
ssl\_key =\> "/etc/logstash/certs/elk.key"  
ssl\_verify =\> "false"  
}  
}

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 29, 2025, 7:46pm UTC](https://discuss.elastic.co/t/certificate-not-accepted-by-logstash/380509/4 "2025-07-29T19:46:24Z")

</div>

I tried a few things in an attempt to reproduce this with a more current version but was unable to get the error to occur. Perhaps I just didn't try enough things.
