applet signing basic problem.

Hi,

I have an applet that is added to an html page that need to accces

the files from client m/c.

In order to make it work on my machine i made changes in .java.policy file granting

allPermission.

Now, i understand that i need to

make my applet a signed applet.After reading some docs I managed to make myCert

using keytool and then a myApplet.jar file combining myApplet.java MyApplet.class and com

(I got com package from C:\WINNT\java\Packages\GCTBP3N9.ZIP file).And then i

used jarSigner to sign my myApplet.jar with the certificate i created.

I canot however get anythg concrete through this neither through appletviewer

nor through browser.

I can post my code if ny one is interested to have a look.

Help,

Shelly

[813 byte] By [ShellyKalra22a] at [2007-9-29 17:42:07]
# 1
If your trying to view the applet in internet explorer you must use a signed cab file, not jar file.
fiasc0a at 2007-7-15 16:44:30 > top of Java-index,Security,Signed Applets...
# 2
Sun's JVM doesn't support CAB files at all. Yes you can use a signed jar file in IE.Not sure about the original question though.
patrickBunta at 2007-7-15 16:44:30 > top of Java-index,Security,Signed Applets...
# 3

Signing the applet for the MSJVM (microsoft java virtual machine) should work in IE Not the applet viewer as this is from SUN and I don't think a MSJVM signed applet does anything for the SUN jre.

The MSJVM deadline was 1 jan 2004 and has been moved to 30 sep 2004 but using the MSJVM is not adviced.

If you have a jar file named test.jar with the applet test.class starting then you can sign the applet like so:

keytool -genkey -alias harm -keypass keypass -keystore keystore.com -storepass storepass

jarsigner -keystore keystore.com -storepass storepass -keypass keypass -signedjar sTest.jar test.jar harm

The html file should look like this:

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"

height="300" width="450" >

<param name="code" value="test.class" />

<param name="archive" value="sTest.jar" />

<!--[if !IE]> Mozilla/Netscape and its brethren -->

<object classid="java:test.class" archive="sTest.jar"

height="300" width="450"

>

</object>

<!-- <![endif]-->

</object>

harmmeijera at 2007-7-15 16:44:30 > top of Java-index,Security,Signed Applets...
# 4

Try this ones, I've just replied them

http://forum.java.sun.com/thread.jsp?forum=63&thread=468421&tstart=0&trange=15

http://forum.java.sun.com/thread.jsp?forum=63&thread=473751&tstart=0&trange=15

One of them talks about avoiding SecurityManager; that way, you don't need any client to use it's policy tool, just grant you that control. About displaying it on IE and N, try the other post

Hope to be helpfull, make me know if not

--

...where Java has never gone before.

PowermikeGXa at 2007-7-15 16:44:30 > top of Java-index,Security,Signed Applets...