Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about applet security

Status
Not open for further replies.

IPOz

Programmer
Jul 11, 2001
109
CN
Hi,friends
I need the applet downloaded from server1 can open socket connection with server2.I have chanaged the java.policy of client side as below:
...
permission java.net.SocketPermission "localhost:1024-", "listen";
permission java.net.SocketPermission "server2:1024-", "connect,resolve,accept";
...
But it alway reported "access denied".

Please help me resovle it.

Best Regards! IPO_z@cmmail.com
Garbage in,Garbage out
 
Now i have successfully signed the jar file and export the certificate file.On client side i imported that xxx.cer into $(jre)/lib/security/cacerts keystore.
However when i changed the java.policy using policytool it reported:
Warning: Unable to open Keystore: file://C:/jdk1.3.1/jre/lib/security/cacerts
Warning: A public key for alias 'midas' does not exist.

I know the JRE needs the public key to ensure the signed applet's correctness.But how can i make such a public key?

Best Regards! IPO_z@cmmail.com
Garbage in,Garbage out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top