# Watcher gives SSL handshake exception

**URL:** <https://discuss.elastic.co/t/watcher-gives-ssl-handshake-exception/157112>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [November 16, 2018, 5:17pm UTC](https://discuss.elastic.co/t/watcher-gives-ssl-handshake-exception/157112 "2018-11-16T17:17:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yungnvn](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@yungnvn](https://discuss.elastic.co/u/yungnvn)\
**Post date:** [November 16, 2018, 5:17pm UTC](https://discuss.elastic.co/t/watcher-gives-ssl-handshake-exception/157112/1 "2018-11-16T17:17:29Z")

</div>

This is my input:  
"input": {  
"http": {  
"request": {  
"scheme": "https",  
"host": "elkrck-vccn007",  
"port": 9200,  
"method": "get",  
"path": "/\_cluster/health",  
"params": {},  
"headers": {},  
"auth": {  
"basic": {  
"username": "elastic",  
"password": "::es\_redacted::"  
}  
}  
}  
}  
}

However, it keeps giving me SSL handshake exception saying "sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target".

Has anyone encountered this before?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [November 27, 2018, 8:11am UTC](https://discuss.elastic.co/t/watcher-gives-ssl-handshake-exception/157112/2 "2018-11-27T08:11:41Z")

</div>

See [https://www.elastic.co/guide/en/elasticsearch/reference/6.5/notification-settings.html#ssl-notification-settings](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/notification-settings.html#ssl-notification-settings)

I assume you have security enabled and thus the configured security settings are used for TLS communication?

--Alex

---

<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:** [December 25, 2018, 8:11am UTC](https://discuss.elastic.co/t/watcher-gives-ssl-handshake-exception/157112/3 "2018-12-25T08:11:45Z")

</div>

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