How to set up mutual SSL authentication between an ELK server (Logstash) and a remote Filebeat server?

I have tried OpenSSL several times and it does not work.