BlackBerry PlayBook Signing Process

This article shows how the BlackBerry PlayBook signing process works using the shell. First we setup the signing keys and the we create debug tokens to run unsigned apps on your tablet.

From RIM you got 2 files by mail:

  • Client-RDK-<NUMBER>.csj
  • Client-PBDT-<NUMBER>.csj

Setup your signing keys

(1) Configure your keystore to communicate with the RIMĀ® Signing Authority

blackberry-signer
-csksetup
-cskpass <create_a_password>

(2) Register with the RIM Signing Authority using your CSJ registration

blackberry-signer
-register
-csjpin <PIN you entered in the web registration form>
-cskpass <csk password from step 1>
< Client-RDK-<NUMBER>.csj>

(3) Create a Developer Certificate

blackberry-keytool
-genkeypair
-keystore <output_file.p12>
-storepass <create_a_password>
-dname "cn=<company_name>"
-alias author

(4) Sign an app

blackberry-signer
-keystore <your P12 file>
-storepass <your p12 file password>
<APP_BAR_file.bar>
author

Create a debug-token

(1) Register to be able to create debug-tokens:

blackberry-debugtokenrequest
-register
-cskpass <your csk password>
-csjpin <your CSJ PIN>
<path to Client-PBDT-<NUMBER>.csj>

(2) Request a debug-token for a tablet:

blackberry-debugtokenrequest
-cskpass <csk password>
-keystore <.p12 file>
-storepass <keystore password>
-deviceId 0x<PIN tablet>
<debug_token_file_name.bar>

(3) Upload the debug-token tot he tablet:

blackberry-deploy
-installDebugToken <path to debug token.bar>
-device <IP address of tablet>
-password <tablet password>

(4) Determine debug-token meta information:

blackberry-airpackager
-listManifest <path to debug token.bar>
Archive-Manifest-Version: 1.2
Archive-Created-By: BlackBerry Bar Packager v1.0
Package-Author: <YOUR NAME>
Package-Name: debug.token
Package-Version: 0.0.0.1
Package-Type: debug-token
Package-Author-Certificate-Hash: <SOME_HASH>
Package-Author-Id: <YOUR_AUTHOR_ID>
Package-Id: <SOME_ID>
Package-Version-Id: <SOME_ID>
Package-Issue-Date: 2011-05-01T09:13:02Z
Debug-Token-System-Actions: execute,multi_window,multi_instance
Debug-Token-Expiry-Date: 2011-05-31T09:13:02Z
Debug-Token-Device-Id: <YOUR_DEVICE_ID>

(5) Add blackberry-tablet.xml to the project:

<qnx>
  <icon>
    <image>blackberry-tablet-icon.png</image>
  </icon>
  <author><YOUR NAME></author>
  <authorId><YOUR_AUTHOR_ID></authorId>
  <category></category>
  <splashscreen></splashscreen>
  <buildId>349</buildId>
  <platformVersion>1.0.0.0</platformVersion>
</qnx>

(6) Now you can run unsigned apps on your tablet from within Adobe Flash Builder Burrito.

Schreibe einen Kommentar