Read-only archive of the All About Symbian forum (2001–2013) · About this archive

How to make a private key and self signed certificate

3 replies · 33,106 views · Started 27 June 2005

Hello All,

I am facing some problems in cerating private key and self signed certificate

The symbian help file prescribed the following procedure:

quote:
The process is:

Invoke the Certificate Generator on the command line, specifying the name of the private key and certificate to be generated, and the given distinguished name string.

Generate the private key, when prompted, by inputting random data to the window using the mouse. The MSDOS property QuickEdit must be turned off for this mouse mechanism to work.

I am using the folowing command to gernerate key and certificate:

makekeys -cert -dname "CN=WiShare OU=S
ymbian OR=TCSL CO=INDIA [email protected]" WiShare.key WiShare.cer

and then typing the random charecters, they appear on the screen. I am confused here as the procedure says "Generate the private key, when prompted, by inputting random data to the window using the mouse." I am not very clearly understanding, How I can enter 1024 charecters using mouse!!!

Finally as I am using this procedure, the following statements appear and without waiting for my input goes to the prompt.

Warning: the private key should be encrypted with the -password option
Do you want to use a password (y/n)?

The result is that there is no key or certificate file generated at all.

Also I have tried to compile using the -password option but this time eventhough the keys and certificate are generated, when I do compile the sis file and port it onto device while installation it gives General -6 error!

Thanking you all in anticipation,

Yours truly,
Arun S L,
Hyderabad,India.

Sometimes I dont know how accendentally the keys are generated without password as given here:

C:\CasestudyMMS\Downloads\BROWSER\install>makekeys -cert -dname "CN=WiShare OU=S
ymbian OR=TCSL CO=INDIA [email protected]" WiShare.key WiShare.cer
dghizsdifgsughhghsdfghjdfgsjdhfghajjkgahgjdfdfjngjksdjkhdfhfghf
Warning: the private key should be encrypted with the -password option
Do you want to use a password (y/n)? Generating private key...
A DSA private key has been generated with a keylength of 1024 bits
Enter private key passphrase:
Verifying password - Enter private key passphrase:
Verify failureMove the mouse within the window or press keys to generate random
data
................................................................................
...........................random data collected.
Created certificate WiShare.cer
C:\CasestudyMMS\Downloads\BROWSER\install>makekeys -view wishare.cer
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 0 (0x0)
Signature Algorithm: dsaWithSHA1
Issuer: C=INDIA, O=TCSL, OU=Symbian, CN=WiShare/[email protected]
Validity
Not Before: Jun 27 06:40:51 2005 GMT
Not After : Jun 27 06:40:51 2006 GMT
Subject: C=INDIA, O=TCSL, OU=Symbian, CN=WiShare/[email protected]
Subject Public Key Info:
Public Key Algorithm: dsaEncryption
DSA Public Key:
pub:
4e:b0:d5:bb:fc:f9:19:ea:29:b6:c0:30:ed:6b:b9:
ca:dc:7f:83:90:da:68:2e:f7:9d:be:40:96:99:b9:
5f:95:be:12:7e:02:d3:2c:82:3b:2f:4d:b9:82:82:
ae:24:b2:a4:2e:84:40:75:e0:f6:c2:de:8d:e2:6c:
dc:d7:46:f2:a0:67:4c:08:db:b4:94:06:4e:a9:d8:
c9:b1:25:81:83:f3:8b:5c:87:77:af:ad:37:06:23:
15:01:42:3a:68:1e:f0:4b:8b:0f:ec:10:ee:c7:dc:
b3:b3:93:c2:72:f9:e5:e2:a2:bd:98:d7:59:80:fd:
b4:25:6e:8d:e0:d6:b7:75
P:
00:fa:99:b7:b6:70:54:4c:0d:33:d5:52:e4:9f:ba:
51:10:4c:17:be:77:17:4e:bb:43:6a:7b:87:3c:c0:
81:f9:2a:29:b7:84:dd:29:07:5f:8a:3b:5a:7d:30:
f0:d6:50:98:f1:4f:8f:f8:3e:4f:bf:a2:a0:9f:f7:
a8:28:a4:28:07:a4:e1:9d:52:f4:aa:ac:a1:a3:97:
aa:50:f7:da:6e:2a:57:c2:9a:f7:ba:ab:77:cc:2c:
b7:ea:1d:66:0d:65:57:89:cd:7c:7c:11:8b:21:85:
05:7b:e4:d7:c9:ef:c4:b2:25:23:ac:a5:0e:18:d0:
af:80:5f:23:b1:c7:6c:fa:17
Q:
00:8c:9a:ed:18:ab:e3:7f:ce:3b:ab:61:05:ad:65:
f1:05:78:cd:f2:89
G:
00:a7:dc:f9:67:9a:c0:bf:92:e6:1d:d9:e3:2f:fd:
92:03:69:77:cb:49:04:a9:2b:7d:3e:07:bc:fb:06:
04:ac:33:48:98:dd:ad:e2:6a:a7:dd:06:85:1d:e7:
51:dd:ff:7d:4c:49:b1:e7:bc:ae:a6:eb:50:00:c0:
1b:a5:14:39:b8:f9:64:26:99:98:88:16:b3:04:ef:
a2:8b:3b:54:26:16:68:bf:f5:87:18:c4:bc:71:b9:
54:e8:a0:1f:a0:38:aa:d6:7d:dc:e0:29:b1:40:dd:
ad:cd:bb:f6:08:84:2d:38:81:6b:71:2a:21:af:b6:
8a:f1:9c:7e:b5:18:bf:9f:e9
Signature Algorithm: dsaWithSHA1
30:2c:02:14:2f:70:0c:c3:14:34:24:c4:3c:a3:93:99:8c:be:
8e:10:5a:84:60:30:02:14:5d:15:03:b5:10:d5:76:30:7b:64:
da:0d:31:a1:d8:b7:d1:13:28:6d

But then while creating sis file the foloowing error occours

C:\CasestudyMMS\Downloads\BROWSER\install>makesis aBrowserCert.pkg
Processing aBrowserCert.pkg...
error: cannot open file, check filename and access rights

Thanking you all in anticipation,

Yours truly,
Arun S L,
Hyderabad,India.

arun_sl wrote:Hello All,

I am facing some problems in cerating private key and self signed certificate

The symbian help file prescribed the following procedure:

quote:
The process is:

Invoke the Certificate Generator on the command line, specifying the name of the private key and certificate to be generated, and the given distinguished name string.

Generate the private key, when prompted, by inputting random data to the window using the mouse. The MSDOS property QuickEdit must be turned off for this mouse mechanism to work.

I am using the folowing command to gernerate key and certificate:

makekeys -cert -dname "CN=WiShare OU=S
ymbian OR=TCSL CO=INDIA [email protected]" WiShare.key WiShare.cer

and then typing the random charecters, they appear on the screen. I am confused here as the procedure says "Generate the private key, when prompted, by inputting random data to the window using the mouse." I am not very clearly understanding, How I can enter 1024 charecters using mouse!!!

Finally as I am using this procedure, the following statements appear and without waiting for my input goes to the prompt.

Warning: the private key should be encrypted with the -password option
Do you want to use a password (y/n)?

The result is that there is no key or certificate file generated at all.

Also I have tried to compile using the -password option but this time eventhough the keys and certificate are generated, when I do compile the sis file and port it onto device while installation it gives System -6 error!

Thanking you all in anticipation,

Yours truly,
Arun S L,
Hyderabad,India.

Hello,

I have successfully installed the application with self signed certificate. The problem was that I was using country code in -dname options as CO=INDIA . Its functioning fine when I had changed it to IN.

Now still in one of the application I am facing a problem that in the app manager while I am trying to see the details of the installed program, an error is reported


App Manager:
System Error
-20

Please help me solve this issue,

Thanking you all in anticipation,

Yours Truly,
Arun S L,
Hyderabad, India.