Question
I'm using Tizen Studio 2.3 CLI version and encountering an issue when trying to set a certificate profile. When I run the command:
tizen security-profiles add -n gabeschneider -a ./tizen-studio-data.3/keystore/author/author.p12 -p [password]
I get the error message: "Not found a file of security profiles. Please check specified path."
The path definitely exists and works outside of Tizen Studio. What could be causing this problem?
Answer
Problem Understanding
The user is experiencing difficulties adding a security profile in Tizen Studio CLI due to path-related issues. Despite the path being valid outside Tizen Studio, the system fails to recognize the certificate file.
Solution Methods
-
Use Absolute Paths
- Try using the full absolute path instead of relative path for the certificate file.
-
Verify Profiles Path Configuration
- Check your current profiles path configuration using:
tizen cli-config -l - Look for the profiles.xml file in the listed path.
- Check your current profiles path configuration using:
-
Set Correct Profiles Path
- If needed, set the correct profiles path using:
tizen cli-config -g default.profiles.path=[your_path]/profiles.xml - Example path:
tizen cli-config -g default.profiles.path=~/workspace/.metadata/.plugins/org.tizen.common.sign/profiles.xml
- If needed, set the correct profiles path using:
-
List Security Profiles
- After configuration, verify your security profiles with:
tizen security-profiles list
- After configuration, verify your security profiles with:
Code Examples
# Example of adding profile with absolute path
tizen security-profiles add -n gabeschneider -a /home/user/tizen-studio-data.3/keystore/author/author.p12 -p [password]
# Example of setting profiles path
tizen cli-config -g default.profiles.path=/home/user/workspace/.metadata/.plugins/org.tizen.common.sign/profiles.xml
Additional Tips
- Ensure the certificate file has proper permissions
- Verify the password is correct
- Check for any special characters in the path that might cause issues
- Consider reinstalling Tizen Studio if the problem persists