Closed collimarco closed 6 years ago
The problem is also relevant for the Rails integration when you use:
config.logstash.ssl_enable = true
After some investigation, I have discovered that this is a new problem starting with Ruby 2.4. The behavior of OpenSSL::SSL::SSLSocket::new
has changed. In Ruby <= 2.3, the method signature is new(io, ctx = nil)
. In Ruby 2.4+, you must pass either one argument or both. You can't pass a nil
context.
Fix released in 0.26.1.
The readme describes the following configuration:
However that raise an exception:
When
ssl_context
is not passed explicitly, you probably need to create an ssl_context automatically withVERIFY_PEER
.