Re: Signed Applet Example

Charlie Lai (Charlie.Lai@Eng)
Mon, 3 Nov 1997 16:03:06 -0800 (PST)

From: Charlie.Lai@Eng (Charlie Lai)
Message-Id: <199711040003.QAA04576@angeles.eng.sun.com>
Subject: Re: Signed Applet Example
To: wmonroe@mindspring.com (B. Monroe)
Date: Mon, 3 Nov 1997 16:03:06 -0800 (PST)
In-Reply-To: <3.0.1.32.19971103122728.00691934@pop.mindspring.com> from "B. Monroe" at Nov 3, 97 12:27:28 pm

hi,

> Does this example work on a PC with Win95?
>
> javakey -cs Duke true
> javakey -gk Duke DSA 512 Duke_pub Duke_priv
> javakey -gc cert_directive_Duke.txt
> jar cf signedWriteFile.jar writeFile.class writeFile.html
> javakey -gs sign_directive_Duke.txt signedWriteFile.jar
> COPY signedWriteFile.jar.sig signed.jar
> jar tvf signedWriteFile.jar
> javakey -ld

if you're using JDK 1.1.4, then there's a bug which prevents
this from working on Win95/NT machines.
the bug will be fixed in the next release.
the workaround:

in a temporary subdirectory:
1) jar xvf signedWriteFile.jar
2) jar cvf newSignedWriteFile.jar META-INF\DUKESIG.SF META-INF\DUKESIG.DSA
writeFile.class writeFile.html
3) use this new signed jar file in place of the old signed jar.

thanks for pointing this out, and sorry for the inconvenience.
charlie