# SunCertPathBuilderException: unable to find valid certification

**URL:** <https://discuss.elastic.co/t/suncertpathbuilderexception-unable-to-find-valid-certification/68396>\
**Category:** Logstash\
**Created:** [December 8, 2016, 7:10am UTC](https://discuss.elastic.co/t/suncertpathbuilderexception-unable-to-find-valid-certification/68396 "2016-12-08T07:10:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubham\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Shubham\_Agrawal](https://discuss.elastic.co/u/Shubham_Agrawal)\
**Post date:** [December 8, 2016, 7:10am UTC](https://discuss.elastic.co/t/suncertpathbuilderexception-unable-to-find-valid-certification/68396/1 "2016-12-08T07:10:03Z")

</div>

Hi,  
I have setup logstash to parse logs and then later push them to elasticsearch.  
here is my config file:  
elasticsearch {  
hosts =\> ["https://_my\_hosts_:443"]  
ssl =\> true  
ssl\_certificate\_varification =\> false  
}

but i am still getting this error :  
{:timestamp=\>"2016-12-08T06:29:26.031000+0000", :message=\>"\*\* WARNING \*\* Detected UNSAFE options in elasticsearch output configuration!\n\*\* WARNING \*\* You have enabled encryption but DISABLED certificate verification.\n\*\* WARNING \*\* To make sure your data is secure change :ssl\_certificate\_verification to true", :level=\>:warn}  
{:timestamp=\>"2016-12-08T06:29:26.815000+0000", :message=\>"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target", :class=\>"Manticore::ClientProtocolException", :level=\>:error}  
{:timestamp=\>"2016-12-08T06:29:26.890000+0000", :message=\>"Pipeline main started"}

But i am able to connect to my to my host via curl  
curl -k https://_my\_hosts_/

I have a total of 5 data nodes, of which 1 is master.

I am reading logs from using file input plugin.  
Logstash version : 2.x  
Elasticsearch version : 2.3

---

<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 5, 2017, 7:10am UTC](https://discuss.elastic.co/t/suncertpathbuilderexception-unable-to-find-valid-certification/68396/2 "2017-01-05T07:10:06Z")

</div>

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