# question

Rongmei Rao (rongmei.rao@nuigalway.ie)
Thu, 29 Apr 1999 16:48:45 +0100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Marianne Mueller: "Re: question"
- Previous message: Radovan Skolnik: "Java & Kerberos"

    Date: Thu, 29 Apr 1999 16:48:45 +0100

    From: Rongmei Rao <rongmei.rao@nuigalway.ie>

    Subject: question

    To: java-security@java.sun.com

------=_NextPart_000_0004_01BE9260.261CF420
Content-Type: text/plain; charset="hz-gb-2312"
Content-Transfer-Encoding: quoted-printable
X-Sun-Content-Length: 1777

Dear Sir,

I have downloaded all the files in the jkd1.1.x security example.=20
These files are:=20

a.. writeFile.html and writeFile.java=20
b.. Duke.x509 certificate=20
c.. cert_directive_Duke (template for generating a certificate)=20
d.. sign_directive_Duke (template for signing an archive)=20
e.. signedWriteFile.html and signedWriteFile.jar=20
Then, I follow the following step to creat the files needed.
#! /bin/csh

# Step 1. Create the Duke identity, as a trusted identity

javakey -cs Duke true

# Step 2. Generate a keypair for Duke, and store the public key in a =
file named
# Duke_pub and the private key in a file named Duke_priv

javakey -gk Duke DSA 512 Duke_pub Duke_priv

# Step 3. Generate an x509 certificate for Duke, and store it in the =
file
# named Duke.x509. This output file name is given in the directive =
file
# named cert_directive_Duke.=20

javakey -gc cert_directive_Duke=20

# Step 4. Create the archive.

jar cf signedWriteFile.jar writeFile.class writeFile.html

# Step 5. Sign the archive, using the parameters given in =
sign_directive_Duke.

javakey -gs sign_directive_Duke signedWriteFile.jar

# Step 6. Move the signed archive to a file suffixed in .jar.

copy signedWriteFile.jar.sig signedWriteFile.jar

# Step 7. Show the contents of the signed archive.=20

echo " "
echo "Contents of the archive are: "
jar tvf signedWriteFile.jar

# Step 8 . Show the contents of the identity database.=20

echo " "
echo "Contents of the identity database are: "
javakey -ld

After finishing this step, I execute signedWriteFile.html through IE40. =
The problem is still there.("writeFile: caught security exception").
Could you help me to sovle this?

Thank you very much for your help.

Regard,

Rongmei Rao

------=_NextPart_000_0004_01BE9260.261CF420
Content-Type: text/html; charset="hz-gb-2312"
Content-Transfer-Encoding: quoted-printable
X-Sun-Content-Length: 3776

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
Dear Sir,
I have downloaded all = the files in=20 the jkd1.1.x security example.

These files are:=20

- writ= eFile.html=20 and writeFil= e.java=20 =20
- Duke.= x509=20 certificate=20
- cer= t_directive_Duke=20 (template for generating a certificate)=20
- sig= n_directive_Duke=20 (template for signing an archive)=20
- signedWriteFile.html=20 and signedWriteFile.jar=20

Then, I follow the following step to creat the files needed.
#! /bin/csh
# Step 1. Create the Duke identity, as a trusted = identity
javakey -cs Duke true
# Step 2. Generate a keypair for Duke, and store the public = key in a=20 file named
# Duke_pub and the private key in a file named Duke_priv
javakey -gk Duke DSA 512 Duke_pub Duke_priv
# Step 3. Generate an x509 certificate for Duke, and store it = in the=20 file
# named Duke.x509. This output file name is given in = the=20 directive file
# named cert_directive_Duke.
javakey -gc cert_directive_Duke
# Step 4. Create the archive.
jar cf signedWriteFile.jar writeFile.class writeFile.html
# Step 5. Sign the archive, using the parameters given = in=20 sign_directive_Duke.
javakey -gs sign_directive_Duke signedWriteFile.jar
# Step 6. Move the signed archive to a file suffixed in = .jar.
copy signedWriteFile.jar.sig signedWriteFile.jar
# Step 7. Show the contents of the signed archive. =
echo " "
echo "Contents of the archive are: "
jar tvf=20 signedWriteFile.jar
# Step 8 . Show the contents of the identity database. =
echo " "
echo "Contents of the identity database are: "
javakey = -ld
After finishing this step, I execute signedWriteFile.html through = IE40. The=20 problem is still there.("writeFile: caught security =20 exception").
Could you help me to sovle this?
Thank you very much for your help.
Regard,
Rongmei Rao
------=_NextPart_000_0004_01BE9260.261CF420--

- Next message: Marianne Mueller: "Re: question"
- Previous message: Radovan Skolnik: "Java & Kerberos"