2008年6月24日 星期二

Failed to install CellTrack91

In order to check the cell information Nokia N95 has camped on, I try to search it on the internet. Then I found a good stuff, Cell Track 91, which is a very good tool for my usage. If it can work, my N95 can be as a good benchmark for GSM field trial.

The link of Cell Track 91 is http://www.afischer-online.de/sos/celltrack/#newos

However, when I install this application, I found it is not signed. So I have to sign this application by the SDK provided method below:

==================================================================================
S60 3rd Edition SDK for Symbian OS, Supporting Feature Pack 1, for C++
Getting Started >> Main Steps of Application Development
==================================================================================
Self Signed Certificate
In S60 3rd Edition application development all .sis files must be signed before installing them to a device. When an application requires no capabilities or utilizes APIs which are open to all, you can use the Self Signed certificate. This can be used when testing an application in one’s own device or when shipping the application. Using the Self Signed certificate is recommended for freeware applications using unrestricted capabilities.

Note: Applications are regarded as Untrusted if signed with the Self Signed certificate.

The main steps to signing a .sis file with a Self Signed certificate are the following:

Create private key with the makekeys tool

Sign the .sis file with the signsis tool





--------------------------------------------------------------------------------

Create Private Key with the makekeys Tool
The makekeys tool can be used to create private key and Self Signed certificate. The tool can be found in \Symbian\9.2\S60_3rd_FP1\Epoc32\tools.

The usage of the tool is described below:

makekeys -cert [-password ] [-len ] -dname

makekeys -req [-password ] -dname

makekeys -view


An example of creating a privatekey mykey.key and self-signed certificate mycert.cer is presented below:

makekeys -cert -password yourpassword -len 2048 -dname "CN=Test User OU=Development OR=Company CO=FI EM=test@company.com" mykey.key mycert.cer






--------------------------------------------------------------------------------

Sign the .sis File with the signsis Tool
You can use the signsis tool to sign or unsign a .sis file. The tool can be found in \Symbian\9.2\S60_3rd_FP1\Epoc32\tools.

The usage of the tool is described below:

Usage: SignSIS [-?] [-c...] [-i] [-r] [-s] [-u] [-v] input [output [certificate key [passphrase] ] ]

-? Output this information

-c... Sign using specific algorithm: -cd for DSA, -cr for RSA

-I Output licence information

-o Report on content of sis file (after any other operation)

-s Sign SIS file (requires sis file, certificate, key and passphrase)

-u Remove most recent signature from SIS file

-v Verbose output

input The SIS file to be sign, unsigned or investigated

output The SIS file generated by signing or unsigned

certificate The certificate file used for signing

key The certificate's private key file

passphrase The certificate's private key file's passphrase

You can generate SIS files using MakeSIS v4.


An example of how to use the private key and Self Signed certificate:

is the place where the private key and Self Signed certificate are stored:

signsis .sis \mycert.cer \mykey.key

This will sign the .sis file and you can now install it to you S60 device for testing.

Note that the created private key and the Self Signed certificate are not encrypted and therefore no pass phrase is needed.

==================================================================================

I met some trouble to sign it because I get an error message as

"encryption error, cannot read mykey.key."

Then I got the solution from the below forum
http://blogs.forum.nokia.com/index.php?op=ViewArticle&blogId=34687&articleId=93

Unfortunatly, I got another error when I am installing this signed but untrusted application. The below error message is shown on the display of my N95:

"Required application access not granted"

What can I do for this error?

From the same homepage. The hint is below:

Message: Required application access not granted

Hint: Check that your certificate can be used to sign all capabilities needed by your application. For example, if you use self-signed certificate, you can only sign basic set capabilities, i.e. NetworkServices, ReadUserData, WriteUserData, LocalServices and UserEnvironment. If your application requires one of the extended capabilities, for example SwEvent, you cannot sign it with self-signed certificate. In this case, apply for developer certificates from Symbian Signed.

It's bad.

沒有留言: