Help, javakey keeps crashing

Jason Johnston (EPA2466@epa.state.il.us)
Wed, 25 Nov 1998 11:36:11 -0600

I'm trying to develop some signed and trusted applets and I'm running into
trouble. I follow your tutorial and javakey works ok but I can't generate
key pairs.
When I generate a signer name Duke, I'm fine. Duke gets generated.
However, when I try to do this:

javakey -gk Duke DSA 512

I get what seems like an infiinite loop. It never stops. In the other
example you had you try this:

javakey -gk Duke 512 Duke_pub Duke_priv

Well this doesn't give me an infinite loop but it gives me plenty of
exceptions.

java.lang.NumberFormatExceptions: Duke_pub
at java.lang.Intefer.parseInt(Compiled Code)
at java.lang.Integer.parseInt(Intefer.java:382)
at sun.security.provider.Main.generateKeyPair(Main.java:996)
at sun.security.provider.Main.generateCmd(Main.java:722)
at sun.security.provider.Main.run(Main.java:1395)
at sun.security.provider.Main.main(Main.java:1424)

The tutorial goes on to step 3 but I'm unable to successfully make a key
pair for any of my signers. What's wrong? Also, I'm not seeing anyway
to automate this, so far it looks like the person has to actually install the
jdk on their system and then download and install this file. If this is the
case how is this meant to be useful? I need an applet that can bring up a
Certificate(graphically) and just have them click yes or no.