Troubles with signed applet for IE
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   nicolas_lacoste
Posted On:   Wednesday, February 6, 2002 10:56 AM

Hi, I use all the mechanism offerts by Microsoft Authenticode to sign my applet (I want to acces to a file on the client harddisk). In oder to test my applet, my certificat has been obtained with makecert and I use cert2spc to convert my .cert to a .spc file. After that I used signcode with this certificate (and private key) to sign my .cab which contained my applet class file. I set the permission level to low (I tried high and custom to). When I want to load my applet, a window appear and ask me if i want to accept this certificat. I click Yes but in the IE java console there is some permissions exceptions : Microsoft (R) VM for Java, 5.0 Release 5.0.0.3802 =======================   More>>

Hi,
I use all the mechanism offerts by Microsoft Authenticode to sign my applet (I want to acces to a file on the client harddisk).
In oder to test my applet, my certificat has been obtained with makecert and I use cert2spc to convert my .cert to a .spc file.
After that I used signcode with this certificate (and private key) to sign my .cab which contained my applet class file.


I set the permission level to low (I tried high and custom to).
When I want to load my applet, a window appear and ask me if i want to accept this certificat. I click Yes but in the IE java console there is some permissions exceptions :



Microsoft (R) VM for Java, 5.0 Release 5.0.0.3802
==============================================


? aide

c effacer

f executer les finalisations

g rassembler les ments inutiles

m utilisation de la memoire

q quitter

t liste de threads

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


Constructeur

Init

Granted =null

java.lang.ClassNotFoundException:
netscape.security.PrivilegeManager
at com/ms/vm/loader/URLClassLoader.loadClass

at java/lang/ClassLoader.loadClassInternal

at JApplet1.grantedPrivilege

at JApplet1.init

at com/ms/applet/AppletPanel.securedCall0

at com/ms/applet/AppletPanel.securedCall

at com/ms/applet/AppletPanel.processSentEvent

at com/ms/applet/AppletPanel.processSentEvent

at com/ms/applet/AppletPanel.run

at java/lang/Thread.run

http://172.25.150.217/sicmTest/servlet/FileUploadServlet

Start

com.ms.security.SecurityExceptionEx[Host]: cannot access file c:autoexec.bat

at com/ms/security/permissions/FileIOPermission.check

at com/ms/security/PolicyEngine.deepCheck

at com/ms/security/PolicyEngine.checkPermission

at com/ms/security/StandardSecurityManager.chk

at com/ms/security/StandardSecurityManager.checkRead

at java/io/FileInputStream.

at PostFile.doJob

at JApplet1.start

at com/ms/applet/AppletPanel.securedCall0

at com/ms/applet/AppletPanel.securedCall

at com/ms/applet/AppletPanel.processSentEvent

at com/ms/applet/AppletPanel.run

at java/lang/Thread.run

com.ms.security.SecurityExceptionEx[Host]: cannot access file c:autoexec.bat

at com/ms/security/permissions/FileIOPermission.check

at com/ms/security/PolicyEngine.deepCheck

at com/ms/security/PolicyEngine.checkPermission

at com/ms/security/StandardSecurityManager.chk

at com/ms/security/StandardSecurityManager.checkRead

at java/io/FileInputStream.

at PostFile.doJob

at JApplet1.start

at com/ms/applet/AppletPanel.securedCall0

at com/ms/applet/AppletPanel.securedCall

at com/ms/applet/AppletPanel.processSentEvent

at com/ms/applet/AppletPanel.run

at java/lang/Thread.run

Fin






So I don't understand why ?



Somebody can help Me ?



Thanks



Nicolas




PS: The first exception is normal because i don't put the netscape security jar into my classpath because in a first step i want to use only IE    <<Less

Re: Troubles with signed applet for IE

Posted By:   P_Nagappan  
Posted On:   Wednesday, February 6, 2002 05:15 PM

Hi Nicolas ,

You need to set the Permissions in
Java Policy File.

Regards

Nagappan.
About | Sitemap | Contact