Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



How to create a private key and self signed certificate

The Certificate Generator may be used to create a private key, and a public key in the form of a self-signed certificate. The private key can then be used by the Installation File Generator to digitally sign an installation file. The self signed certificate can be used by the Certificate Generator to create a certificate request.

The process is:

  1. 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.

  2. 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.


See also

How to digitally sign an installation file, How to create a secure digital certificate,

[Top]


Example

The following command line creates a private key and a public key in the form of a self-signed certificate:

makekeys -cert -dname "CN=Symbian OR=Symbian LTD CO=GB" HelloWorld.key HelloWorld.cer

The -dname command passes a simple distinguished name string to Certification Generator. The HelloWorld.key file is the private key file that belongs to the creator and must be kept secret. The HelloWorld.cer file is the self signed public key certificate that can be used to verify the digital signature.

The self signed certificate Helloworld.cer can be found in epoc32ex\ToolsAndUtilities\.

[Top]


Notes