# Logstash http poller - PKIX path building failed

**URL:** <https://discuss.elastic.co/t/logstash-http-poller-pkix-path-building-failed/280966>\
**Category:** Logstash\
**Created:** [August 10, 2021, 8:59pm UTC](https://discuss.elastic.co/t/logstash-http-poller-pkix-path-building-failed/280966 "2021-08-10T20:59:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gutierrezfj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gutierrezfj/32/92727_2.png) [@gutierrezfj](https://discuss.elastic.co/u/gutierrezfj)\
**Post date:** [August 10, 2021, 8:59pm UTC](https://discuss.elastic.co/t/logstash-http-poller-pkix-path-building-failed/280966/1 "2021-08-10T20:59:05Z")

</div>

Hello community. I need your help again!  
I'm using http poller plugin requesting an url https but have the error:

" **pkix path building failed sun.security.provider.certpath.suncertpathbuilderexception: unable to find valid certification path to requested target**"

what is the best way to solve this error?  
I tried using flags (ssl\_certificate\_verification = false) but it doesn't recognize them.  
thanks.

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [August 10, 2021, 10:39pm UTC](https://discuss.elastic.co/t/logstash-http-poller-pkix-path-building-failed/280966/2 "2021-08-10T22:39:05Z")

</div>

I don't think you can't bypass SSL and will need to get and reference the correct certificates.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 11, 2021, 1:38am UTC](https://discuss.elastic.co/t/logstash-http-poller-pkix-path-building-failed/280966/3 "2021-08-11T01:38:09Z")

</div>

There is simply no reason to allow someone to avoid providing the correct CA cert which allows validation of the certificate. If http\_poller can connect to a server then you can connect to that server, extract the CA cert, and supply it to the http\_poller plugin.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 8, 2021, 1:39am UTC](https://discuss.elastic.co/t/logstash-http-poller-pkix-path-building-failed/280966/4 "2021-09-08T01:39:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
