Javakey and signed applets again

Milind Rao (milind@ragemail.com)
Mon, 21 Jun 1999 17:49:24 -0400 (EDT)

Message-Id: <199906212252.PAA07563@mail.java.sun.com>
From: "Milind Rao" <milind@ragemail.com>
To: "java-security@java.sun.com" <java-security@java.sun.com>
Date: Mon, 21 Jun 1999 17:49:24 -0400 (EDT)
Subject: Javakey and signed applets again

Hi,

I'm using Java 1.1.8 preview on OS/2 and am having trouble creating a signed
applet that will read a file on my local machine.

I got the Signed Applet example from sun site and it worked just fine using
navigator 3.0. But it failed while using applet viewer.

I followed the "Using Javakey" web site instructions to sign my jar file. But
it keeps throwing a security exception whenever I try to read the file. It
doesn't work in the applet viewer nor in navigator.

javakey -ld shows

Scope: sun.security.provider.IdentityDatabase, source file:
:\JAVA11\DLL\..\identitydb.obj

duke[identitydb.obj][trusted]
public key initialized
certificates:
certificate 1 for : CN=Duke, OU=JavaSoft, O=Sun MicroSystems, C=US
from : CN=Duke, OU=JavaSoft, O=Sun MicroSystems, C=US

No further information available.

[Signer]milind[identitydb.obj][trusted]
public and private keys initialized
certificates:
certificate 1 for : CN=Milind Rao, OU=Development, O=Software
Information Management, C=US
from : CN=Milind Rao, OU=Development, O=Software
Information Management, C=US

No further information available.

I also created a java.pol security policy file that granted permission to all
applets to read all files.
grant SignedBy "milind" {
permission java.io.FilePermission "*", "read";
};

But the documentation for policy seems to be only for Java 1.2. So I'm not
sure whether this has any effect in 1.1.8 or not.

Any help would be appreciated.

Regards
Milind