Configure app signing from the command-line
The following steps help you configure your computer to sign apps. You should perform these steps only once.
For information about configuring app signing using the QNX Momentics IDE, see Launch the Deployment Setup Wizard in the Getting Started Guide.
You can find blackberry-signer and blackberry-keytool in the bin subfolder where you installed the BlackBerry Native SDK for Tablet OS for the BlackBerry Tablet OS.
Before you begin:
- Request permission to sign apps by completing the web form at http://developer.blackberry.com/playbook/native/signingkey . After your application is accepted, you receive a CSJ registration file by email.
- If you connect to the Internet through a proxy server, you must specify additional command line options to contact the RIM Signing Authority. For more information about using a proxy server from the command line, see Using a proxy server from the command line.
Register with the RIM Signing Authority using your CSJ registration file for application signing by using the blackberry-signer tool. You need to specify a keystore password in the -storepass parameter, as well as the registration PIN you entered in the PIN field on the web form when you requested permission to sign applications. You can also configure your computer to create debug tokens at the same time, by including the debug token CSJ file in the blackberry-signer command as follows:
blackberry-signer -register -csjpin PIN -storepass KeystorePassword AppSigningCSJFile DebugTokenCSJFile
After you finish:
If you received your signing keys before August 9, 2011, you must manually create a Developer Certificate by using the blackberry-keytool tool. Ensure that the common name (company name) parameter matches the author element in your bar-descriptor.xml file. For more information about creating a bar-descriptor.xml file, see "Set capabilities for bar-descriptor.xml" in the IDE User's Guide.
The following command creates a Developer Certificate, and the password you specify in the -storepass parameter allows you to use the .p12 file to sign BAR files. You should protect the .p12 file and its password.
blackberry-keytool -genkeypair -storepass <storepass> -dname "cn=<company_name>"