Get your signing keys
In order to properly sign your future applications you first need to get your own signing keys. You have to fill in and send the following form and pay $20. In less than 5 days you should receive a RIM mail with your keys attached and a PIN number to register them. If you unzip the attached file, you will see three .csi files (one for each API type which needs to be signed).
Configure your eclipse IDE to use the keys
Now let’s put our keys in our Eclipse environment. Open the Eclipse environment we installed in previous articles and go to Window>Preferences>BlackBerry Java Plug-in. There you have some signing configuration options. Warnings, for example, let you see which classes need to be signed while you’re writing code. The option we are looking for is Signature Tool.
The Signature Tool is a tool which comes integrated with our IDE which allows us to easily sign our code. To properly configure it we need to register our .csi received files following these steps.
Put the .csi received files in the following directory:
Now open the signature tool as we explained before and click “install new keys" and look for and select one of the three .csi files. A dialog box will be shown saying that the private key doesn't exist. Say “Yes" to create a new one. Type a new password and remember it because it will be asked for every time you sign .cod files in the future. After that you will be asked to provide the PIN that RIM gave you along with the keys (check the received file). Repeat this process with the two .csi files remaining.
Congratulations! Your IDE is correctly configured to sign .cod files. You can sign them manually or check the option “Automatically sign .cod files after packaging".