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

Native Development

Reply
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT
Accepted Solution

How to sign a .bar file via command or native_qnx_momentics_IDE?

On AIR SDK development to sign a key for .bar file

blackberry-signer -verbose -cskpass <keypasswd> -keystore author.p12 -storepass <keypasswd> specific_file.bar RDK

blackberry-signer -keystore author.p12 -storepass <keypasswd> specific_file.bar author

 

Problem:

After using the same commands for Native SDK's .bar file, .RDK files cannot be generated.

 

P.S.

.bar file is generated via QNX_momentics_IDE/export/build realese.

 

Does anyone know how to sign a key on .bar file for Native SDK application?

 

Thanks your attention.

 

 

 

 

-Fight with BB10
Please use plain text.
BlackBerry Development Advisor
elena_laskavaia
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: How to sign a .bar file via command or native_qnx_momentics_IDE?

This file is already signed if you check "Sign" when doing export. Otherwise it is same command (but if you try to sign debbug bar file it will fail because it is development mode)

Please use plain text.
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: How to sign a .bar file via command or native_qnx_momentics_IDE?

When I use digital sign, error is coming out.

 

Error: Unable to sign bar: Server is not responding.
Please make sure your proxy settings are correct, if applicable. Supply the following options to barsigner:
-proxyhost <host> - proxy host
-proxyport <port> - port number for connecting to the proxy host
-proxyusername <username> - username for the proxy host (optional)
-proxypassword <password> - password for the proxy host (optional)
(Time of error: 15 February, 2012 4:31:26 PM ES

 

After I check proxy host, port, username, password, I could not find what's wrong.

 

-Fight with BB10
Please use plain text.
BlackBerry Development Advisor
elena_laskavaia
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: How to sign a .bar file via command or native_qnx_momentics_IDE?

So you do have to use proxy? Where did you specify proxy setting in IDE?

Please use plain text.
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: How to sign a .bar file via command or native_qnx_momentics_IDE?

Windows/preference/general/network connection/http/edit/

put host address and port number.

 

-Fight with BB10
Please use plain text.
BlackBerry Development Advisor
elena_laskavaia
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: How to sign a .bar file via command or native_qnx_momentics_IDE?

Hmm. Air signing tools are exactly the same, if you can sign from air - just try to use same command lines (from the air installation)

a) Export release from IDE but uncheck signing

b) Sign from command line

Please use plain text.
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: How to sign a .bar file via command or native_qnx_momentics_IDE?

When I use the command to sign .bar file, RDK file cannot be generated in .bar. ??

 

Still thank you to verify my action.

 

 

-Fight with BB10
Please use plain text.
BlackBerry Development Advisor
elena_laskavaia
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: How to sign a .bar file via command or native_qnx_momentics_IDE?

I don't understand what you mean. Can you copy you command and exact output here? (remove passwords)

Please use plain text.
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: How to sign a .bar file via command or native_qnx_momentics_IDE?

blackberry-signer -verbose -cskpass -keystore author.p12 -storepass HelloWorldDisplay.bar RDK

 

The command can work on AIR's .bar file.

 

-Fight with BB10
Please use plain text.
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: How to sign a .bar file via command or native_qnx_momentics_IDE?

Current error code changes to the RIM server error??

 

Error: Server returned HTTP response code: 502 for URL: http://www.rim.net/Websigner/servlet/RDK-Waterloo
(Time of error: 16 February, 2012 9:13:26 AM ES

-Fight with BB10
Please use plain text.