-
Enhancement
-
Resolution: Fixed
-
P4
-
1.1.6
-
b01
-
generic, x86, sparc
-
generic, solaris_2.5.1, windows_95
Name: mf23781 Date: 05/11/98
When you try to generate a key pair and put in the wrong number of arguments
(as the documentation on this isn't too good) the error messgae you get is a
NullPointerException
which is not too helpful.
To recreate:
1. Delete your identitydb.obj file in the root of your JDK directory
2. Create a signer by typing: javakey -cs steve true
3. Attempt to generate a key pair by typing: javakey -gk steve DSA 512
This comes back with the following exception:
java.lang.NullPointerException
at sun.security.provider.Main.generateKeyPair(Main.java:1028)
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 because you haven't specified the public-private key pair as arguments
after
the key size. If you specify both then there is no problem.
======================================================================
- duplicates
-
JDK-4135155 javakey (jdk1.1.6) fails when key pair is generated without storing it in files
- Closed
-
JDK-4146177 A javakey regression on JDK1.1.6.
- Closed