Logstash http_poller ssl issue

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!

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