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
Developer
nathanpc
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha
Accepted Solution

[ERROR] Cannot sign application - failed to find signing keys

I've done some apps using WebWorks in the beginning of the year and they all signed fine. After 4 months without doing any BlackBerry development because I had other projects in other platforms I've returned, but now when I try to sign my applications I keep getting this error:

Nathan-Camposs-MacBook-Pro:BBApp Nathan$ /Developer/SDKs/Research\ In\ Motion/BlackBerry\ WebWorks\ SDK\ for\ TabletOS\ 2.2.0.5/bbwp/bbwp build/BBApp.zip -g ******** -buildId 1 -o build/
[INFO]      		Parsing command line options
[ERROR]     		Cannot sign application - failed to find signing keys
Nathan-Camposs-MacBook-Pro:BBApp Nathan$

I've tried using -cskdelete and registering new keys, it all worked and I received the emails from RIM that all my keys got registered successfully, but I'm still getting the same error after that. Anyone have a solution?

If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: [ERROR] Cannot sign application - failed to find signing keys

[ Edited ]

Hi there,

 

Just to confirm (I'm assuming OSX here), can you please verify whether author.p12, barsigner.db, and barsigner.csk exist in the following folder:

~/Library/Research In Motion

 

If another OS, you can check the default folder here:

https://developer.blackberry.com/html5/documentation/signing_setup_tablet_apps_1920009_11.html

 

If you could provide a screenshot of that folder's contents, that would be ideal.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
nathanpc
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha

Re: [ERROR] Cannot sign application - failed to find signing keys

The blackberry-signer created the files inside ~/Research In Motion/:

This is the content of ~/Library/Research in Motion/:

I've tried copying the files to the directory you suggested and sadly I'm still getting the same error. :smileysad:

If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: [ERROR] Cannot sign application - failed to find signing keys

And just to confirm, do the contents of barsigner.db look similar to this:

 

#Do not edit manually.  Generated automatically by RIM tools.
#Thu Mar 15 17:22:48 EDT 2012
RDK=##########http\://www.rim.net/Websigner/servlet/RDK-Waterloo
PBDT=##########http\://www.rim.net/Websigner/servlet/PBDT-Waterloo

Note that ########## will correspond to your own client ID. The important part is that both RDK and PBDT are referenced in this file.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
nathanpc
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha

Re: [ERROR] Cannot sign application - failed to find signing keys

Both are there and the Client IDs are equal and match with the signing keys I used.

If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: [ERROR] Cannot sign application - failed to find signing keys

Honestly, right now I am not sure. But I've reached out to my colleagues to get their input. From what I'm seeing, it appears that you have a proper environment setup. I will let you know as soon as I hear back and will continue brainstorming in the meantime.

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
nathanpc
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha

Re: [ERROR] Cannot sign application - failed to find signing keys

Thanks very much. I'll be waiting anxiously.

If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: [ERROR] Cannot sign application - failed to find signing keys

Another check, are all three signing files greater than 0kb? barsigner.db would have to be if its contents matched the previous example, but can you please confirm whether author.p12 and barsigner.csk are also both over 0kb in size?

 

There was a previous instance of some corrupt signing files that resulted in the the same errors a while back it seems.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
nathanpc
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha

Re: [ERROR] Cannot sign application - failed to find signing keys

barsigner.csk is 244 bytes
author.p12 is 996 bytes
If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: [ERROR] Cannot sign application - failed to find signing keys

Let's give this another try :-) Can you confirm where your home directory is set? There is a guide on changing your home directory here:

http://macperformanceguide.com/SettingUp-Relocating-HomeDir.html

 

Note that we don't need to change anything, we just want to confirm the value that is assigned to your home directory. The tools themselves would be using the ~ path to attempt locating your signature keys, and if that path has been modified, then that may explain why it can't find your keys (i.e. it is looking elsewhere.)


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.