Changes to code signing
Signing apps in BlackBerry WebWorks 2.0 is different from previous versions of BlackBerry WebWorks. The signing process itself has been streamlined; simply building the app in release mode will result in a signed application. More significantly, however, is that BlackBerry WebWorks 2.0 uses the BlackBerry ID token for signing, which aligns your keystore to your BlackBerry ID account.
To sign BlackBerry WebWorks 2.0 apps, you'll need to create a BlackBerry ID token (bbidtoken.csk) and use it to create a new developer certificate. The resulting certificate is used to sign your release-ready code, and also to create debug tokens that allow you to test your app on a BlackBerry device.
For more information about getting and using the BlackBerry ID token, see Set up your computer for testing and signing
If you are updating an earlier version of your app that was affiliated with a signing authority token (barsigner.csk), you can link the signing authority token to your new BlackBerry ID token (bbidtoken.csk). By linking these accounts, your updated BlackBerry WebWorks 2.0 app will keep continuity with the previous versions of your app, and will simply appear to end users as an upgrade, rather than a new app altogether. For more information, see Link a BlackBerry ID account to a signing authority account.
Link a BlackBerry ID account to a signing authority account
Using command-line tools, you can link a signing authority account to a BlackBerry ID account. If you use this, you can continue to produce .bar files with the same Package-Author-Id, Package-Id and Application-Id, so that you can create upgraded versions of your exisiting application. When using the command-line tools, you have a few options:
- Link your current barsigner.csk to the bbidtoken.csk, where both passwords are
blackberry-signer -linkcsk –cskpass <Legacy CSK password or BBID Token CSK password>
- Link your current barsigner.csk to the bbidtoken.csk, where bbidtoken.csk is in a
custom location and both passwords are the same:
blackberry-signer -linkcsk –bbidtoken <BBID Token CSK filename> –cskpass <Legacy CSK password or BBID Token CSK password>
- Link your current barsigner.csk to the bbidtoken.csk, when both are in the default
blackberry-signer -linkcsk –oldcskpass <Legacy CSK password> –bbidcskpass <BBID Token CSK password>
Last modified: 2013-11-27