Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
03-24-2011 03:01 PM
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 Is the best bet to get a new key file and start from scratch?
03-24-2011 03:20 PM
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.
03-24-2011 04:44 PM
I know that now. However, the question remains as to why the signing is failing now when it worked previously.
03-24-2011 04:56 PM
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.
03-24-2011 05:22 PM
The folder (on Win 7 it is C:\Users\...\AppData\Local\Research In Motion) has the following in it:
03-24-2011 09:05 PM
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.