Skip to content

Commit dfca6fa

Browse files
authored
Fix the bug of always getting the wrong ssl_key_passphrase value
1 parent 30b8f91 commit dfca6fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/outputs/syslog.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def setup_ssl
227227
require "openssl"
228228
ssl_context = OpenSSL::SSL::SSLContext.new
229229
ssl_context.cert = OpenSSL::X509::Certificate.new(File.read(@ssl_cert))
230-
ssl_context.key = OpenSSL::PKey::RSA.new(File.read(@ssl_key),@ssl_key_passphrase)
230+
ssl_context.key = OpenSSL::PKey::RSA.new(File.read(@ssl_key),@ssl_key_passphrase.value || '')
231231
if @ssl_verify
232232
cert_store = OpenSSL::X509::Store.new
233233
# Load the system default certificate path to the store

0 commit comments

Comments
 (0)