<?xml version="1.0" encoding="UTF-8"?>
<security-profiles>
    <![CDATA[
-------------------------------------------
Managing a Security Profile
-------------------------------------------

The command manages the security profiles, which are a set of signing
certificates for a Tizen application.


Syntax:
    tizen security-profiles <sub-command> [options]

Sub-commands:
    add [options]
        -n, --name
            Specifies the name of the security profile to add.
        -a, --path
            Specifies the directory path where the author certificate file is
            located. The format of the certificate is PKCS#12, and the file
            extension is .p12.
        -p, --password
            Specifies the password used to access the author certificate.
        -c, --ca
            Specifies the directory path where the author CA certificate file
            is located. The file extension of the CA certificate is .cer.
        -r, --rootca
            Specifies the directory path where the author root CA certificate
            file is located. The file extension of the root CA certificate is
            .cer.
        -d, --dist
            Specifies the directory path where the distributor certificate file
            is located. If you skip this option, the default distributor
            certificate file embedded in the Tizen SDK is used.
        -dp, --dist-password
            Specifies the password of the distributor certificate.
        -dc, --dist-ca
            Specifies the directory path where the distributor CA certificate
            file is located.
        -dr, --dist-rootca
            Specifies the directory path where the distributor root CA
            certificate file is located.
        --:
            Specifies the directory path where the profiles.xml file is located
            If you skip this option, the value of the default.profiles.path key
            in the CLI configuration is used to find the profiles.xml file,
            which consists of new security profiles that are generated in the
            <TIZEN_SDK_DATA>/keystore/ directory. The directory path is added
            to the CLI configuration.
    list [options]
        -n, --name
            Specifies the name of the security profile to list.
            If you skip this option, a set of the security profile names in the
            profiles.xml file is displayed.
        --
            Specifies the directory path where the profiles.xml file is located
    remove [options]
        -n, --name
            Specifies the name of the security profile to remove.
        --
            Specifies the directory path where the profiles.xml file is located


Examples:
    Add a new security profile:
        > tizen security-profiles add -n MyProfile -a C:\tizen-sdk- data\keysto
        re\author\mycert.p12 -p 1234
        No exist the default path of security profiles.
        author path: C:\tizen-sdk-data\keystore\author\mycert.p12
        author password: ****
        distributor1 path: C:\tizen-sdk\tools\certificate-generator\certificate
        s\distributor\tizen-distributor-signer.p12
        distributor1 password: *************************
        distributor1 CA path: C:\tizen-sdk\tools\certificate-generator\certific
        ates\distributor\tizen-distributor-ca.cer

        In Configuration, Set a default profile path to 'C:\tizen-sdk-data\ide\
        keystore\profiles.xml'.
        Wrote to 'C:\tizen-sdk-data\ide\keystore\profiles.xml'.
        Succeed to add 'MyProfile' profile.
        If want to sign by this, add the file of security profiles in CLI confi
        guration like 'tizen cli-config "default.profiles.path=C:\tizen-sdk-dat
        a\ide\keystore\profiles.xml"'.

    Display the security profile list:
        > tizen security-profiles list
        Loaded in 'C:\tizen-sdk-data\ide\keystore\profiles.xml'.
        ========================================
        Name
        ========================================
        MyProfile

    Display the detailed information of a security profile:
        > tizen security-profiles list –n MyProfile
        Loaded in 'C:\tizen-sdk-data\ide\keystore\profiles.xml'.
        ========================================
        'MyProfile' profile information
        ========================================
        author path: C:\tizen-sdk-data\keystore\author\mycert.p12
        author password: ****
        distributor1 path: C:\tizen-sdk\tools\certificate-generator\certificate
        s\distributor\tizen-distributor-signer.p12
        distributor1 password: *************************
        distributor1 CA path: C:\tizen-sdk\tools\certificate-generator\certific
        ates\distributor\tizen-distributor-ca.cer

    Remove the security profile:
        > tizen security-profiles remove
        Loaded in 'C:\tizen-sdk-data\ide\keystore\profiles.xml'.
        Wrote to 'C:\tizen-sdk-data\ide\keystore\profiles.xml'.
        Succeed to remove 'MyProfile' profile
    ]]>
</security-profiles>
