How to Setup FileBeat with Basic Auth for LogStash Output?

Now that the mentioned Github issue is closed. Has anyone give it a try?
It seem like with self-singed certificate we have to copy the certificate and the private key to the filebeat server? Also we must use the certificate as the CA.
I do not know much about SSL/TLS protocol could any one give some thoughts on this? Thanks!