I am trying to setup the beats input to use ssl to authenticate to the connecting beats client. This is what I have in my beats.conf
file:
# vi:ft=logstash.jinja2
input {
beats {
id => 'beat-input'
port => 5044
host => '0.0.0.0'
ssl => true
ssl_certificate => '/etc/logstash/certs/beat_input/all.crt'
ssl_certificate_authorities => '/etc/logstash/certs/beat_input/ca.crt'
ssl_key => '/etc/logstash/certs/beat_input/all.key'
ssl_key_passphrase => '${beat_input_ssl_key_passphrase}'
}
}
The beat_input_ssl_key_passphrase
is the variable name I used to add the ssl key passphrase into the logstash keystore. The problem is that when starting Logstash (on Ubuntu 18.04) with systemd I get (it is too long to paste directly):
I tried to place the key passphrase as plaintext in the beat.conf
file but the same error appears. I am using the same key, certificate and ca with elasticsearch without issues. Has anyone managed to get the ssl key passsphrase setting working?