Date: Mon, 27 Jul 1998 17:22:37 -0700 (PDT)
From: Jan Luehe <luehe@laguna.eng.sun.com>
Subject: Re: Bug in javakey, JDK 1.1.6
To: java-security@java.Sun.COM, tgoeller@metafinanz.de
Thorsten:
> we tried to generate a key as it is described in the documentation "javakey
> - The Security Tool".
>
> After creating the identity with "javakey -cs thorsten true"
> we wanted to generate a DSA key pair with 512 bit: "javakey -gk thorsten
> DSA 512"
>
> Every time we got an expection:
>
> 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>
>
> This problem was only in JDK 1.1.6. When we tested to generate keypairs
> with JDK 1.1.5, we had no problem.
> We tested it on two computers. Evertytime the same problem.
This is a bug in 1.1.6 which was fixed in the upcoming 1.1.7
release.
A work-around is to specify the filenames where the public and
private key components shall be written to:
javakey -gk thorsten DSA 512 pub_file priv_file
Generated DSA keys for thorsten (strength: 512).
Saved public key to pub_file.
Saved private key to priv_file.
Jan