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

Commit d4b1217

Browse files
author
Patrick Robinson
committed
Forward port logstash-plugins#58
1 parent d8e79f8 commit d4b1217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/inputs/tcp.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ def ssl_context
303303
@ssl_context = OpenSSL::SSL::SSLContext.new
304304
@ssl_context.cert = OpenSSL::X509::Certificate.new(File.read(@ssl_cert))
305305
@ssl_context.key = OpenSSL::PKey::RSA.new(File.read(@ssl_key),@ssl_key_passphrase.value)
306+
@ssl_context.cert_store = load_cert_store
306307
if @ssl_verify
307-
@ssl_context.cert_store = load_cert_store
308308
@ssl_context.verify_mode = OpenSSL::SSL::VERIFY_PEER|OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
309309
end
310310
rescue => e

0 commit comments

Comments
 (0)