Unvalid certification path

I have a Spring Boot application running on Azure and I'm trying to access my Elastic endpoint via micrometer-registry-elastic.
Unfortunately, when deployed, I have an error each time the app tries to export the metrics :

ERROR i.m.e.ElasticMeterRegistry : failed to send metrics to elastic
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I tried adding the certificates from my browser from the chain of trust in my keystore but it doesn't do anything.
Thanks in advance

I also did

GET /_ssl/certificates 

in the Dev Tools console but I don't know what to do to retrieve the certificates and if they are really useful or not for my issue.