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

Java Development

Reply
Developer
AsriDwitiya
Posts: 62
Registered: ‎08-08-2008
My Device: Not Specified

How to signing my application ???

Hello....

 

I want to signing my application.,but i don't know how the way ????

Can U tell me how the way to signing my application.,because my application access a secure API..for example i access "Invoke application".,

 

Regards,

 

Asri Dwitiya

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to signing my application ???

You will find documentation for the process in the Developer Guide, in the 4.5 Guide, it is in Chapter 17: "Controlling access to APIs and application data on the BlackBerry device".

 

You will find that a lot of questions are answered already in the Developer Guide, this forum and the KnowledgeBase.  I suggest that you search these.

 

Please use plain text.
Developer
malcolm
Posts: 41
Registered: ‎08-01-2008
My Device: Not Specified

Re: How to signing my application ???

Do you have the code signing keys already? If not you'll need to buy them before you do anything else. The URL is https://www.blackberry.com/SignedKeys/

Please use plain text.
Developer
AsriDwitiya
Posts: 62
Registered: ‎08-08-2008
My Device: Not Specified

Re: How to signing my application ???

[ Edited ]

I have to ask u,,

Does one Signed key of RIM API's used for only one device Blackberry??????Thanks..

 

 

Asri

Message Edited by AsriDwitiya on 09-04-2008 10:24 PM
Message Edited by AsriDwitiya on 09-04-2008 10:27 PM
Please use plain text.
Administrator
MSohm
Posts: 14,450
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: How to signing my application ???

Signature keys allow you to sign an unlimited number of applications, which can then be used on any BlackBerry.
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
Please use plain text.
Developer
AsriDwitiya
Posts: 62
Registered: ‎08-08-2008
My Device: Not Specified

Re: How to signing my application ???

Hi Mark and all thank's for your help

 

Asri 

Please use plain text.
Developer
marchywka
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: How to signing my application ???

I'm not sure if this helps but it took me a while to piece together everything for automated signing.

Here is a piece of a bash script that works on cygwin. STP is path to signing stuff  and I have

TDW as an absolute path to the cod file, code for "signsomething" at bottom,

 

signsomething "$TDW\\$NM.cod" 

 

 

 #http://www.blackberry.com/btsc/articles/KSM/ProductDocumentation/English/BlackBerry_Signature_Tool_D...
#-a Request signatures automatically.
#-c Close after requesting signatures if no errors occur.
#-C Close after requesting signatures even if errors occur.
#-s Print code signing statistics on the number of signatures received and number of signatures requested.
#-r <directory> Search a directory and select all .cod files in the directories.
#-f <file> Use a file to specify the .cod files to load.
#-d Remove the temporary file used with option -f. Use option -d in conjunction with option -f.
#.csi file Type a .csi file, which contains your registration information and a list of signatures that you can apply for. Specify one .csi file per command.
#.cod file The compiled application. When you obtain the required code signatures, you can load the
#  .cod file on a BlackBerry device. Specifying a .cod file using the command prompt is equivalent
#  to using the BlackBerry Signature Tool
#  to request the signatures for a .cod file. You can use the
#  BlackBerry Signature Tool to reference multiple .cod files in one command.

 

signoptions="-a -C -s "

signsomething()
{
ST="javaw.exe" # this needs to be moved somewhere...
STP=`cygpath -w "$rimm_sign_dir" `
STP="${STP}\SignatureTool.jar"
FF="$1"
#echo generic signing test
echo sign with $ST -jar "$STP" $signoptions "$FF" -p yourpassword
$ST -jar "$STP" $signoptions  "$FF" -p yourpassword
if [ "$?" != "0" ]
then
echo Signing didnt appear to work
echo note that signing needs cso and csl files too...
exit -1
fi


}

Please use plain text.
Developer
malcolm
Posts: 41
Registered: ‎08-01-2008
My Device: Not Specified

Re: How to signing my application ???

Thanks marchywka, I had no idea it was possible to automate signing in anyway. Very useful tip!
Please use plain text.