0

I´m working on an java applet that must be able to perform operations that are not allowed inside the "sandbox". My java applet needs all permissions. Right now I´m running the applet on a local server.

I´ve tried to use a self-certificate for creating a signed applet but it won´t work for me. Are there any other way to do this or do you guys know any good tutorial for creating a self-certificate?

Kind regards / H

hgerdin
  • 637
  • 2
  • 8
  • 24
  • If it needs that many privileges, why is it an applet to start with? This is like asking a word processor to run as root. – fge Feb 21 '14 at 07:51
  • I´ve never done this before and maybe it doesn´t need to be an applet but that´s the method that I´ve chosen. What other possibilities are there for a website to communicate with client hardware? @fge – hgerdin Feb 21 '14 at 07:57
  • jnlp, maybe? But even then accessing local hardware is probably restricted to admin users, so you'll be SOL if the user runs it as a regular user. – fge Feb 21 '14 at 08:16

1 Answers1

0

That you are asking for (all permissions for unsigned applet) would be a security exploit.

If the applet shows something rather trivial, I would suggest to rewrite in JavaScript instead. HTML 5 provides now some increased capabilities like restricted local file system access.

If this is a serious program, may be much better to offer it as a standalone .jar application. That way you go around the browser actions that seem getting increasingly unstable and problematic, as long as Java applets are concerned.

Audrius Meškauskas
  • 20,936
  • 12
  • 75
  • 93