# Logstash http\_poller ssl issue

**URL:** <https://discuss.elastic.co/t/logstash-http-poller-ssl-issue/211725>\
**Category:** Logstash\
**Created:** [December 12, 2019, 9:34pm UTC](https://discuss.elastic.co/t/logstash-http-poller-ssl-issue/211725 "2019-12-12T21:34:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RunningSmurf](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@RunningSmurf](https://discuss.elastic.co/u/RunningSmurf)\
**Post date:** [December 12, 2019, 9:34pm UTC](https://discuss.elastic.co/t/logstash-http-poller-ssl-issue/211725/1 "2019-12-12T21:34:01Z")

</div>

Hello,

I create an input that queries a APi end point. The URL requires SSL. I downloaded the .jks file for the domain and included it in the input section as follows:

input {  
http\_poller {  
urls =\> {  
test1 =\> {  
method =\> get  
url =\> "https://PATH\_TO\_API"  
headers =\> {  
API\_KEY =\> ""  
}  
}

test1 =\> {  
url =\> "https:/URL"  
truststore =\> "/PATH/NAME.jks"  
truststore\_password =\> "PASSWORD"  
}  
}  
request\_timeout =\> 60  
schedule =\> { every =\> "10s"}  
codec =\> "json"

}  
}

I have also verified the password. However, I keep getting the following error:

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Would anyone have suggestions as to what I am doing incorrectly?

Thanks!

---

<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:** [January 9, 2020, 9:34pm UTC](https://discuss.elastic.co/t/logstash-http-poller-ssl-issue/211725/2 "2020-01-09T21:34:11Z")

</div>

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