Message-Id: <3.0.1.32.19971103122728.00691934@pop.mindspring.com>
Date: Mon, 03 Nov 1997 12:27:28 -0500
To: java-security@web2.javasoft.com
From: "B. Monroe" <wmonroe@mindspring.com>
Subject: Signed Applet Example
--=====================_878596048==_
Content-Type: text/plain; charset="us-ascii"
Does this example work on a PC with Win95?
If so are all the steps documented?
--=====================_878596048==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="doit3.bat"
goto Step5
REM! /bin/csh
REM Step 1. Create the Duke identity, as a trusted identity
javakey -cs Duke true
REM Pause
REM Step 2. Generate a keypair for Duke,
REM and store the public key in a file named
REM Duke_pub and the private key in a file named Duke_priv
javakey -gk Duke DSA 512 Duke_pub Duke_priv
REM Pause
REM Step 3. Generate an x509 certificate for Duke, and store it in the file
REM named Duke.x509. This output file name is given in the directive file
REM named cert_directive_Duke.
javakey -gc cert_directive_Duke.txt
REM Pause
REM Step 4. Create the archive.
jar cf signedWriteFile.jar writeFile.class writeFile.html
:Step5
REM Step 5. Sign the archive, using the parameters given in sign_directive_Duke.
javakey -gs sign_directive_Duke.txt signedWriteFile.jar
:Step6
REM Step 6. Move the signed archive to a file suffixed in .jar.
REM mv signedWriteFile.jar.sig signedWriteFile.jar
COPY signedWriteFile.jar.sig signed.jar
REM Pause
REM Step 7. Show the contents of the signed archive.
echo " "
echo "Contents of the archive are: "
jar tvf signedWriteFile.jar
REM Pause
REM Step 8 . Show the contents of the identity database.
echo " "
echo "Contents of the identity database are: "
javakey -ld
--=====================_878596048==_
Content-Type: text/plain; charset="us-ascii"
--=====================_878596048==_--