# Problems with lumberjack input and encrypted private key

**URL:** <https://discuss.elastic.co/t/problems-with-lumberjack-input-and-encrypted-private-key/51877>\
**Category:** Logstash\
**Created:** [June 5, 2016, 1:24pm UTC](https://discuss.elastic.co/t/problems-with-lumberjack-input-and-encrypted-private-key/51877 "2016-06-05T13:24:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jammann](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jammann](https://discuss.elastic.co/u/jammann)\
**Post date:** [June 5, 2016, 1:24pm UTC](https://discuss.elastic.co/t/problems-with-lumberjack-input-and-encrypted-private-key/51877/1 "2016-06-05T13:24:25Z")

</div>

I'm trying to get logstash 2.3.1 working with a lumberjack input with TLS. As long as I'm using an unencrypted private key, everything is fine. When I'm using a encrypted private key and an passphrase, all I'm getting is

```auto
{:timestamp=>"2016-06-05T15:10:23.590000+0200", :message=>"Pipeline aborted due to error", :exception=>#<OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key:>, :backtrace=>["org/jruby/ext/openssl/PKeyRSA.java:277:in `initialize'",

```

The config which fails is

```auto
lumberjack {
    port => 5043
    ssl_certificate => "/app/certs/x.crt"
    ssl_key => "/app/certs/x.key.enc"
    ssl_key_passphrase => "VjFupD4ZUXwU"
}

```

Any idea what is wrong? I'm pretty sure and verified several times by copy/paste that the phrase is not misstype.

It seems that also the beats input plugin is behaving exactly the same.

CU, Joe

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:54am UTC](https://discuss.elastic.co/t/problems-with-lumberjack-input-and-encrypted-private-key/51877/2 "2017-07-06T04:54:30Z")

</div>


