# Signed applet problem

David HANNAPPE (dhe@orlando.fr)
Wed, 23 Sep 1998 16:25:40 +0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: heiko.grussbach@crpht.lu: "Exception while generating keys in applets"
- Previous message: athip: "Problem of Signing Jar File."

hello,
I wrote an applet that act like a local proxy:
1 - Listen to 127.0.0.1:7070 for Browser Request (Communicator 4.05)
2 - Connect to a server named lolita
I asked Privilege to the Nescape PrivilegeManager:
UniversalListen
UniversalAccept
UniversalConnect
UniversalThreadAccess
I sign my code with correctly with a test certificate and make a jar
I download my applet is download from lolita to pepita

on pepita make http://lolita/myapplet.html
the problem is:
when I try to connect my applet which is listening to 127.0.0.7:7070
(pepita:7070)
from pepita, I got:
# Applet exception: security.Couldn't connect to '127.0.0.1' with origin
from 'lolita'.
netscape.security.AppletSecurityException: security.Couldn't connect to
'127.0.0.1' with origin from 'lolita'.
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurity.checkConnect(Compiled Code)
at netscape.security.AppletSecurity.checkConnect(Compiled Code)
at netscape.security.AppletSecurity.checkConnect(Compiled Code)
at netscape.security.AppletSecurity.checkAccept(Compiled Code)
at java.lang.SecurityManager.checkAccept(Compiled Code)
at java.net.ServerSocket.implAccept(Compiled Code)
* at java.net.ServerSocket.accept(Compiled Code)
at ProxyClientApplet.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
java.io.IOException: CreateProcess: vcafe -netscape error=2
at java.lang.Win32Process.<init>(Compiled Code)
at java.lang.Runtime.exec(Compiled Code)
* at java.lang.Runtime.exec(Compiled Code)
at netscape.debug.Debugger.launchDebugger(Compiled Code)
at netscape.debug.Debugger.uncaughtException(Compiled Code)
at netscape.applet.AppletThreadGroup.uncaughtException(Compiled Code)

when I try to connect my applet which is listening to 127.0.0.7:7070
(pepita:7070)
from pepita, every thing is fine.
my applet accept and connect only sockets which came from lolita (its
origin).
Is that mean that I cannot run a applet that accepts connexion from an
undefined host even my applet is a signed applet ?
thank you for respnding me and excuse me for contacting you directly .

PS: I use the JDK 1.1.6 + java40.jar from netscape
David

    --
    NEUROCOM
    David Hannappe
    dhe@neurocom.com
    179-181 Av Charles de Gaulle, 92200 Neuilly/seine
    Tel: 01 41 43 84 68, Fax: 01 41 43 84 80

- Next message: heiko.grussbach@crpht.lu: "Exception while generating keys in applets"
- Previous message: athip: "Problem of Signing Jar File."