I'm trying to enroll a host using the fleet to properly use EndPoint Security, but trying directly causes problems so I resorted to the following commands:
.\elastic-agent enroll --fleet-server-es=https://:443 --fleet-server-service-token= --fleet-server-policy=
And now it generates the error that appears in the first image, I would like to know how I can solve these problems to add the hosts with fleet