# Re: Can't finish key generate process.

Jan Luehe (luehe@laguna.eng.sun.com)
Wed, 22 Jul 1998 10:01:32 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jan Luehe: "Re: Signing certificates"
- Previous message: Richard OSBORNE: "Signing certificates"
- Maybe in reply to: Gao Kai: "Can't finish key generate process."

    Date: Wed, 22 Jul 1998 10:01:32 -0700 (PDT)

    From: Jan Luehe <luehe@laguna.eng.sun.com>

    Subject: Re: Can't finish key generate process.

    To: java-security@java.Sun.COM, michael.gao@usa.net

Gao:

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 are written to:

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

> From: "Gao Kai" <michael.gao@usa.net>
> To: <java-security@java.sun.com>
> Subject: Can't finish key generate process.
> Date: Wed, 22 Jul 1998 16:34:22 +0800
> MIME-Version: 1.0
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
>
> Dear Sir:
>
> I have some problem of Java Security in WinNT by JDK1.1.6.
>
> In concole mode, I run following instructions, and got
NullPointerException as follow. I need it work for my work, please give me some
advice for help.
>
> Instructions and replys are as below:
>
> D:\>javakey -cs trustme true
> Created identity [Signer]trustme[identitydb.obj][trusted]
>
> D:\>javakey -gk trustme DSA 512
> 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)
>
> D:\>javakey -l
> Scope: sun.security.IdentityDatabase, source file: D:\\identitydb.obj
>
> [Signer]trustme[identitydb.obj][trusted]
>
> Thanks very much.
>
>
> Gao Kai

- Next message: Jan Luehe: "Re: Signing certificates"
- Previous message: Richard OSBORNE: "Signing certificates"
- Maybe in reply to: Gao Kai: "Can't finish key generate process."