top

Creating Certificates

All applications must be signed with valid certificates before they can be installed or run. This topic describes how to create a certificate profile you can use to sign your applications.

According to the Tizen policy, all applications must be signed with valid certificates before they can be installed or run. The signature verifies the source of the application and makes sure it has not been tampered with since its publication. A certificate profile is a combination of the certificates used for signing, and it can be created using the Certificate Manager. The active certificate profile is used when packaging your application.

Prerequisites

To create or import certificates, you need:

Creating a Certificate Profile

A certificate profile consists of an author certificate and 1 or more distributor certificates.
To create a certificate profile:

  1. In the Tizen Studio menu, select "Tools > Certificate Manager".

    Figure 1. Launch the Certificate Manager

    Figure 1. Launch the Certificate Manager

    Important

    UI of Certificate Manager may freeze in one of the following steps when Tizen Studio and Certificate Manager run at the same time . To avoid this issue, close Tizen Studio window just after launching the Certificate Manager. This is a known issue and it will be fixed in Tizen Studio 2.1.

  2. Click "Cancel" on "Migration for Certificate Profile" dialog.

    Figure 2. Migration for Certificate Profile

    Figure 2. Migration for Certificate Profile

  3. Click "+".

    Figure 3. Create a new certificate profile

    Figure 3. Create a new certificate profile


    The certificate profile creation wizard opens.

  4. Click "Samsung".

    Figure 4. Select certificate profile type

    Figure 4. Select certificate profile type

  5. Select "TV", and click "Next".

    Figure 5. Select device type

    Figure 5. Select device type

  6. Enter a name for the certificate profile, and click "Next".

    Figure 6. Certificate profile name

    Figure 6. Certificate profile name

  7. Add an author certificate.
    You can create a new author certificate or import an existing one:

    • To create a new author certificate:
      a. Select "Create a new author certificate" and click "Next".

      Figure 7. Create new author certificate

      Figure 7. Create new author certificate

      b. Enter the required information, and click "Next".

      Figure 8. Define author information

      Figure 8. Define author information

      c. Sign in with your Samsung Developer account.

      Figure 9. Samsung Developer account sign-in

      Figure 9. Samsung Developer account sign-in

      d. Define a backup path for your certificate file, and click "Next".

      Figure 10. Define backup path

      Figure 10. Define backup path

      Important

      Keep your certificates backed up in a safe location. When you update your published applications, the update must be signed with the same author certificate as the original application. If the applications are signed with different author certificates, the update can be recognized as a different application and not an update.

    • If you already have an author certificate ("author.p12" file), you can import it.
      To import an existing author certificate:
      a. Select "Select an existing author certificate", and click "Next".

      Figure 11. Import existing author certificate

      Figure 11. Import existing author certificate

      b. Define the existing certificate, and click "Next".

      Figure 12. Define existing author certificate

      Figure 12. Define existing author certificate

  8. Add a distributor certificate:
    a. Select "Create a new distributor certificate" and click "Next".

    Figure 13. Create new distributor certificate

    Figure 13. Create new distributor certificate

    b. Define the privilege level you need, and add the device ID (DUID) for the target device. You can enter the DUID manually, or by clicking "+" next to the connected device in the list.

    Figure 14. Define privilege and device ID

    Figure 14. Define privilege and device ID

    Note

    To view the device ID, on your TV, go to "Menu > Support > Contact Samsung > Unique Device ID".

  9. To close the certificate profile creation wizard, click "Finish".

    Figure 15. Distributor certificate created

    Figure 15. Distributor certificate created

To allow installing your applications on the device, launch the Tizen Studio "Device Manager", right-click on a folder of the connected device filesystem and select "Permit to install applications" in the context menu.

Figure 16. Permit to install applications

Figure 16. Permit to install applications