Skip to content

Commit 3be5a1a

Browse files
committed
Fixed certificate passphrase bug
Fixed a bug where using a certificate with a passphrase wouldn't work. Fixes #48 Fixes #49
1 parent 6e04072 commit 3be5a1a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# 3.0.5
2+
- Fixed a bug where using a certificate with a passphrase wouldn't work.
13
# 3.0.4
24
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
35
# 3.0.3

lib/logstash/inputs/tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def ssl_context
211211
begin
212212
@ssl_context = OpenSSL::SSL::SSLContext.new
213213
@ssl_context.cert = OpenSSL::X509::Certificate.new(File.read(@ssl_cert))
214-
@ssl_context.key = OpenSSL::PKey::RSA.new(File.read(@ssl_key),@ssl_key_passphrase)
214+
@ssl_context.key = OpenSSL::PKey::RSA.new(File.read(@ssl_key),@ssl_key_passphrase.value)
215215
if @ssl_verify
216216
@ssl_context.cert_store = load_cert_store
217217
@ssl_context.verify_mode = OpenSSL::SSL::VERIFY_PEER|OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT

logstash-input-tcp.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'logstash-input-tcp'
3-
s.version = '3.0.4'
3+
s.version = '3.0.5'
44
s.licenses = ['Apache License (2.0)']
55
s.summary = "Read events over a TCP socket."
66
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"

0 commit comments

Comments
 (0)