```fleetctl login ``` is throwing an error: ```Lo...
# fleet
s
Copy code
fleetctl login
is throwing an error:
Copy code
Login failed: POST /api/v1/fleet/login: Post "<https://localhost:8080/api/v1/fleet/login>": x509: certificate is not valid for any names, but wanted to match localhost
a
If you point fleetctl to localhost, I believe you need to use
--tls-skip-verify
. See: https://github.com/fleetdm/fleet/blob/main/docs/1-Using-Fleet/2-fleetctl-CLI.md
But don't use this flag in production if you have Fleet running on a remote machine.
m
Instead of using localhost, use the URL of your fleet server because the certificate is for the URL. Of course you will have to do the skip verify Avi mentions if you do not trust the CA certificate for your fleet server cert on that machine. Error is you are accessing "localhost" but certificate is issued to "yourdomain.xyz".
s
Got it. Thanks @Avi Norowitz and @Mystery Incorporated It is now working.
👍 1