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

Adobe AIR Development

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

Re: HOWTO: Sign your Applications from CMD

 


tensioncore wrote:
PLEASE NOTE: you must copy these exactly except for where I TYPED IN CAPS - these you change to your hearts content, otherwise the rest of the commands NEED to be there, such as the word "author" and "RDK" etc.

You might want to edit that to state explicitly that both the text in ALL-CAPS and the angle brackets should be replaced by the relevant text, or some may leave the angle brackets in, to possibly disastrous effect.

 


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!
Developer
Posts: 327
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition
My Carrier: Rogers

Re: HOWTO: Sign your Applications from CMD

thanks, edited!
CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Developer
Posts: 249
Registered: ‎11-02-2010
My Device: PlayBook
My Carrier: -

Re: HOWTO: Sign your Applications from CMD

Short question about First step:

 

blackberry-signer -csksetup -cskpass -storepass <password>

 

Is param -storepass needed or not ?

In the official page it's not, but I didn't catch any update on this command in this post...

JC
Developer
Posts: 167
Registered: ‎12-17-2010
My Device: Bold 9000
My Carrier: Vodafone

Re: HOWTO: Sign your Applications from CMD

I get an error when executing the first step of the signing process. I entered the following at the command prompt (with appropriate values filled in):

 

blackberry-signer -verbose -cskpass <my_CSK_password> -keystore <my_p12_file> -storepass <my_p12_file_password> <my_BAR_file.bar> RDK

 

and then get the following error:

 

...
41 43 38 55 57 38 58 33 7a 6b 56 61 59 32 75 31
2f 47 70 4f 4f 44 37 7a 43 48 36 36 30 41 3d 3d
Connecting to url http://www.rim.net/Websigner/servlet/RDK-Waterloo
Sending properties to server...
Properties of response := [
Version = 1
Response = Signature Response
Confirm = null
Error = Code signing request failed because Entry-Point-Type value is not recognized.
]
barsigner error: server error: Code signing request failed because Entry-Point-Type value is not recognized.

 

I have created the BAR file with Flash Builder (F11 key) and it's an AIR application.

 

Anyone any idea?

Eugene

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

Re: HOWTO: Sign your Applications from CMD

The Entry-Point-Type is found in your MANIFEST.MF file, inside the .bar. What does yours say?


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!
Developer
Posts: 167
Registered: ‎12-17-2010
My Device: Bold 9000
My Carrier: Vodafone

Re: HOWTO: Sign your Applications from CMD

Entry-Point-Type: Qnx/AirDebug

Eugene

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

Re: HOWTO: Sign your Applications from CMD

That means you compiled/built with debug mode enabled.  

 

I think previously we heard from people who'd done that but who had not received that error message.  Perhaps RIM has updated the server-side code to check this and reject signing attempts for debug-mode apps though, which makes sense.

 

Anyway, it should read just "Qnx/Air" when you've got it fixed.  Read back or in other threads to learn how to disable debug mode properly, if you don't know how.


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!
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: HOWTO: Sign your Applications from CMD

I was partly wrong: others have seen the same error before so this isn't a recent server-side change.


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!
Developer
Posts: 167
Registered: ‎12-17-2010
My Device: Bold 9000
My Carrier: Vodafone

Re: HOWTO: Sign your Applications from CMD

Thanks Peter, you were 100% right. I should have used Ctrl-F11 instead of F11 in Flash Builder. However, now I get the following error:

 

...
Connecting to url http://www.rim.net/Websigner/servlet/RDK-Waterloo
Sending properties to server...
Properties of response := [
Version = 1
Response = Signature Response
Confirm = null
Error = Code signing request failed because Application-Development-Mode in Manifest is present and is not set to [false].
]
barsigner error: server error: Code signing request failed because Application-Development-Mode in Manifest is present and is not set to [false].

I checked settings in FB:

 

FB Run Configuration.jpg

 

and even FB gives me the same error, while I do have selection 'Production mode' as you can see in the screenshot.

 

The error:

FB Run Configuration Error.jpg

 

In the manifest file, the Development mode is set to true instead of false.

 

Eugene

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

Re: HOWTO: Sign your Applications from CMD

Please try searching.  In this thread or another related to signing we've already seen exactly the same error and some sort of resolution (which may have been to resort to using the command line... I don't recall and don't really follow anything to do with Flash Builder).


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!