From: =?iso-8859-1?Q?S=E9bastien_RUPIN?= <srupin@odaxys.fr>
To: "'java-security@java.sun.com'" <java-security@java.sun.com>
Subject: Pb with signed applet
Date: Wed, 10 Feb 1999 09:58:23 +0100
I have test the small example of the applet signed with version 1.2 of
the JDK While following the various stages I arrive has to write a file
since your site. I would
like to now make the same thing on my server Netscape enterprise 3.0. I
have thus to download the files writefile.java signedwritefile.html
signedpluginex.html. I
generated a keystoke file with the command :
keytool - genkey - alias Seru - dname "cn=Seru, ou=Odaxys,
o=Odaxys, c=Fr ".
I have use the command :
jar cfv signedWriteFile.jar writeFile.class writeFile.html
for creating the jar file then the command :
jarsigner - verbose signedWriteFile.jar Seru to sign the
file.
I add a policy in the .java.policy :
grant signedBy "Seru", codeBase
"http://rome.scarmor.fr/MS/extranet_fournisseur/recupfic/signedWriteFile
.jar" {
permission java.io.FilePermission "C:${/}tmpfoo",
"write";
};
Unfortunately I always have the message:
writeFile: caught security exception
I don't know what to do now.
Sebastien RUPIN