If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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
My Carrier: Orange
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

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

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
Please use plain text.
Regular Contributor
andreyavram
Posts: 76
Registered: ‎06-02-2012
My Device: Playbook, BB10
My Carrier: Orange

Re: BB 10 signing keys location

%HOMEPATH% resolves to C:\Users\Andrei

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

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

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
Please use plain text.
Regular Contributor
andreyavram
Posts: 76
Registered: ‎06-02-2012
My Device: Playbook, BB10
My Carrier: Orange

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.
Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 812
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Bell

Re: BB 10 signing keys location

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

Tim Windsor
Application Development Advisor II
Please use plain text.
Regular Contributor
andreyavram
Posts: 76
Registered: ‎06-02-2012
My Device: Playbook, BB10
My Carrier: Orange

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)
Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 812
Registered: ‎07-15-2008
My Device: Z10
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
Application Development Advisor II
Please use plain text.
Developer
rakesh86shankar
Posts: 998
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

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 812
Registered: ‎07-15-2008
My Device: Z10
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
Application Development Advisor II
Please use plain text.