Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Testing and Deployment

by BlackBerry Development Advisor on ‎04-19-2011 01:56 PM - edited on ‎08-28-2013 04:37 PM by BlackBerry Development Advisor (111,480 Views)

Overview

 

The CSI and CSJ files that are 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.

 

This article explains how to backup and restore your BlackBerry® Code Signing Keys.  It covers both BlackBerry 10 OS Code Signing Keys and BlackBerry OS 7.x and lower Code Signing Keys.  Code signing keys can be restored to the original PC they were installed to or restored to another computer.  You can also use these steps to transfer your code signing keys to multiple computers and sign from any of them.

 

 

BlackBerry 10+ and BlackBerry PlayBook OS Code Signing Keys

 

The files that need to be backed up are yourkeyname.p12barsigner.csk and barsigner.db.  By default, the yourkeyname.p12 file will be named author.p12 and be located in the same directory as barsigner.csk and barsigner.db, however the tools do provide the option to specify a filename and directory of your choice when creating the .p12 file.  The barsigner files are located in the directories outlined below.  These are stored in a central location in the user's profile directory and used by all BlackBerry PlayBook™ OS and BlackBerry® Tablet OS development tools.  Their location will vary based on the operating system you use.  To restore your code signing keys, copy the files back to the directory outlined below.

 

  • 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

By default, %HOMEPATH% is C:\Documents and Settings on Windows XP and C:\Users on Windows Vista and Windows 7.

 

Note that a new p12 file can be created without requesting a new set of Tablet OS code signing keys from RIM®.

 

BlackBerry ID Tokens (BlackBerry SDK 10.2+)

 

BlackBerry ID Tokens (bbidtoken.csk) do not need to be backed up.  At any time you can log into your BlackBerry ID account and download a new BlackBerry ID Token. However, you can backup your BlackBerry ID Token (bbidtoken.csk) and Developer Certificate (author.p12) and restore them to the same or new computer.  They are located in the directory listed below.

 

  • 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

 

 

BlackBerry OS 7.x and Lower Code Signing Keys

 

The files that need to be backed up are sigtool.csk and sigtool.db and are located in the directories outlined below.  Their location will vary based on the tool used to install them.  All paths below are relative to the tool's installation directory.  To restore or enable your code signing keys in another application, copy the sigtool.csk and sigtool.db to the directories outlined below.

 

  • BlackBerry® Java® Plug-in for Eclipse®:  .\Eclipse\plugins\net.rim.ejde\vmTools
  • BlackBerry® Java® Development Environment (BlackBerry  JDE):  .\BlackBerry JDE #.#.#\bin
  • BlackBerry® WebWorks™ SDK:  .\BlackBerry WebWorks Packager\bin
Comments
by BlackBerry Development Advisor on ‎06-13-2011 04:36 PM

Unix OS location for BlackBerry Tablet OS

~/.rim

 

 

The file referred as yourkeyname.p12 is not actually called that, it is whatever develop call it.

The default one however located in ~/.keystore (on Unix), that is what other tools would use if one not specified.

Not sure how it is called on Windows, but if you run blackberry-signer without arg it should print the path.

 

by Developer on ‎08-31-2011 07:34 PM

Wouldn't it be cool if those keys were stored (and backed up) on RIMs servers? And that all we needed to sign our apps was our BB login? Or that signing would take place when you upload your .BAR to App World...?

by Developer ‎12-23-2012 12:13 AM - edited ‎12-23-2012 02:44 PM

If you want an easy tool to backup/restore your Signing Keys, check out SKBR, which you can download for free from http://SCrApps.org/blackberry/skbr.

by New Developer on ‎08-01-2014 03:13 AM

What if keys got revoked by mistake? Can we re-activate same keys?

by BlackBerry Development Advisor ‎08-01-2014 10:25 AM - edited ‎08-01-2014 10:25 AM

Hi vishalspatil13.

 

Please repost your question in our developer forums at http://supportforums.blackberry.com/t5/Testing-and-Deployment/bd-p/Testing_and_Deployment_of_Applica.... Somebody there may have encountered a similar situation and be able to help.

by BlackBerry Development Advisor on ‎08-01-2014 11:32 AM
Keys can't be reactivated after they have been revoked.
Users Online
Currently online: 16 members 2,403 guests
Please welcome our newest community members: