Could not recognize 'ssl_key' format

Hi,
I'm trying to implement SSL in TCP input.
And I have error:

"Could not recognize 'ssl_key' format. Class: Java::OrgBouncycastleCert::X509CertificateHolder", :thread=>"#<Thread:0x7d70517e run>"

There is part of my conf file.

input {
   tcp {
    port => 5044
    mode => "server"
    ssl_enable => true
    ssl_cert => "/etc/logstash/root-ca.pem"
    ssl_extra_chain_certs => "/etc/logstash/root-ca.pem"
    ssl_key => "/etc/logstash/root-ca.pem"
    ssl_verify => true
  }
}

I have no idea what is wrong.
I found the same topic (TCP input plugin).
And I use logstash version 6.5.4 too.
Maybe it is bug in this version?
I will be glad to any advice.

Oh, I just use wrong type of file n ssl_key. I have to use

ssl_key => "/etc/pki/tls/private/logstash-forwarder.key"

Topic from link confused me :slight_smile:

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