# Logstash beats input doesn't find certificates

**URL:** <https://discuss.elastic.co/t/logstash-beats-input-doesnt-find-certificates/34316>\
**Category:** Logstash\
**Created:** [November 11, 2015, 11:17am UTC](https://discuss.elastic.co/t/logstash-beats-input-doesnt-find-certificates/34316 "2015-11-11T11:17:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmcano](https://avatars.discourse-cdn.com/v4/letter/v/f1d935/32.png) [@vmcano](https://discuss.elastic.co/u/vmcano)\
**Post date:** [November 11, 2015, 11:17am UTC](https://discuss.elastic.co/t/logstash-beats-input-doesnt-find-certificates/34316/1 "2015-11-11T11:17:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ahmadimt07](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmadimt07/32/10031_2.png) [@ahmadimt07](https://discuss.elastic.co/u/ahmadimt07)\
**Post date:** [December 14, 2015, 6:11am UTC](https://discuss.elastic.co/t/logstash-beats-input-doesnt-find-certificates/34316/2 "2015-12-14T06:11:28Z")

</div>

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:

> **[How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on Ubuntu 14.04 |...](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04)**
>
> In this tutorial, we will go over the installation of the Elasticsearch ELK Stack on Ubuntu 14.04—that is, Elasticsearch 2.2.x, Logstash 2.2.x, and Kibana 4.4.x. We will also show you how to configure it to gather and visualize the syslogs of your...

Good Luck.. 🙂

---

<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, 5:18am UTC](https://discuss.elastic.co/t/logstash-beats-input-doesnt-find-certificates/34316/3 "2017-07-06T05:18:39Z")

</div>


