Set up for signing BlackBerry PlayBook apps
If you want to test your application on a tablet without signing it, you can create and install a debug token on the tablet. For more information about debug tokens, see Deploy to a BlackBerry PlayBook device.
Configure your computer to sign applications
The steps in this section apply to first-time configuration for signing and for requesting debug tokens.
If you are upgrading the BlackBerry WebWorks SDK, perform the steps outlined in the After an SDK upgrade section.
- Request
permission to sign your tablet application by completing the web form at https://www.blackberry.com/SignedKeys.
Remember the PIN number you provided.
- After your application is
accepted, you will receive two .csj registration files by email. Each file
arrives in a separate email message with information about the purpose of the
file attached. Save these files to a location on your computer.
- client-RDK-xxxxxx.csj - This is the file that you use to sign your applications and publish to the BlackBerry World storefront.
- client-PBDT-xxxxx.csj - This file is used to generate a debug token that you can use to test your application on a tablet. PBDT stands for "PlayBook Debug Token".
These files are used to install code signing keys. They can only be used once.
- Register
with the RIM Signing
Authority using your .csj registration file for application signing. From the
\bbwp\blackberry-tablet-sdk\bin folder located in
the BlackBerry WebWorks
SDK installation folder, run the .bar signing tool to enroll with the
signing authority server:
blackberry-signer -register -csjpin <csj pin> -storepass <KeystorePassword> <client-RDK-xxxxxx.csj file> <client-PBDT-xxxxx.csj file>where- <csj pin> is the PIN you specified on the web form when you requested code signing keys
- <KeystorePassword> is a password that you specify for the keystore
- <client-RDK-xxxxxx.csj file> is the app signing .csj file sent by email after you registered
- <client-PBDT-xxxxx.csj file> is the debug token .csj file sent by email after you registered
This command creates the following files: author.p12, barsigner.csk, and barsigner.db.
Example
blackberry-signer –register –csjpin 123456 –storepass rocket11 C:\keys\client-RDK-488888888.csj C:\keys\client-PBDT-488888888.csj
After running this command, the author.p12, barsigner.csk and barsigner.db files are created in the folder C:\Users\myname\AppData\Local\Research In Motion with a keystore password of rocket11. When we sign our applications, we'll use rocket11 as the keystore password.
Backing up your files
The CSJ files that you used to install your code signing keys can only be used once. They are disabled after a successful installation, which makes it important to back up your code signing keys after they have been installed. Code signing keys can be restored to the original computer that they were installed to or restored to another computer. You can also use this information to transfer your code signing keys to multiple computers and sign from any of them.
- Windows XP: %HOMEPATH%\Local Settings\Application Data\Research In Motion
- Windows Vista and Windows 7: %HOMEPATH%\AppData\Local\Research In Motion
- Mac OS: ~/Library/Research In Motion
- UNIX or Linux: ~/.rim
By default, %HOMEPATH% is C:\Documents and Settings on Windows XP and C:\Users on Windows Vista and Windows 7.
After an SDK upgrade
If you upgraded the BlackBerry WebWorks SDK and you want to use the sigtool.p12 file created by a previous version, rename this file to author.p12 and move it from the BlackBerry WebWorks SDK bbwp\bin folder to the appropriate common location, depending on your environment.
- Windows XP: %HOMEPATH%\Local Settings\Application Data\Research In Motion
- Windows Vista and Windows 7: %HOMEPATH%\AppData\Local\Research In Motion
- Mac OS: ~/Library/Research In Motion
- UNIX or Linux: ~/.rim