Logstash and PKCS#12 format

Update

This thread describes my issue as I'm having the same issue with the "CN=instance", but I am running Elasticsearch, Kibana and Logstash on the same machine, and users access Kibana by IP address (https://IP_address:5601), so I don't have a FQDM.

Logstash connects to Elasticsearch using localhost or 127.0.0.1

xpack.monitoring.elasticsearch.hosts: ["https://127.0.0.1:9200"]

elasticsearch {
     hosts => "https://127.0.0.1:9200"

What should I put after --dns? Should I use the IP address when generating the cert?

bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12 --dns IP_address

Thank you