How to do to connect filebeat to kibana?

how to connect filebeat to kibana(accessed with https not http) ? because when i try "$ sudo filebeat setup -e" this error appear : [i use version 8.3.2 for kibana elastic and filebeat ]

Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET re quest to https://192.168.37.2:5601/api/status fails: fail to execute the HTTP GE T request: Get "https://192.168.37.2:5601/api/status": x509: certificate signed by unknown authority. Response:

Can you access kibana via https://192.168.37.2:5601?

Have you set server.host: "0.0.0.0"?

i can access kibana with "https://192.168.37.2:5601/api/status"