Message-Id: <199903291710.JAA02485@laguna.eng.sun.com>
Date: Mon, 29 Mar 1999 09:10:21 -0800 (PST)
From: Jan Luehe <luehe@laguna.eng.sun.com>
Subject: Re: using javakey
To: java-security@java.sun.com, randyng@usa.net
Randy:
> Why is it that when i generate the DSA key pair for the identity,
> it gives me this error message:
>
> 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 is a bug in 1.1.6, which has been fixed in 1.1.7,
which you should upgrade to.
A work-around is to specify the filenames where the public and
private key components of the generated keypair should be stored,
as in:
javakey -gk trustme DSA 512 pub_file priv_file
Generated DSA keys for trustme (strength: 512).
Saved public key to pub_file.
Saved private key to priv_file.
Jan