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
Contributor
gillbates
Posts: 10
Registered: ‎03-02-2011
My Device: Not Specified
Accepted Solution

code signing problem on mac

currently I've just got a problem regarding signing the app using webworks api for playbook.

In particular, I could already package it into a bar file but just cannot sign it.

I've followed all instructions at 

1. http://docs.blackberry.com/en/developers/deliverables/23977/Configure_signing_for_tablet_application...

2. http://docs.blackberry.com/en/developers/deliverables/23977/Sign_the_cod_file_for_a_BB_Widget_applic...

 

And it seemed I've already successfully registered my file because I've got the following mail in my mailbox:

 

A registration request completed successfully for client 'xxx'.  The client has xxx code signing request(s) left.

 

The client was sent back the following message:

 

Client 'xxx' successfully registered with signing server ID RDK, and now has xxx code signing attempts remaining.

 

 

 

 

Then when I run the command: ./bbwp ~/Dropbox/Interceptr.zip /gcsk 123456 /gp12 123456 /buildId 1  /o /Users/xxx/Desktop        (I've replaced my real pass in this email with string 123456)

I've got following messages from the console:

 

[INFO]       Parsing command line options

[INFO]       Parsing bbwp.properties

[INFO]       Validating WebWorks archive

[INFO]       Parsing config.xml 

[WARNING]   Failed to find a <feature> element

[INFO]       Populating application source

[INFO]       Compiling WebWorks application

[INFO]       Packaging the bar file

[INFO]       Bar packaging complete

[INFO]       Starting signing tool

barsigner error: developer certificate and private key not found in keystore or store password not supplied

[ERROR]     Signing failed

 

and using blackberry-signer gives the same output:

 

./blackberry-signer -verbose -cskpass 123456 -keystore sigtool.p12 -storepass 123456 ~/Desktop/Interceptr.bar RDK

barsigner error: developer certificate and private key not found in keystore or store password not supplied

 

I wonder if anyone has any ideas about it?

 

 

Developer
tags07
Posts: 386
Registered: ‎12-12-2010
My Device: BB Style

Re: code signing problem on mac

Make sure you name the certificate file as "sigtool.p12" and place it under bbwp/bin folder

 

I had a similar issue because i was naming the certificate as something else.

Contributor
gillbates
Posts: 10
Registered: ‎03-02-2011
My Device: Not Specified

Re: code signing problem on mac

thx for your info tags, I did have this sigtool.p12 distributed everywhere, one copy in bbwp/blackberry-tablet-sdk/bin, the other in bbwp/bin. But it doesn't help ... Any more clues?

Contributor
gillbates
Posts: 10
Registered: ‎03-02-2011
My Device: Not Specified

Re: code signing problem on mac

and I've also generated barsigner.csk barsigner.db in my ~/Library/Research In Motion directory

Contributor
waynes2011
Posts: 29
Registered: ‎02-11-2011
My Device: Not Specified

Re: code signing problem on mac

I have   the exactly same problem as you except that I am using Windows 7.

 

Anyone can give us some hint to resolve the issue?

Developer
tags07
Posts: 386
Registered: ‎12-12-2010
My Device: BB Style

Re: code signing problem on mac

These are the exact steps I followed. I have tried this twice and havn't seen issues either on WinXP or Win7

 

 

updated PATH env variable to add all the paths to the tools

 

 

C:\Documents and Settings\tags07\Desktop\keys>
blackberry-signer -csksetup -cskpass mypass

C:\Documents and Settings\tags07\Desktop\keys>
blackberry-signer -register -csjpin mypass -cskpass mypass "C:\Documents and Settings\tags07\Desktop\keys\client-RDK-000000000.csj"

C:\Documents and Settings\tags07\Desktop\keys>
blackberry-keytool -genkeypair -keystore sigtool.p12 -storepass mypass -dname "cn=MyCompany Inc." -alias author

C:\Program Files\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\bin\bbwp.properties
Edit the above file to uncomment : <developer_cn_signature>MyCompany Inc.</developer_cn_signature>

copy sigtool.p12 into C:\Program Files\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\bin


C:\Users\tags07\Desktop\blackberry\Apps\MyWebApp>
bbwp "C:\Users\tags07\Desktop\blackberry\Apps\MyWebApp\MyWebApp.zip" /gcsk mypass /gp12 mypass /buildId 1.2 /s archive_source /o compiled

Have you done pretty much the same as above?

 

Contributor
gillbates
Posts: 10
Registered: ‎03-02-2011
My Device: Not Specified

Re: code signing problem on mac

thanks tags, ah...now I've successfully signed my app.

It's due to understanding error there.

 

for this command:

blackberry-keytool -genkeypair -keystore sigtool.p12 -storepass #pass# -dname cn=#name# -alias author

 

I've changed the string "author" at the end to my own name and then we cannot sign.

 

@waynes2011, you have to request a new signature file from bb (resubmit that webform) and using the commands as tags listed above...

 

Thanks again for you guys :smileyhappy:.

Contributor
waynes2011
Posts: 29
Registered: ‎02-11-2011
My Device: Not Specified

Re: code signing problem on mac

Thank you all.

 

I still have errors.

I will get a new signature file from BB as suggested.

 

Contributor
bryanallott
Posts: 10
Registered: ‎10-23-2009
My Device: Not Specified

Re: code signing problem on mac

quite funnny actually, i made the same mistake

 

instead of 

-alias author

i put down

-alias bryan

 

What was that saying about "assumptions" again...?

 

Thanks for posting that, I had the exact same issue and solved it with the exact same solution

Developer
yosoh
Posts: 213
Registered: ‎07-18-2008
My Device: Not Specified

Re: code signing problem on mac

hi guys,

 

tried these steps exactly as stated. registered successfully but i get an error that my CSK password is incorrect when it tries to sign my bar file. I am 100% sure it is correct. any ideas ?

 

regards

yosoh

--------------------------------------------------
problemSolved() ? kudosPlease():kudosPlease();