Elastic Agent ElasticSearch integration doesn't work with custom CA

Hi,
I would like to use the Elasticsearch integration with Elastic Agents managed by Fleet. We have a self-managed Elasticsearch cluster running in Kubernetes and we are using self-signed certificates for the ES. I have configured the Elasticsearch output in Fleet to use our custom CA. However, the Elasticsearch integration does not offer the possibility to provide a custom CA, nor does it use the one from the ES output configuration, and therefore the Agents fail to get metrics because of the unknown CA.

Is there any other way to use the integration with self-signed certificates?

Thanks!