"File does not contain valid private key:/usr/share/logstash/ssl/server.key" error in input pipeline Logstash. How fix it?

Hi all!

I get certificate from MS CA.
Then convert it:

    openssl pkcs12 -in test.pfx -out ca.crt -nodes -nokeys -cacerts
    openssl pkcs12 -in test.pfx -clcerts -nokeys -out server.crt
    openssl pkcs12 -in test.pfx -nocerts -nodes  -out server.key
Then i configure Logstash input:
    input {
      beats {
        port => 5044
        ssl => true
        ssl_certificate_authorities => ["/usr/share/logstash/ssl/ca.crt"]
        ssl_certificate => "/usr/share/logstash/ssl/server.crt"
        ssl_key => "/usr/share/logstash/ssl/server.key"
        ssl_verify_mode => "none"
      }
    }

Theni started Logstash and get error:
"File does not contain valid private key:/usr/share/logstash/ssl/server.key"

Help me please. What i do wrong? How fix it?

Thank you

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