# security exception when runing signed jar file in JRE

Peter Vennel (peter.vennel@mci.com)
Fri, 19 Feb 1999 16:19:56 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Nate: "Incredible $0 to $50,000 In 90 Days !!!"
- Previous message: Peter Vennel: "security exception when runing signed jar file"

    From: "Peter Vennel" <peter.vennel@mci.com>

    To: <java-security@java.sun.com>, <jre-comments@java.sun.com>

    Subject: security exception when runing signed jar file in JRE

    Date: Fri, 19 Feb 1999 16:19:56 -0500

This is a multi-part message in MIME format.

------=_NextPart_000_0014_01BE5C23.B0132CD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
I could successfully run the test example at
=20
http://java.sun.com/security/signExample12/signedPluginEx.html
=20
after following the instructions given there.
=20
But, when I tried to do it using new jar file, I got security exception =
...
=20
I am running the batch file given below :
=20
**************** start of batch file ****************
=20
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"
=20
REM # Step 2: Create the archive.
h:\jdk1.2\jar cfv signedWriteFile.jar writeFile.class writeFile.html
=20
REM # Step 3: Sign the archive.
h:\jdk1.2\jarsigner -verbose signedWriteFile.jar OLI
=20
REM # Step 4: Show the contents of the signed archive.
h:\jdk1.2\jar tvf signedWriteFile.jar
=20
REM # Step 5: Show the keystore contents.
h:\jdk1.2\keytool -list
=20
**************** start of batch file ****************
=20
I also modified the policy file using policytool utility.
=20
The line added is as below :
=20
CodeBase=3D"http://dev1-cbs.mcit.com:120/testpete/*.*",SignedBy "OLI"
=20
Further how do I create .x501 files that I have to distribute to the =
client for importing to their 1.2 keystore.
=20

Could anyone tell me where I am going wrong ??
=20
Any comments/ suggestions are welcome .
=20
Thanx.
=20
Peter Vennel

------=_NextPart_000_0014_01BE5C23.B0132CD0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
Hi,
I could successfully run the test = example=20 at
h= ttp://java.sun.com/security/signExample12/signedPluginEx.html<= /DIV>
after following the instructions = given=20 there.
But, when I tried to do it using new = jar file, I=20 got security exception ...
I am running the batch file = given below=20 :
**************** start=20 of batch file ****************
REM # Step 1: Create identity = "OLI"=20 with new keypair and self-signed certificate.
h:\jdk1.2\keytool = -genkey=20 -alias OLI -dname "cn=3DOLI, ou=3DContract Billing = System,
o=3DMCI-Worldcom=20 Inc., c=3Dus"
REM # Step 2: Create the=20 archive.
h:\jdk1.2\jar cfv signedWriteFile.jar writeFile.class=20 writeFile.html
REM # Step 3: Sign the=20 archive.
h:\jdk1.2\jarsigner -verbose signedWriteFile.jar = OLI
REM # Step 4: Show the contents of = the signed=20 archive.
h:\jdk1.2\jar tvf signedWriteFile.jar
REM # Step 5: Show the keystore=20 contents.
h:\jdk1.2\keytool -list
**************** start=20 of batch file ****************
I also modified the policy file = using policytool=20 utility.
The line added is as below = :
CodeBase=3D"http://dev1-cbs.mcit.com:120/testpete/*.*"= ,SignedBy=20 "OLI"
Further how do I create .x501 = files that I=20 have to distribute to the client for importing to their 1.2=20 keystore.
Could anyone tell me where I am = going wrong=20 ??
Any comments/ suggestions are = welcome=20 .
Thanx.
Peter = Vennel
------=_NextPart_000_0014_01BE5C23.B0132CD0--

- Next message: Nate: "Incredible $0 to $50,000 In 90 Days !!!"
- Previous message: Peter Vennel: "security exception when runing signed jar file"