Skip to content

Setting verify_mode to NONE results in FORCE_PEER in SslSimpleBuilder.java #196

@nick-george

Description

@nick-george

Hi,

If the user has set verify_mode to NONE in the logstash beats input configuration, it is overridden by the default value set by the code in SslSimpleBuilder.java (https://github.com/logstash-plugins/logstash-input-beats/blob/master/src/main/java/org/logstash/netty/SslSimpleBuilder.java), see below:

SslClientVerifyMode verifyMode = SslClientVerifyMode.FORCE_PEER;

This is because 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. As a result of this, all SSL connections fail.

Could you please fix this behaviour? I am happy to write a pull-request, but have been unable to run your tests successfully in the past.

Nick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions