```fleetctl login ``` is throwing an error: ```Lo...
# fleet
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
If you point fleetctl to localhost, I believe you need to use
. 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.
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".
Got it. Thanks @Avi Norowitz and @Mystery Incorporated It is now working.
👍 1