Certificate not accepted by logstash

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.

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

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"
}
}

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.