# SSL Authentication between beat agent and Logstash

**URL:** https://discuss.elastic.co/t/ssl-authentication-between-beat-agent-and-logstash/196742
**Category:** Logstash
**Created:** [August 26, 2019, 9:55am UTC](https://discuss.elastic.co/t/ssl-authentication-between-beat-agent-and-logstash/196742 "2019-08-26T09:55:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![radw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radw/32/53012_2.png) [@radw](https://discuss.elastic.co/u/radw)
#### Post date: [August 26, 2019, 9:55am UTC](https://discuss.elastic.co/t/ssl-authentication-between-beat-agent-and-logstash/196742/1 "2019-08-26T09:55:07Z")

</div>

Hi all.  
I'm trying to setup the SSL authentication between beats agents(Metricbeat, Filebeat etc) but I'm stuck!  
I'm using the free/community edition of ELK stack, v6.8.2.

Logstash configuration file(logstash.yml):

> path.data: /var/lib/logstash  
> config.reload.automatic: true  
> config.reload.interval: 10s  
> path.logs: /var/log/logstash  
> xpack.monitoring.elasticsearch.username: logstash\_user  
> xpack.monitoring.elasticsearch.password: "logstash\_password"  
> xpack.monitoring.elasticsearch.hosts: ["http://ES\_IP:9200"]

Logstash input configuration:

> input {  
> beats {  
> port =\> 5044  
> ssl =\> false  
> ssl\_certificate =\> "/etc/logstash/ssl/logstash-remote.crt"  
> ssl\_key =\> "/etc/logstash/ssl/logstash-remote.p8"  
> tls\_min\_version =\> '1' (added recently as I thought this was the issue)  
> cipher\_suites =\> ['ECDHE-ECDSA-AES128-GCM-SHA256', 'ECDHE-RSA-AES128-GCM-SHA256', 'ECDHE-ECDSA-AES256- GCM-SHA384', 'ECDHE-RSA-AES256-GCM-SHA384', 'ECDHE-ECDSA-CHACHA20-POLY1305', 'ECDHE-RSA-CHACHA20-POLY1305', 'E CDHE-PSK-CHACHA20-POLY1305', 'ECDHE-ECDSA-AES128-SHA', 'ECDHE-ECDSA-AES128-SHA256', 'ECDHE-RSA-AES128-SHA', 'E CDHE-RSA-AES128-SHA256', 'ECDHE-PSK-AES128-CBC-SHA', 'ECDHE-ECDSA-AES256-SHA', 'ECDHE-ECDSA-AES256-SHA384', 'E CDHE-RSA-AES256-SHA', 'ECDHE-RSA-AES256-SHA384', 'ECDHE-PSK-AES256-CBC-SHA', 'AES128-GCM-SHA256', 'AES256-GCM- SHA384', 'AES128-SHA', 'AES128-SHA256', 'PSK-AES128-CBC-SHA', 'AES256-SHA', 'AES256-SHA256', 'PSK-AES256-CBC-S HA', 'DES-CBC3-SHA'] (added recently to remove any misunderstandings in the communication between the beat agent and logstash)  
> }  
> syslog {  
> }  
> }

Filebeat configuration(filebeat.yml):

> filebeat.inputs:

- type: log  
enabled: false  
paths:
  - /var/log/_.log  
fields:  
level: debug  
filebeat.config.modules:  
path: ${path.config}/modules.d/_.yml  
reload.enabled: false  
setup.template.settings:  
index.number\_of\_shards: 3  
setup.kibana:

output.logstash:  
hosts: ["localhost:5044"]  
tls:  
ssl.certificate\_authorities: ["/etc/logstash/ssl/logstash-remote.crt"]  
processors:

- add\_host\_metadata: ~
- add\_cloud\_metadata: ~

Altough I think I did everything right(according to elastic documentation), Logstash outputs this error message:

> Caused by: javax.net.ssl.SSLHandshakeException: error:100000f7:SSL routines:OPENSSL\_internal:WRONG\_VERSION\_NUMBER

Any thoughts on this?  
Thank you for any help!

---

<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: [September 23, 2019, 9:55am UTC](https://discuss.elastic.co/t/ssl-authentication-between-beat-agent-and-logstash/196742/2 "2019-09-23T09:55:10Z")

</div>

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