Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Forward port logstash-plugins#58
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Robinson committed Dec 20, 2017
1 parent d8e79f8 commit d4b1217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/inputs/tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ def ssl_context
@ssl_context = OpenSSL::SSL::SSLContext.new
@ssl_context.cert = OpenSSL::X509::Certificate.new(File.read(@ssl_cert))
@ssl_context.key = OpenSSL::PKey::RSA.new(File.read(@ssl_key),@ssl_key_passphrase.value)
@ssl_context.cert_store = load_cert_store
if @ssl_verify
@ssl_context.cert_store = load_cert_store
@ssl_context.verify_mode = OpenSSL::SSL::VERIFY_PEER|OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
end
rescue => e
Expand Down

0 comments on commit d4b1217

Please sign in to comment.