# Javakey and signed applets

Milind Rao (milind@ragemail.com)
Thu, 24 Jun 1999 16:46:24 -0400 (EDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Marianne Mueller: "signing an applet"
- Previous message: Jan Luehe: "Re: Running signed applets in browser"

    Message-Id: <199906242114.OAA11515@mail.java.sun.com>

    From: "Milind Rao" <milind@ragemail.com>

    To: "java-security@java.sun.com" <java-security@java.sun.com>

    Date: Thu, 24 Jun 1999 16:46:24 -0400 (EDT)

    Subject: Javakey and signed applets

I'm reposting this message, since the previous post seems to have been spammed.
In fact a whole bunch of messages have been spammed.

====================================

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 and Communicator 4.0.

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

- Next message: Marianne Mueller: "signing an applet"
- Previous message: Jan Luehe: "Re: Running signed applets in browser"