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

BlackBerry® OS Smartphones

Reply
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Adding release: Some files are missing signatures

Mark, for the record, it is the case that the CN= field should exactly match your Vendor Name in the vendor portal, too, right?

Do you know what error occurs if you try to submit an app signed with a certificate with a different CN name?

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
BlackBerry Development Advisor
Posts: 15,694
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Adding release: Some files are missing signatures


peter9477 wrote:
Mark, for the record, it is the case that the CN= field should exactly match your Vendor Name in the vendor portal, too, right?

Do you know what error occurs if you try to submit an app signed with a certificate with a different CN name?

That's what I'm looking into now.  Historically, it didn't matter but they did add some checks regarding signing recently.  I'll post here what I find out.

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
BlackBerry Development Advisor
Posts: 15,694
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Adding release: Some files are missing signatures

FYI you can perform a test similar to BlackBerry App World using the following command:

 

blackberry-signer -verify yourFile.bar

 

If this fails, App World will reject it.  I'm not sure the cause of this particular case.  It looks like it was packaged incorrectly.  Please let us know what tool was used to create the bar file.

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
New Contributor
Posts: 4
Registered: ‎03-15-2012
My Device: Playbook
My Carrier: N/A

Re: Adding release: Some files are missing signatures

I used the command line tool apk2bar to create the bar file. Then I modified the archive, but when zipping it again I made a mistake (which is expressed in my last post). This fault is made by me, not the tools.

Highlighted
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Adding release: Some files are missing signatures

The empty directory entries came from using the Linux zip program with something like "zip -r app.bar ...". 

 

Using the "-D" option with that seems to avoid it, so "zip -rD app.bar ...."

 

Also the reason for the modification was to increment the version number, since there was no obvious way using the command line.  This thread seems to show how this should be done for Android: http://supportforums.blackberry.com/t5/BlackBerry-Plug-in-for-Android/How-to-increase-application-ve...

 

I guess there is no command-line way to do this with the existing Android conversion tools.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!