# Unvalid certification path

**URL:** <https://discuss.elastic.co/t/unvalid-certification-path/368093>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [October 1, 2024, 12:49pm UTC](https://discuss.elastic.co/t/unvalid-certification-path/368093 "2024-10-01T12:49:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo\_RIVIERE](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_riviere/32/138000_2.png) [@Hugo\_RIVIERE](https://discuss.elastic.co/u/Hugo_RIVIERE)\
**Post date:** [October 1, 2024, 12:49pm UTC](https://discuss.elastic.co/t/unvalid-certification-path/368093/1 "2024-10-01T12:49:20Z")

</div>

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 :

```auto
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

---

<div class="post-metadata">

**Author:** ![Hugo\_RIVIERE](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_riviere/32/138000_2.png) [@Hugo\_RIVIERE](https://discuss.elastic.co/u/Hugo_RIVIERE)\
**Post date:** [October 1, 2024, 1:33pm UTC](https://discuss.elastic.co/t/unvalid-certification-path/368093/2 "2024-10-01T13:33:19Z")

</div>

I also did

```auto
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.
