# Javakey Strange behavior

Mark Herschberg (Mark_Herschberg@paintedword.com)
Wed, 11 Nov 1998 15:57:12 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Joshua Marquart: "Having Cert. problems"
- Previous message: Alex Wong: "On the fly security permissions"

We created an identitydb.obj file, but it had our private key in it, as
well as duplicated certificates. I tried to create another file with
only the public key and one certificate. However, I was unable to
import the public key. Also, attempts to import the public key resulted
in deleting the certificate. I have included a transcript below. It
behaves the same whether I use the original identitydb.obj file, or if I
delete it and start anew after extracting the files.

Also, although WinNT requires the file be in the user profile (I've been
doing all this as administrator), I am unable to access/read/edit the
file unless it is in C:\ directory. Is there anyway to tell javakey to
look in a different directory?

--Mark A. Herschberg

System: WinNT 4.0, Dimension XPS D300, JDK1.1.7A

C:\>javakey -ld

Scope: sun.security.IdentityDatabase, source file: C:/\identitydb.obj

[Signer]PaintedWordInc[identitydb.obj][trusted]
public and private keys initialized
certificates:
certificate 1 for : CN=PaintedWordInc, OU=Engineering,
O=PaintedWordI
nc, C=US
from : CN=PaintedWordInc, OU=Engineering,
O=PaintedWordI
nc, C=US
certificate 2 for : CN=PaintedWordInc, OU=Engineering,
O=PaintedWordI
nc, C=US
from : CN=PaintedWordInc, OU=Engineering,
O=PaintedWordI
nc, C=US

No further information available.

C:\>javakey -ek PaintedWordInc pw_pub pw_priv
Public key exported to pw_pub.
Private key exported to pw_priv.

C:\>javakey -ec PaintedWordInc 1 pwcert1.cer
Certificate 1 exported to pwcert1.cer.

C:\>javakey -ec PaintedWordInc 2 pwcert2.cer
Certificate 2 exported to pwcert2.cer.

C:\>javakey -r PaintedWordInc
Removed PaintedWordInc.

C:\>javakey -ld

Scope: sun.security.IdentityDatabase, source file: C:/\identitydb.obj

C:\>javakey -cs PaintedWordInc true
Created identity [Signer]PaintedWordInc[identitydb.obj][trusted]

C:\>javakey -ld

Scope: sun.security.IdentityDatabase, source file: C:/\identitydb.obj

[Signer]PaintedWordInc[identitydb.obj][trusted]
no keys
no certificates
No further information available.

C:\>javakey -ik PaintedWordInc pw_pub
Set public key from pw_pub for PaintedWordInc.

C:\>javakey -ld

Scope: sun.security.IdentityDatabase, source file: C:/\identitydb.obj

[Signer]PaintedWordInc[identitydb.obj][trusted]
no keys
certificates:

No further information available.

C:\>javakey -ic PaintedWordInc pwcert1.cer
Imported certificate from pwcert1.cer for PaintedWordInc.

C:\>javakey -ld

Scope: sun.security.IdentityDatabase, source file: C:/\identitydb.obj

[Signer]PaintedWordInc[identitydb.obj][trusted]
no keys
certificates:
certificate 1 for : CN=PaintedWordInc, OU=Engineering,
O=PaintedWordI
nc, C=US
from : CN=PaintedWordInc, OU=Engineering,
O=PaintedWordI
nc, C=US

No further information available.

C:\>javakey -ik PaintedWordInc pw_pub
Set public key from pw_pub for PaintedWordInc.

C:\>javakey -ld

Scope: sun.security.IdentityDatabase, source file: C:/\identitydb.obj

[Signer]PaintedWordInc[identitydb.obj][trusted]
no keys
certificates:

No further information available.

C:\>

- Next message: Joshua Marquart: "Having Cert. problems"
- Previous message: Alex Wong: "On the fly security permissions"