Something to watch: in the properties files, make sure that you don't leave any whitespace between the end of the property value and the redirection symbol. This can cause strange errors to occur.
Also, you should do "view source" on this file and look at the applet tag; note that the archive name is "hello.jar.sig"; once your JAR file has been signed, it's OK to use it as you would any other JAR file.
Batch file used to sign applet
Batch file used to set up security database
Note: if you're getting the following exception
java.lang.NullPointerException
at sun.security.provider.Main.generateKeyPair(Main.java:1022)
at sun.security.provider.Main.generateCmd(Main.java:721)
at sun.security.provider.Main.run(Main.java:1394)
at sun.security.provider.Main.main(Main.java:1423)
when you try to run the command
javakey -gk TomValesky DSA 512you've encountered a bug in JDK 1.1.6. The workaround is described here. In short, the workaround is to explicitly specify the public and private filenames, that is:
javakey -gk TomValesky DSA 512 pub_file priv_fileI've tested the fix, and it works.