Skip to content

Commit a21ee96

Browse files
committed
Allow PKCS8 EC private keys to be loaded
1 parent 30b8f91 commit a21ee96

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## Unreleased
2+
- Support loading of PKCS8 EC private keys.
3+
14
## 3.0.5
25
- Docs: Set the default_codec doc attribute.
36

@@ -37,4 +40,3 @@
3740
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3841
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
3942
- Dependency on logstash-core update to 2.0
40-

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::read(File.read(@ssl_key),@ssl_key_passphrase)
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)