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

Adobe AIR Development

Reply
Contributor
Posts: 14
Registered: ‎05-18-2011
My Device: Playbook 32GB
My Carrier: ?

Need some help creating a debug token (MAC OSX)

Hi,
I am a Mac & FDT user, as a result I need to create tokens etc via Terminal

 

So far I have:

Successfully created a CSK file using:

./blackberry-signer -csksetup -cskpass <myPassword>

// ouptput:

CSK file created.

 

Then following the instructions from here:
http://docs.blackberry.com/en/developers/deliverables/23959/Create_a_debug_token_cmd_line_1585437_11...
 
I have registered my CSJ registration file:
blackberry-debugtokenrequest -register -cskpass <myPassword> -csjpin <myCSJ_PIN> </Users/Home/_keys/client-PBDT-01234567890.csj>

//output:
Successfully registered with server.


Next I attempt to generate a debug_token.bar for my PlayBook using the following command line:


./blackberry-debugtokenrequest -cskpass <myPassword> -keystore /Users/Home/_keys/RIM/blackberryDevCert.p12 -storepass <myPassword> -deviceId 0x<playbookPIN> /Users/Home/_keys/RIM/debug_token.bar

I get the following error:
// output:
debugtokenrequest error: Can't find resource for bundle net.rim.device.codesigning.debugtoken.DebugTokenRequestResources, key developer certificate and private key not found in keystore or store password not supplied



I have double check/triple checked the passwords for -cskpass & -storepass are correct as is -keystore location for the .p12


Incidentally the password for cskpass & storepass are the same, but I can't imagine that would be an issue.

 

Could someone please explain where I have gone wrong?

Contributor
Posts: 14
Registered: ‎05-18-2011
My Device: Playbook 32GB
My Carrier: ?

Re: Need some help creating a debug token (MAC OSX)

I would also like to add that I used the tutorial on this page to double check that I entered everything correctly:

 

 http://www.marco-maniscalco.de/?p=1464

 

Does anyone have any advice?

 

 

 

 

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Need some help creating a debug token (MAC OSX)

Did you register both CSJ files you were sent?  They would have been sent in two different email messages.  One would have RDK in the filename and the other PBDT.  The first is used for signing an application, the second for creating debug tokens.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Contributor
Posts: 14
Registered: ‎05-18-2011
My Device: Playbook 32GB
My Carrier: ?

Re: Need some help creating a debug token (MAC OSX)

[ Edited ]

Hi Mark,

Thanks for getting back to me

 

Yes, I have registered my DebugToken .csj using:

 

./blackberry-debugtokenrequest -register -cskpass <myPassword> -csjpin <myPassword> /Users/Home/_keys/RIM/client-PBDT-01234567890.csj

 

// Output:

Successfully registered with server.

 

And for the RDK .csj I entered:

 

./blackberry-signer -register -csjpin <myPassword> -cskpass <myPassword> /Users/Home/_keys/RIM/client-RDK-01234567890.csj

The first time there was no server response, upon entering it again I saw:

 

// Output:

barsigner error: already registered with RDK

 

Which lead me to the conclusion that it must have successfully registered with server.

 

 

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Need some help creating a debug token (MAC OSX)

When you created your developer certificate (the .p12 file) did you specify "author" in the -author parameter?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Contributor
Posts: 14
Registered: ‎05-18-2011
My Device: Playbook 32GB
My Carrier: ?

Re: Need some help creating a debug token (MAC OSX)

[ Edited ]

Hi Mark

 

it appears I didn't use -author , I used -alias entered in the following format

 

./blackberry-keytool -genkeypair -keystore /Users/Home/_keys/RIM/blackberryDevCert.p12 -storepass <myPassword> -dname "cn=****" -alias Firstname Lastname

// output:

keytool error: java.lang.RuntimeException: Usage error, Lastname is not a legal command

 

./blackberry-keytool -genkeypair -keystore /Users/Home/_keys/RIM/blackberryDevCert.p12 -storepass <myPassword> -dname "cn=****" -alias "Firstname Lastname"

 

// output: This appeared to be successful as a .p12 was created

 

The directions on http://docs.blackberry.com/en/developers/deliverables/23959/Configure_app_signing_from_cmd_line_1463... point 3 tells us to enter:

 

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

 

So is the documentation incorrect?

Did I do something wrong?

 

George

 

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Need some help creating a debug token (MAC OSX)

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

 The documentation is correct here, but note that you only replace the parameters with <>.  -alias author should remain as is (you need to use author).

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Contributor
Posts: 14
Registered: ‎05-18-2011
My Device: Playbook 32GB
My Carrier: ?

Re: Need some help creating a debug token (MAC OSX)

So you are telling me I actually need to enter:

 

./blackberry-keytool -genkeypair -keystore /Users/Home/_keys/RIM/blackberryDevCert.p12 -storepass <myPassword> -dname "cn=****" -alias author



 

?

If so I can attempt this again in a few hours Smiley Happy

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Need some help creating a debug token (MAC OSX)

Correct.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Highlighted
Contributor
Posts: 14
Registered: ‎05-18-2011
My Device: Playbook 32GB
My Carrier: ?

Re: Need some help creating a debug token (MAC OSX)

[ Edited ]

Mark, thank you! that works nicely now!

 

I have used Richard Lords ANT Build files to help me build/deploy my test app.

 

And just a pointer to others reading this thread, dont forget to launch a terminal window for debugging:

 

./fdb


once launched type run at the (fdb) prompt:

(fdb) run

 

then once connected to the SWF on the Playbook type continue at the (fdb) prompt, so:

(fdb)
continue

 

thanks again

 

George