# Apparent bug in logstash-input-beats in SslSimpleBuilder.java

**URL:** https://discuss.elastic.co/t/apparent-bug-in-logstash-input-beats-in-sslsimplebuilder-java/74206
**Category:** Logstash
**Created:** [February 7, 2017, 10:36am UTC](https://discuss.elastic.co/t/apparent-bug-in-logstash-input-beats-in-sslsimplebuilder-java/74206 "2017-02-07T10:36:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nick-george](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nick-george/32/23318_2.png) [@nick-george](https://discuss.elastic.co/u/nick-george)
#### Post date: [February 7, 2017, 10:36am UTC](https://discuss.elastic.co/t/apparent-bug-in-logstash-input-beats-in-sslsimplebuilder-java/74206/1 "2017-02-07T10:36:35Z")

</div>

Hi,

If the user has set verify\_mode to NONE in the logstash beats input configuration, it is overridden default value set by the code in SslSimpleBuilder.java, see below:

```
SslClientVerifyMode verifyMode = SslClientVerifyMode.FORCE_PEER;

```

The Java code has no concept of NONE as the ClientVerifyMode.

Due to various other limitations in Logstash, I am having to pass in a non-empty array of certificate authorities. Because of this, requireClientAuth() will always return true; which in turn, actually sets the verify mode to FORCE\_PEER - even though I set it to NONE in the filter configuration.

The code I'm referring to is located here:

> <https://github.com/logstash-plugins/logstash-input-beats/blob/master/src/main/java/org/logstash/netty/SslSimpleBuilder.java>

Are you happy for me to create a Github issue to have this fixed?

Regards,  
Nick

---

<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: [March 7, 2017, 10:36am UTC](https://discuss.elastic.co/t/apparent-bug-in-logstash-input-beats-in-sslsimplebuilder-java/74206/2 "2017-03-07T10:36:41Z")

</div>

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