Unfortunately this is not supported yet. If you have a GitHub account, I suggest you subscribe to this issue: https://github.com/elastic/beats/issues/9129. That way you'll be notified of its progress.
As mentioned in one of the issue's comments, the workaround for now is to "add the CA to the OS trust store and the enroll subcommand will pick it up."
***Update: I went through the steps here and it still didn't seem to work: http://www.sqlservermart.com/HowTo/Windows_Import_Certificate.aspx
I'm running into the same issue. By "add the CA to the OS trust store" I assume that if I'm working on a Windows Server 2016 that it needs to be added somewhere in the MS truststore. Any info on how to do that? I've been reading documentation online but its not getting me anywhere. Any help would be appreciated.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.