Sign your repackaged apps

Before you can distribute your applications on the BlackBerry World storefront, you must first sign them. The signing process adds cryptographic hash values to your BAR files that help verify the authorship of your application to users and the BlackBerry 10 OS.

In this task, you'll use the batchbar-signer tool to sign multiple BAR files in a single batch process. You'll find batchbar-signer in the bin subfolder where you installed the BlackBerry Tools SDK.

Before you begin: Make sure you have configured your computer to sign applications. For more information, see Configure your computer to sign apps and create debug tokens.

  1. Save all files that you want to sign in the same directory. The batchbar-signer tool will ignore all files in subdirectories.
  2. On the command line, change to the bin subfolder where you installed the command line tools.
  3. Run the batchbar-signer tool using the following syntax:
    batchbar-signer <input_files> <developer_certificate> 
           <keystore_password> [<csk_password>] 
           [-t <output_folder>]

    This table explains the values the of the arguments used in the above syntax.

    Argument

    Description

    <input_files>

    This argument specifies either an individual unsigned BAR file, or a folder that contains one or more unsigned BAR files. Do not provide a folder that contains subfolders.

    <developer_certificate>

    This argument specifies the location and file name the developer certificate you created when you configured your computer to sign applications.

    <keystore_password>

    This argument specifies the password you defined when you created a developer certificate.

    <csk_password>

    This argument specifies the password you defined when you configured your computer to sign applications.

    -t <output_folder>

    This argument specifies the folder where the batchbar-signer tool saves the signed BAR files.

If, the batchbar-signer tool cannot sign one of the source BAR files, the tool logs the issue, but continues to sign the rest of the applications.

You are now ready to add your signed BAR files to the BlackBerry World storefront for distribution.

comments powered by Disqus