Configure your computer to sign apps and create debug tokens

The following steps help you configure your computer to sign applications and create debug tokens. You should only perform these steps once.

Register with the BlackBerry Signing Authority

Create a BlackBerry ID token to be able to sign BlackBerry 10 OS applications. Once you confirm your password, the keystore file you download will contain your signing token.

Store the BlackBerry ID Token in the following directory based on your operating system:

  • Windows XP: %HOMEPATH%\Local Settings\Application Data\Research In Motion
  • Windows Vista, Windows 7, and Windows 8: %HOMEPATH%\AppData\Local\Research In Motion
  • Mac OS: ~/Library/Research In Motion
  • UNIX/Linux: ~/.rim

Create a Developer Certificate

Open a command prompt, navigate to the \bin folder in the BlackBerry Tools for Android Development folder, and run the following command.

Use the same password that you used to create the BlackBerry ID token.

blackberry-keytool -genkeypair -storepass <storepass> -dname "cn=
<company_name>"

After you run this command, the author.p12 file is created in the following folder:

  • Windows XP: %HOMEPATH%\Local Settings\Application Data\Research In Motion
  • Windows Vista, Windows 7, and Windows 8: %HOMEPATH%\AppData\Local\Research In Motion
  • Mac OS: ~/Library/Research In Motion
  • UNIX / Linux: ~/.rim

You should protect the .p12 file and its password.

Configure application signing through a proxy server

During the signing process, your computer connects to the BlackBerry Signing Authority. If your computer connects to the Internet through a proxy server, you should append the options in the following table to your blackberry-signer and blackberry-debugtokenrequest commands.

Option

Description

-proxyhost <host>

This option specifies the network host that provides the proxy service. The host parameter can be an IP address or a fully qualified domain name.

-proxyport <port>

This option specifies the port number on your proxy server through which blackberry-signer or blackberry-debugtokenrequest should communicate with the RIM Signing Authority.

-proxyusername

<user name>

This option allows you to provide your user name if your proxy server requires authentication.

-proxypassword

<password>

This option allows you to provide your password if your proxy server requires authentication.

Example: blackberry-signer command-line

blackberry-signer -proxyhost 192.168.1.1 -proxyport 80 -register -csjpin 
<PIN> -storepass <KeystorePassword> <RDK_CSJFile> <PBDT_CSJFile>

Example: blackberry-debugtokenrequest command-line

blackberry-debugtokenrequest -proxyhost 192.168.1.1 -proxyport 80 
-storepass <password> -devicepin <device-pin> [<options>]
<debug-token-bar-file>
comments powered by Disqus