Logstash beats input doesn't find certificates

When I enable SSL in the logstash-beats-input, I get the following message:
{:timestamp=>"2015-11-11T12:07:41.539000+0100", :message=>"The error reported is: \n Neither PUB key nor PRIV key:"}
And Logstash stops.

The configuration is the following:

input {
  beats {
    # The port to listen on
    port => 5043

    # The paths to your ssl cert and key
    ssl => true
    ssl_certificate => "/etc/pki/tls/certs/logstash/desnosql1.crt"
    ssl_key => "/etc/pki/tls/private/logstash/desnosql1.key"

    tags => ["filebeat", "desnosql1"]
  }
}

And, of course, both files exist:

[root@desnosql1 process]# ll /etc/pki/tls/certs/logstash/desnosql1.crt
-rw-r--r-- 1 root root 1094 Nov 10 18:05 /etc/pki/tls/certs/logstash/desnosql1.crt
[root@desnosql1 process]# ll /etc/pki/tls/private/logstash/desnosql1.key
-rw-r--r-- 1 root root 1094 Nov 10 18:05 /etc/pki/tls/private/logstash/desnosql1.key

In fact, those certificates are the ones that I used in the past with Logstash-Forwarder, so they are supposed to be correctly generated.

Any idea of what is failing?

Thanks in advance.

Hi Victor,

I had the same issue when I was generating crt and key files with passphrase. It got resolved, after generating them without passphrase. I followed the below tutorial...Please go through it:

Good Luck.. :slight_smile: