Question
I followed the steps in the official guide for Tizen CLI (https://developer.tizen.org/development/tools/native-tools/command-line-interface#nw_package) but encountered an error when trying to install a WGT package:
$ tizen version
Tizen CLI 1.2.3
$ tizen install app.wgt
__return_cb req_id[161370002] pkg_type[wgt] pkgid[7YHmdOMvxK] key[error] val[81] error message: Non trusted certificate is used. Register valid certificate
__return_cb req_id[161370002] pkg_type[wgt] pkgid[7YHmdOMvxK] key[end] val[fail]
processing result : Unknown Error [81] failed
The error suggests the certificate signature is invalid. Is there a way to resolve this through the command line, or do I need to use the UI?
Additional observations:
- The profiles.xml setup requires manual intervention on OSX
- Certificate generation has directory creation issues with unexpected default paths
Answer
Problem Understanding
The error occurs when trying to install a WGT package using Tizen CLI due to an invalid or untrusted certificate. This typically happens when:
- The certificate used to sign the package is not properly registered
- The certificate has expired
- The certificate profile is not correctly configured
Solution Methods
-
Certificate Registration:
- Ensure you have a valid certificate registered in Tizen Studio
- Verify the certificate is properly configured in your project
-
Certificate Generation:
- Recreate your certificate using Tizen Certificate Manager
- Make sure to select the correct profile and directory path
-
Manual Profile Configuration:
- For OSX users, manually edit the profiles.xml file to ensure correct paths
- The file is typically located at:
~/Library/tizen/
Additional Tips
- Always verify your certificate's validity period
- Double-check the certificate profile matches your project type
- Consider using Tizen Studio's GUI tools for certificate management if CLI issues persist