Search code examples
blackberry-10

Manually create Debug Token for BB10 fails


i want to create a debug token for my dev device with the native SDK (momentics), but it fails without any error message (just: "error creating debug token).

Now i use the command line tools.

But:

1. If i want to request a token:

./blackberry-debugtokenrequest -storepass xxxxx -devicepin xxxxx -csjpin xxxxx client-RDK-00000.csj

i get:

Error: Not yet registered to request debug tokens

2. So i want to register (i'm already registered, but ok...):

./blackberry-debugtokenrequest -register -storepass xxxxx -csjpin xxxxx client-PBDT-00000.csj

Error: Error: Unable to register client '00000' because there are no more registration attempts. If you have already registered with this server, then you should restore your signing keys from backup. If you don't have a backup of the keys, then you can order a new set of keys at www.blackberry.com/go/codesignin

I have a backup, but what should i do with it?

I want to create a debug token, but the message says: not yet registered. So i want to register, and it says: already registered...


Solution

  • First things first, you only need the CSJ files to register with RIM, which you only need to do once. You can then safely delete them and your CSJ PIN.

    If you have a backup file it means you have already registered which means you shouldn't be using the -register flag when attempting to create a debug token.

    To restore your backup code signing key follow these instructions: http://supportforums.blackberry.com/t5/Testing-and-Deployment/Backup-and-Restore-BlackBerry-Code-Signing-Keys/ta-p/837925

    Once you have restored your code signing key you can create a debug token using the following command:

    blackberry-debugtokenrequest -storepass developercertpass -devicepin 50F2D211 dt.bar