From a6818d8019b6d22a13a9fb2c955e6c8312c54563 Mon Sep 17 00:00:00 2001 From: Tero Saarni Date: Fri, 8 Sep 2023 12:50:51 +0300 Subject: [PATCH] Added support for RFC5424 structured data (#67) * Added support for RFC5424 structured data Signed-off-by: Tero Saarni --- CHANGELOG.md | 1 + lib/logstash/outputs/syslog.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cffa66..ca7cb51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Change codec instance comparison [#69](https://github.com/logstash-plugins/logstash-output-syslog/pull/69) - Added support for RFC5424 structured data [#67](https://github.com/logstash-plugins/logstash-output-syslog/pull/67) - The SNI (Server Name Indication) extension is now used when connecting to syslog server with TLS and `host` is set to FQDN (Fully Qualified Domain Name) [#66](https://github.com/logstash-plugins/logstash-output-syslog/pull/66) + - Support loading of PKCS8 EC private keys [#61](https://github.com/logstash-plugins/logstash-output-syslog/pull/61) ## 3.0.5 - Docs: Set the default_codec doc attribute. diff --git a/lib/logstash/outputs/syslog.rb b/lib/logstash/outputs/syslog.rb index 7ea7465..799eab8 100644 --- a/lib/logstash/outputs/syslog.rb +++ b/lib/logstash/outputs/syslog.rb @@ -238,7 +238,7 @@ def setup_ssl require "openssl" 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) + ssl_context.key = OpenSSL::PKey::read(File.read(@ssl_key),@ssl_key_passphrase) if @ssl_verify cert_store = OpenSSL::X509::Store.new # Load the system default certificate path to the store