MQTT API Key create failed, The Things Stack v3.2.2

Hello everyone,

I have installed the stack on my server, but when I tried to create mqtt api key (as illustrated on guide https://thethingsstack.io/v3.2.0/guides/getting-started/mqtt/), it failed as below

root@bjkjy-sys-ibase013:/home/lorattn_v322/CA3# ttn-lw-cli applications api-keys create --name mqtt-client --application-id 0000000000000001 --right-application-traffic-read --right-application-traffic-down-write –ca cacert.pem
oauth2: cannot fetch token: 404 Not Found
Response: {“code”:5,“message”:“error:pkg/identityserver/store:access_token_not_found (access token not found)”,“details”:[{"@type":“type.googleapis.com/ttn.lorawan.v3.ErrorDetails",“namespace”:“pkg/identityserver/store”,“name”:“access_token_not_found”,“message_format”:"access token not found”,“code”:5}]}

cacert.pem is a self-signed root certificate, if not use it, it would fail as below

root@bjkjy-sys-ibase013:/home/lorattn_v322/CA3# ttn-lw-cli applications api-keys create --name mqtt-client --application-id 0000000000000001 --right-application-traffic-read --right-application-traffic-down-write
Post https://localhost:8885/oauth/token: x509: certificate signed by unknown authority

I have no idea what the problem it is, and any body know how to fix it?

Best Regards

first check out are you login or not
if not login please provided the login
if login but get same error once check it CLI configuration set or not
best way to for configuration to CLI using .ttn-lw-cli.yml file and save with credentials details
please refresh this link for best understating
1.https://enterprise.thethingsstack.io/v3.4.2/guides/cloud-hosted/addresses/
2.https://enterprise.thethingsstack.io/v3.4.2/guides/getting-started/cli/

command:-
ttn-lw-cli login