Https://localhost:5601/api/status fails: fail to execute the HTTP GET request: Get \"https://localhost:5601/api/status\": x509: certificate signed by unknown authority (status=0)

fail to start metricbeat with the error message
https://localhost:5601/api/status fails: fail to execute the HTTP GET request: Get "https://localhost:5601/api/status\": x509: certificate signed by unknown authority (status=0).

Any idea?