Closed ph closed 9 years ago
Small cleanups in the dependencies and how we specify the files in the gemspec.
Thanks @jsvd for the comment, I'll do a bit more thinking.
Added some inline comments. Tests pass (bundle exec rspec
) once the lib/
part is removed as I commented.
Let's get expected-rejection cases added also (client connects to a server that is not trusted, etc)
@jordansissel I have added another test to cover a not trusted server. This PR requires a new release of ruby-flores with https://github.com/jordansissel/ruby-flores/pull/3
updated with @jordansissel comments.
Tests passing.
The ruby client did not enforce the validation of the certificate, opening possible man in the middle attacks on the client. This PR make sure that the
verify_mode
is set toVERIFY_PEER
and add the certificate to the store for this specific connection. An integration test was added to validate this change.This change makes the ruby client handling of connection closer to the
logstash-forwarder
behavior, which does the verify peer per default.Fixes #4