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

Reply
Contributor
codemonkeyken
Posts: 10
Registered: ‎01-17-2013
My Device: Dev Alpha A
My Carrier: None
Accepted Solution

Error while signing my BlackBerry 10 app (Error: Keystore load)

Hello all,

 

I am a beginner to BB10 app development and I have a question I am hoping someone can help me with. I am trying to sign my app using the Command window. I am following the instructions at this URL: Set up for signing BlackBerry 10 apps.

 

I have completed steps one and two but I am getting an error during step three. Using the example I saved my keys out to a folder and I am giving it the correct pin and storepass. I then get the prompt to enter my passphrase for the keystore. At this point I keep getting the error: 

Error: Keystore load: C:\Users\Dev2\AppData\Local\Research In Motion\author.p12 (The system cannot find the file specified)

 

I have tried the same thing on a virtual machine and I get the same error.

 

Can someone please help me find a solution for this error?

 

Thanks in advance,

Ken

Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Error while signing my BlackBerry 10 app (Error: Keystore load)

Which SDK are you using?  What OS are you running?  Does the file it's looking for exist?  Where does %HOMEPATH% resolve to on your PC?

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
Please use plain text.
Contributor
codemonkeyken
Posts: 10
Registered: ‎01-17-2013
My Device: Dev Alpha A
My Carrier: None

Re: Error while signing my BlackBerry 10 app (Error: Keystore load)

HI Mark,

 

Thanks for taking an interest in my problem. Here are the answers to your questions:

 

1) Java info:

C:\Windows\system32>java -version
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

 

2) OS:

Windows 7 Ultimate (Build 7601: SP1)

 

3) File Exist:

Yes - I have installed the BlackBerry 10 WebWorks SDK 1.0.4.5

 

4) I have added the following to the "Path" System Variable:

 C:\Program Files (x86)\Java\jre7\bin which id the location of Java install

 

And finally this is the command statement I am using after navigating to my SDK's \dependencies\tools\bin folder:

blackberry-signer –register –csjpin MYPIN –storepass SAMEASMYPIN C:\BB10Keys\client-RDK-xxxxxxxxx.csj C:\BB10Keys\client-PBDT-xxxxxxxxx.csj

 

Thanks again,

Ken

 

 

 

Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Error while signing my BlackBerry 10 app (Error: Keystore load)

Does "C:\Users\Dev2\AppData\Local\Research In Motion\author.p12" exist on your machine?  Type %HOMEPATH% in  Start -> Run.  Does it open to "C:\Users\Dev2"?

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
Please use plain text.
Contributor
codemonkeyken
Posts: 10
Registered: ‎01-17-2013
My Device: Dev Alpha A
My Carrier: None

Re: Error while signing my BlackBerry 10 app (Error: Keystore load)

Running %HOMEPATH% does take me to C:\Users\Dev2\

 

The author.p12 file never gets created in that folder. It gets as far as creating the barsigner.db file with 0 KB and that is it. I have never been able to successfully create the author.p12 file.

 

Ken

Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Error while signing my BlackBerry 10 app (Error: Keystore load)

Does your account have write access to that folder?  I'm seen a few people with a strange windows permission setup that results in that directly being read-only.

 

You can also try to install using this:  BlackBerry Tablet OS Graphical Aid

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
Please use plain text.
Contributor
codemonkeyken
Posts: 10
Registered: ‎01-17-2013
My Device: Dev Alpha A
My Carrier: None

Re: Error while signing my BlackBerry 10 app (Error: Keystore load)

Mark,

 

Thanks for your patience in this process.

 

OK, so I made sure the folder was not Read Only and that my username had Full Control of the folder. My attempt failed again. I then added the Everyone user to the folder and tried again but that failed.

 

So then I installed the Graphical Aid and tried the Configuration Wizard. I was able to successfully create the Developer Certificate and it exists in the folder "C:\Users\Dev2\AppData\Local\Research In Motion"

 

However, on the Register Tablet OS Code Signing Keys dialog box I got the following error when I hit Register:

 

Error: Error: Unable to register client '#######' 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/codesigning

 

After hitting Next I also got:
CSK file already exists.  Use -cskdelete to delete first.

 

So what is my next step. Order new keys? Or is it as simple as overwriting the exisiting keys with the ones I got in my original email?

 

Ken

 

 

 

Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Error while signing my BlackBerry 10 app (Error: Keystore load)

The CSJ files you sent can only be used once.  Looks like the registration was partial, so you'll need to order new keys.  Before you install your new keys delete barsigner.db and barsigner.csk from "C:\Users\Dev2\AppData\Local\Research In Motion".

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
Please use plain text.
Contributor
codemonkeyken
Posts: 10
Registered: ‎01-17-2013
My Device: Dev Alpha A
My Carrier: None

Re: Error while signing my BlackBerry 10 app (Error: Keystore load)

Okay - I will order new keys and keep you posted on my progress so that if I am susccessful you will then be able to close this thread.

Please use plain text.
Contributor
codemonkeyken
Posts: 10
Registered: ‎01-17-2013
My Device: Dev Alpha A
My Carrier: None

Re: Error while signing my BlackBerry 10 app (Error: Keystore load)

[ Edited ]

OK - so I got the new keys. I deleted the two exisiting files you mentioned above and I was able to succcessfully register the keys on my computer using the Graphical Aid tool. I have three files now in my AppData\Local\Research In Motion folder.

 

I then went to the Build WebWorks tab and configured it by pointing it to my project zip folder and to the output folder. I hit enter and this is what I get:

 

 C:\Program Files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.5>"C:\Program Files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.5\third_party\node\windows\node.exe" "C:\Program Files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.5\lib\bbwp.js" C:\inetpub\wwwroot\ForzaAzzuri.zip --buildId 0 -g MYPASSWORD -o C:\BB10WebApps\GraphicalOutput
[INFO]    Populating application source
[INFO]    Parsing config.xml
[INFO]    Generating output files
[INFO]    Info: Package created: C:\BB10WebApps\GraphicalOutput\simulator\ForzaAzzuri.bar
[INFO]    Info: Package created: C:\BB10WebApps\GraphicalOutput\device\ForzaAzzuri.bar
[ERROR]   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 also got the same error when I tried to Package and Sign through Ripple.

 

Ken

Please use plain text.