@Stefano Bonicatti I am using below command to connect to fleetDM server.
sudo /usr/bin/osqueryd
--host_identifier=instance
--enroll_tls_endpoint=/api/osquery/enroll
--config_plugin=tls
--config_tls_endpoint=/api/osquery/config
--config_path=/etc/osquery/osquery.conf
--config_refresh=10
--disable_distributed=false
--distributed_plugin=tls
--distributed_interval=3
--distributed_tls_max_attempts=3
--distributed_tls_read_endpoint=/api/osquery/distributed/read
--distributed_tls_write_endpoint=/api/osquery/distributed/write --logger_plugin=tls
--logger_tls_endpoint=/api/osquery/log
--logger_tls_period=10
--disable_events=false
--disable_audit=false
--audit_allow_user_events=true
--audit_allow_selinux_events=true
--audit_allow_process_events=true
--enable_syslog=true
--tls_hostname=FleetDM_IP:8080
--flagfile=/var/osquery/flagfile.txt
--enroll_secret_path=/var/osquery/enroll_secret
--tls_server_certs=/var/osquery/fleet.pem