Filebeat setup x509: certificate signed by unknown authority

can some help i get the error below when i try to run "sudo filebeat setup"

Loading dashboards (Kibana must be running and reachable)
Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to https://127.0.0.1:443/api/status fails: fail to execute the HTTP GET request: Get "https://127.0.0.1:443/api/status": x509: certificate signed by unknown authority. Response: .

"filebeat.yml"

setup.kibana:
host: "127.0.0.1:443" 
username: "my_kibana_user"  
password: "{pwd}" 

the link work good in the browser
"https://127.0.0.1:443/api/status"

hello @Badr_Atouhlaten , welcome to the Elastic community!

how did you set up the certificate on Kibana?

what's the output of openssl s_client -showcerts -connect 127.0.0.1:443?

what version of Kibana and Filebeat are you running?

Thank you i managed to solve it with ssl.verification_mode: none

1 Like

@Badr_Atouhlaten

glad it is working now, but disabling the ssl verification is not the best practice in term of security