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
Highlighted
Regular Contributor
Posts: 68
Registered: ‎03-18-2011
My Device: Playbook Developer
My Carrier: none

Signing Help

Managed to sign the first two versions of my app, but am now hitting a wall.

 

Steps the first time:

1) Obtained a key file (CSJ file) from Blackberry

2) Created the CSK file 

              blackberry-signer -csksetup -cskpass ********

3) Registered with the server

              blackberry-signer -register -csjpin ********* -cskpass ********* theCSJFile

4) Got the notice of successful registration

5) Created the p12 file

              blackberry-keytool -genkeypair -keystore dev_cert.p12 -storepass ********** -dname "cn=Berfield Productions" -alias author

6) Signed with RDK

              blackberry-signer -verbose -cskpass ********** -keystore dev_cert.p12 -storepass ******** myGame.bar RDK

7) Signed with author

blackberry-signer -keystore dev_cert.p12 -storepass ********** myGame_signed.bar author

 

And it all worked.

 

Second time, got confused and created a new dev_cert.p12, but managed to get it all to work.

 

Now trying for my third build and am getting an error when I try the first signing (RDK):

barsigner error: Certificate chain not found for: RDK. RDK must reference a valid Keystore key entry containing a private key and corresponding public key certificate chain.

 

I am confused Smiley Sad Is the best bet to get a new key file and start from scratch?

 


Two apps and counting:
Video Poker: http://appworld.blackberry.com/webstore/content/33870
Classic Slots: http://appworld.blackberry.com/webstore/content/40279
Developer
Posts: 158
Registered: ‎01-11-2010
My Device: 9700 | 9900 | PlayBook | Dev Alpha
My Carrier: Many :)

Re: Signing Help

the p12 file does *not* need to be recreated.  the csj file and p12 file are created / imported / registered the first time

 

 

once those are set up, you'll be free to *use* them to create signed bar files.

- - - - - - - - - -
Regular Contributor
Posts: 68
Registered: ‎03-18-2011
My Device: Playbook Developer
My Carrier: none

Re: Signing Help

I know that now. However, the question remains as to why the signing is failing now when it worked previously.

Two apps and counting:
Video Poker: http://appworld.blackberry.com/webstore/content/33870
Classic Slots: http://appworld.blackberry.com/webstore/content/40279
Developer
Posts: 382
Registered: ‎05-19-2008
My Device: BlackBerry Torch
My Carrier: AT&T

Re: Signing Help

Are you perhaps logging into the box as a different user, or perhaps are you on a different box? The CSJ can only be registered once, and when it is several files are put into the LocalSettings directory under the user-specific directories in  windows & Linux. If you are using a different user, those files wouldn't be there and therefore wouldnt be found. The error seems to indicate this.

 

If you are using XP, the files are located in \Documents & Settings\<user>\Local Settings\Application Data\Research In Motion. These whole Local Setting directory is hidden by default on XP, do you will need to adjust your Folder Options to see it. Even if you are logged in as the same user, it is probably worth checking that directory out. I think there are 3 files supposed to be there.

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Regular Contributor
Posts: 68
Registered: ‎03-18-2011
My Device: Playbook Developer
My Carrier: none

Re: Signing Help

The folder (on Win 7 it is C:\Users\...\AppData\Local\Research In Motion) has the following in it:

barsigner.csk

barsigner.db

Two apps and counting:
Video Poker: http://appworld.blackberry.com/webstore/content/33870
Classic Slots: http://appworld.blackberry.com/webstore/content/40279
Regular Contributor
Posts: 68
Registered: ‎03-18-2011
My Device: Playbook Developer
My Carrier: none

Re: Signing Help - solved

Just got a new csj file from Blackberry and started from scratch. Worked perfectly. Not sure what was screwed up before, but I am now good to go. New version is signed and submitted.

Two apps and counting:
Video Poker: http://appworld.blackberry.com/webstore/content/33870
Classic Slots: http://appworld.blackberry.com/webstore/content/40279