Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > SSL Sockets in Java Applet

SSL Sockets in Java Applet
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2002
Status: Offline
Reply With Quote
Sep 25, 2002, 04:16 AM
 
Hello colleagues,

does anyone of you have experience in "connecting to a server (servlet) by a Java applet using SSL on Mac OS9 or Mac OS X" ?

My applets support secure file transfer in conjunction with SSL, HTTP 1.0 and 1.1. proxy servers. This works fine for the PC platform.
Interactive Truststore check like browsers offer is not yet supported.
Therefore the webserver to connect to uses a Verisign certificate (should also be contained in Mac-client's truststore), i include additional archives on MAC OS 9 (jsse.jar, jcert.jar, collections.jar ...), MRJ 2.2.5 has been installed.
I do not use MRJ classes within my applet code for the Mac suite.

On Mac OS9 and Mac OSX the insecure variant is working. If i turn on the secure state, i cannot establish the SSL Socket connection.

erros:
OSX: access denied exception in Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

OS9: class not found exception: java.security.PriviledgedAction, although this class is contained in one of the jars which were loaded from the webserver).


I am in favor of every hint, example code snippets or links.

Lanzelot
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Sep 25, 2002, 10:25 PM
 
Can't speak for OS 9, but X comes with JSSE, so you just need to make sure you have your keystore set up and a policy file that allows you to connect.

You can try policytool, or just make a policy file yourself like:

Code:
grant { permission java.net.SocketPermission "<hostname>:<port>", "accept,listen, resolve,connect"; };
then reference the policy file with the -D option -Djava.security.policy==<filename>.policy
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
Fresh-Faced Recruit
Join Date: Sep 2002
Status: Offline
Reply With Quote
Sep 26, 2002, 03:15 AM
 
Thanks a lot for your hint.

I will try to use this on OS 9 too.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2