# Problem in SSL between logstash and filebeat

**URL:** <https://discuss.elastic.co/t/problem-in-ssl-between-logstash-and-filebeat/240579>\
**Category:** Logstash\
**Created:** [July 9, 2020, 5:38pm UTC](https://discuss.elastic.co/t/problem-in-ssl-between-logstash-and-filebeat/240579 "2020-07-09T17:38:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![azteker](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@azteker](https://discuss.elastic.co/u/azteker)\
**Post date:** [July 9, 2020, 5:38pm UTC](https://discuss.elastic.co/t/problem-in-ssl-between-logstash-and-filebeat/240579/1 "2020-07-09T17:38:14Z")

</div>

Here is the logstash's error log:  
`Jul 09 17:34:26 elk.novalocal logstash[15657]: Caused by: java.security.cert.CertificateException: could not find certificate file: /etc/logstash/certs/logstash.crt`  
`Jul 09 17:34:26 elk.novalocal logstash[15657]: at io.netty.handler.ssl.PemReader.readCertificates(PemReader.java:69) ~[netty-all-4.1.30.Final.jar:4.1.30.Final]`  
` Jul 09 17:34:26 elk.novalocal logstash[15657]: at io.netty.handler.ssl.SslContext.toX509Certificates(SslContext.java:1071) ~[netty-all-4.1.30.Final.jar:4.1.30.Final]`  
`Jul 09 17:34:26 elk.novalocal logstash[15657]: at io.netty.handler.ssl.SslContextBuilder.keyManager(SslContextBuilder.java:263) ~[netty-all-4.1.30.Final.jar:4.1.30.Final]`  
`Jul 09 17:34:26 elk.novalocal logstash[15657]: ... 20 more`

I have the crt file /etc/logstash/certs/logstash.crt  
Is my crt file invalid?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 9, 2020, 5:47pm UTC](https://discuss.elastic.co/t/problem-in-ssl-between-logstash-and-filebeat/240579/2 "2020-07-09T17:47:46Z")

</div>

> [@azteker](#):
>
> Is my crt file invalid?

That error is generated when the [code](https://github.com/whg333/netty-4.0.36.Final/blob/3c5772b74086aaa12e79c5fbf17fddd9b840684c/src/main/java/io/netty/handler/ssl/PemReader.java#L69) catches a FileNotFoundException. If the file does exist then there is probably a permissions problem.

---

<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:** [August 6, 2020, 5:50pm UTC](https://discuss.elastic.co/t/problem-in-ssl-between-logstash-and-filebeat/240579/3 "2020-08-06T17:50:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
