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

Web and WebWorks Development

Reply
Regular Contributor
andreyavram
Posts: 76
Registered: ‎06-02-2012
My Device: Playbook, BB10
Accepted Solution

BB 10 signing keys location

Hello,

 

I have a "working" environment for compiling and signing my apps on my computer(latest webworks sdk 2).

 

Now I've tried to compile my app using bb10 webworks, but it doesn't seem to find my keys.

The old webworks sdk is installed in d:\program files(x86) and bb10 is installed in d:\program files

I can confirm that I have author.p12 barsigner.csk and barsigner.db in %HOMEPATH%\AppData\Local\Research In Motion and in d:\Research in Motio(this folder created automatically in d: drive).

 

If I run:

D:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0.7>"D:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0.7\dependencies\node\node.exe" "D:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0.7\lib\bbwp.js" samples.zip -g <mypass> --buildId 10 -o C:\test\

 

(samples.zip being the lates bbUI.js with added id in config.xml):

I get this:
[INFO] Populating application source
[INFO] Parsing config.xml
[ERROR] Cannot sign application - failed to find signing keys

 

Where does it look for keys the bb10 sdk? Do I need to change my keys to use the new bb10? If so, it means I won't be able to update my app to run on bb10, without posting it again on AppWorld?(That's what I think it happens if you loose your keys).

 

Thanks in advance,

Andrei

BlackBerry Development Advisor
MSohm
Posts: 14,850
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: BB 10 signing keys location

It should look for them in the %HOMEPATH% directory you said contained them.  What OS are you using?  What does %HOMEPATH% actually resolve to?

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
Regular Contributor
andreyavram
Posts: 76
Registered: ‎06-02-2012
My Device: Playbook, BB10

Re: BB 10 signing keys location

%HOMEPATH% resolves to C:\Users\Andrei

Should I copy the keys in the root of this directory also?

BlackBerry Development Advisor
MSohm
Posts: 14,850
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: BB 10 signing keys location

That should be the right place.  You should be using bbwp to package the application, not node.exe.

 

Try using the command line outlined here:  https://developer.blackberry.com/html5/documentation/ww_developing/package_your_bb10_app_with_ww_sdk... 

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
Regular Contributor
andreyavram
Posts: 76
Registered: ‎06-02-2012
My Device: Playbook, BB10

Re: BB 10 signing keys location

I'm using this command to compile(before I copied the wrong output):
bbwp samples.zip -g <pass> -o C:\test
and it still says it can't find my keys.
BlackBerry Development Advisor
twindsor
Posts: 834
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: BB 10 signing keys location

What directory is samples.zip in when you run that command?

Tim Windsor
Open Source Technical Lead
Regular Contributor
andreyavram
Posts: 76
Registered: ‎06-02-2012
My Device: Playbook, BB10

Re: BB 10 signing keys location

for test purposes only, I copied it to the same directory as bbwp.bat

also, what bb10 sdk path should I use in the latest ripple?(0.9.4 chrome extension)
BlackBerry Development Advisor
twindsor
Posts: 834
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: BB 10 signing keys location

The SDK path should be like this: C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0.15

 

The one other thing that we were thinking is that the sdk might be expecting to be on the same drive as the keys. The script doesn't look like that should be happening, but it's a possibility and I don't know if that's been tested.

Tim Windsor
Open Source Technical Lead
Developer
rakesh86shankar
Posts: 1,005
Registered: ‎05-22-2009
My Device: Not Specified

Re: BB 10 signing keys location

I am gettting similar sort of issue,

 

D:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0.7>bbwp E:\A
ppBB10\HelloWorldBB10.zip -s E:\PackBB10 -g Pass123# -o E:\OutputBB10

D:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0.7>"D:\Progr
am Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0.7\dependencies\node
\node.exe" "D:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0
.7\lib\bbwp.js" E:\AppBB10\HelloWorldBB10.zip -s E:\PackBB10 -g Pass123# -o E:\O
utputBB10
[INFO]    Populating application source
[INFO]    Parsing config.xml
[ERROR]   Cannot sign application - failed to find signing keys

D:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0.7>

 

I cant find out the reason for this error

 

Regards

Rakesh Shankar.P

BlackBerry Development Advisor
twindsor
Posts: 834
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: BB 10 signing keys location

Your signing keys (and User directory) are also installed in C: I would assume?

Tim Windsor
Open Source Technical Lead