Site With The Lamp

A LAMP Portal


Linux
Java
PHP
Blog
/etc

Keytool.

New Articles

J2ME Development with the 6600.

Applets and the JNI.

Swing Slow paint problem.

Before you can sign an applet you need to have a digital signature, these can be created and managed with the keytool application that's part of the j2sdk. You can either use a 'self signed' certificate to sign your applet or use a third party verified digital signature.

Since most third party verified signatures cannot confirm anything more than the fact that someone answers the phone in your office, we will only look at self signed certificates in ths guide. Please refer java tool docs which provides a wealth of information on this topic for more details.

First let's choose an alias for your key. This is a short name that you will use to identify yourself to the keystore. Let's suppose that you have chosen colombo as your alias. To generate your key type in the following command at the console.

keytool -genkey -alias colombo

You will then be prompted for the for information about yourself and the organization that you belong to. Once you have entered all this information (don't forget your password) you have a hot new self signed certificate which you can use to sign applets with the jarsigner. The jarsigner is what we are going to look at in the next step.


Short cuts
  Part 1   Introduction, AccessController, keytool, jarsigner
  Part 2   The help of a proxy