# Watcher and Shield

**URL:** https://discuss.elastic.co/t/watcher-and-shield/1115
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [May 21, 2015, 4:25pm UTC](https://discuss.elastic.co/t/watcher-and-shield/1115 "2015-05-21T16:25:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Tommy\_Bollhofer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tommy_bollhofer/32/45762_2.png) [@Tommy\_Bollhofer](https://discuss.elastic.co/u/Tommy_Bollhofer)
#### Post date: [May 21, 2015, 4:25pm UTC](https://discuss.elastic.co/t/watcher-and-shield/1115/1 "2015-05-21T16:25:05Z")

</div>

Is the beta version of Watcher supported with Shield? Are there configuration changes in the elasticsearch.yml file in order for this to function correctly? Didn't take note of any in the getting started documentation. Receiving the following error:

java.lang.RuntimeException: http client failed to initialize the SSLContext  
at org.elasticsearch.watcher.support.http.HttpClient.createSSLSocketFactory(HttpClient.java:183)  
at org.elasticsearch.watcher.support.http.HttpClient.doStart(HttpClient.java:73)  
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:85)  
at org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:238)  
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:128)  
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:216)  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)  
Caused by: java.lang.NullPointerException  
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)  
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)  
at sun.nio.fs.WindowsPath.parse(Unknown Source)  
at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source)  
at java.nio.file.Paths.get(Unknown Source)  
at org.elasticsearch.watcher.support.http.HttpClient.createSSLSocketFactory(HttpClient.java:172)  
... 6 more

---

<div class="post-metadata">

### Author: ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)
#### Post date: [May 21, 2015, 4:54pm UTC](https://discuss.elastic.co/t/watcher-and-shield/1115/2 "2015-05-21T16:54:38Z")

</div>

Hi Tommy,

What Shield version are you running? The minimum supported Shield version is 1.2.1, so you may need to upgrade.

Martijn

---

<div class="post-metadata">

### Author: ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)
#### Post date: [May 21, 2015, 6:36pm UTC](https://discuss.elastic.co/t/watcher-and-shield/1115/3 "2015-05-21T18:36:04Z")

</div>

Hi Tommy,

It looks like you've run into a bug with the Shield integration with watcher for SSL. We're working on fixing this in Watcher, but should be able to workaround it with some additional settings:

In your elasticsearch.yml file, I believe you may have something like:

```auto
shield.ssl.keystore.path: /path/to/keystore
shield.ssl.keystore.password: XXXXXX

```

If you can, please try adding these two settings:

```auto
shield.ssl.truststore.path: /path/to/keystore
shield.ssl.truststore.password: XXXXXX

```

The values for these settings will be the same as above. Shield actually mimics this setup internally and in the future Watcher will integrate much more cleanly.

Edit: if you have a different setup, can you share the contents of your elasticsearch.yml (sensitive items obfuscated of course)?

Jay

---

<div class="post-metadata">

### Author: ![Tommy\_Bollhofer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tommy_bollhofer/32/45762_2.png) [@Tommy\_Bollhofer](https://discuss.elastic.co/u/Tommy_Bollhofer)
#### Post date: [May 21, 2015, 7:50pm UTC](https://discuss.elastic.co/t/watcher-and-shield/1115/4 "2015-05-21T19:50:33Z")

</div>

Thanks Jay! That did the trick 😃

---

<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: [July 6, 2017, 1:50pm UTC](https://discuss.elastic.co/t/watcher-and-shield/1115/5 "2017-07-06T13:50:00Z")

</div>


