Hello,
I am trying to send events over secure TCP from logstash but facing issues with ssl settings:
Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key:>
Here is my config:
tcp {
port => 11111
host => "xx.xx.xx.xx"
ssl_enable => true
ssl_cert => "cert.crt"
ssl_key => "key.pem"
ssl_verify => false
codec => json_lines
}
I have generated ssl certificate from server using below commands:
openssl pkcs12 -in pathto_mykeystore/keystore.p12 -out cert.crt
and key using(it's a private key as I can see it in the output file):
openssl pkcs12 -in pathto_mykeystore/keystore.p12 -nocerts -out key.pem
Am I missing something here?
help/suggestions appreciated