signing an applet

What do i do wrong ?

keytool -genkey -keystore testStore -alias testCert

keytool -selfcert -keystore testStore -alias testCert

keytool -export -keystore testStore -alias testCert -file testCer.cer

keytool -import -keystore testStore.store -alias testCer -file testCer.cer

jarsigner -keystore testStore testJar.jar testCert

i created a java.policy:

keystore "http://localhost/signed/testStore.store

grant signedBy "testCert" {

permission java.io.FilePermission "C:\\-", "write";

};

i put the:

java.policy

testCer.cer

i still get the testFile: "caught security exception"

testStore.store

am i missing something, or doing something wrong ?

[740 byte] By [df_na] at [2007-11-24]
# 1
sorry:i put the:java.policytestCer.certestStore.storetestJar.jarinto http://localhost/signed
df_na at 2007-7-8 > top of java,Security,Signed Applets...