01-17-2013 05:20 PM
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,
Solved! Go to Solution.
01-18-2013 09:49 AM
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?
01-18-2013 10:29 AM
Thanks for taking an interest in my problem. Here are the answers to your questions:
1) Java info:
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)
Windows 7 Ultimate (Build 7601: SP1)
3) File Exist:
Yes - I have installed the BlackBerry 10 WebWorks SDK 18.104.22.168
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
01-18-2013 10:55 AM
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"?
01-18-2013 11:17 AM
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.
01-18-2013 11:22 AM
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
01-18-2013 11:52 AM
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?
01-18-2013 01:00 PM
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".
01-18-2013 02:53 PM - edited 01-18-2013 03:01 PM
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 22.214.171.124>"C:\Program Files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK 126.96.36.199\third_party\node\windows\node.exe" "C:\Program Files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK 188.8.131.52\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\ForzaAzzu
[INFO] Info: Package created: C:\BB10WebApps\GraphicalOutput\device\ForzaAzzuri.
[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.