From: "Peter Vennel" <peter.vennel@mci.com>
To: <java-security@java.sun.com>
Subject: security exception when runing signed jar file
Date: Fri, 19 Feb 1999 15:55:17 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01BE5C20.3F0B3300
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I could successfully run the test example at
http://java.sun.com/security/signExample12/signedPluginEx.html
after following the instructions given there.
But, when I tried to do it using new jar file, I got security exception =
...
I am running the batch file given below :
**************** start of batch file ****************
REM # Step 1: Create identity "OLI" with new keypair and self-signed =
certificate.
h:\jdk1.2\keytool -genkey -alias OLI -dname "cn=3DOLI, ou=3DContract =
Billing System,
o=3DMCI-Worldcom Inc., c=3Dus"
REM # Step 2: Create the archive.
h:\jdk1.2\jar cfv signedWriteFile.jar writeFile.class writeFile.html
REM # Step 3: Sign the archive.
h:\jdk1.2\jarsigner -verbose signedWriteFile.jar OLI
REM # Step 4: Show the contents of the signed archive.
h:\jdk1.2\jar tvf signedWriteFile.jar
REM # Step 5: Show the keystore contents.
h:\jdk1.2\keytool -list
**************** start of batch file ****************
I also modified the policy file using policytool utility.
The line added is as below :
CodeBase=3D"http://dev1-cbs.mcit.com:120/testpete/*.*",SignedBy "OLI"
Further how do I create .x501 files that I have to distribute to the =
client for importing to their 1.2 keystore.
Could anyone tell me where I am going wrong ??
Any comments/ suggestions are welcome .
Thanx.
Peter Vennel
------=_NextPart_000_0006_01BE5C20.3F0B3300
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">