Hi Aatif, error 401 means credentials are invalid. Please make sure the combination of user and password is correct. The second password you enter should be the password of your Cumulocity account. You can also use tedge config list command to check if the URL and other settings are correct.
Are you using a single sign on user, as I believe this is the default for trial tenants (though Iâm not 100% sure about this). If so you can create another user in your tenant which has the âTenant Managementâ permissions to use for the certificate uploads.
Alternatively you can always manually upload the device public certificate in the Cumulocity IoT Device Management UI.
On the device, display the certificate on the console (if you get permission denied, then run the command again using sudo)
cat /etc/tedge/device-certs/tedge-certificate.pem
You should get something like this. Note: This this is just the public certificate, so there is no danger if other people see it.
Copy the printed certificate text (including the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines) and save it to a file on your local machine (e.g. device-001-certificate.pem)
Open a browser and navigate to your Tenant, and open the Device Management UI application
Navigate to Management > Trusted Certificates
Click Add trusted certificate (in the top right corner). Activate auto registration and Enable options. (Note: the certificate name does not matter too much, but using a descriptive name is always helpful for your future self). Upload the certificate file you saved locally in step 2.
On the device, you can speed up the reconnection attempt by reconnecting
What you are showing me there is a user account, with Tenant manager permissions. What is the tenant in which you are doing this? What is the url in the address bar at the top of the screen?
The user aatif312 does not exist. Instead you should a user name that is provided in your user management view youâve posted above (and have the Tenant Manager role).
I think you have common misunderstanding about tenants and user⌠What youâve created is a user in a specific tenant.
What you think is a âuserâ is actually a tenant.
When you do this: tedge cert upload c8y --user "aatif312"there is no user âaatif312â in your tenant âaatif312â but users systemuser, aatif_jariwala2 ⌠etc.