I want to connect from filebeat to logastash via ssl and maybe later it should also use client auth.
But the Keyformat for Logstash is an endless odyssey... I came from pkcs12 .pfx. I've read every Post here and on Github but can someone in this universe can tell me how I have to feed my ENCRYPTED Private key to logstash that he accepts it?
My path so far:
openssl pkcs12 -in agg_hag1.pfx -nocerts -nodes -out agg_hag1.pem openssl pkcs8 -in agg_hag1.pem -topk8 -out plain.pem openssl pkcs8 -in plain.pem -traditional -out traditinal.pem openssl rsa -aes256 -in traditinal.pem -out agg_hag1_enc.key
But I get File does not contain valid private key: ....
With an unencrypted Key I have no problems, but this is not an option.
The system is a Ubuntu 18.04 so its using openssl version 1.1.0g 2 Nov 2017.
PLS I dont know what to do anymore, this cant be that hard to configure...