• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Plug-in/signed applet issue

 
Alex Belt
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a signed applet that users access in IE. Most use the Microsoft JVM, and the applet works since it's in a signed cab file. With MS support of Java at an end, users are starting to access this site with a Sun plug-in rather than the MS VM. I created a jar file with the same classes, and followed Thawte's instructions for using an Authenticode certificate to sign jar files. I have the certificate in an external pkcs12 keystore, and I signed the jar files using the jarsigner tool. I can verify the signature, but when I deploy the jar file and switch to the Java plug-in, it acts as if it wasn't signed and is still confined by the sandbox. It prompts the user if they want to accept the certificate, which is valid, but it doesn't grant them any permissions, so it throws a SecurityException because the applet tries to access the file system. I'm wondering if I overlooked something or if I signed the applet incorrectly. I realize this isn't a lot of detail, but I've checked the Sun tutorials, forums, and anywhere else I could think of, but I can't seem to find any ideas about what is wrong. If you need more info or have any ideas, please let me know.
TIA,
Alex
 
Alex Belt
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think I found the problem. Seems that in 1.4.x, when you call a method from javascript that executes privileged code, you have to go through the AccessControl.doPrivileged() method or it loses its privileges, even if the code is signed. What a mess. Now I'm going to have two sets of code floating around, one that works with the MS JVM, and another for the Sun plug-in.
Alex
 
Rawat Vijay
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you let me that piece of code I am also facing the same problem
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic