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 > Java Security Extensions

Java Security Extensions
Thread Tools
Fresh-Faced Recruit
Join Date: Aug 2001
Status: Offline
Reply With Quote
Aug 19, 2001, 09:23 PM
 
Has anyone downloaded, installed and used the Java security extensions at http://java.sun.com/security/ ? In particular, the Secure Socket Extension. I've downloaded and installed it, but I must be doing something wrong in the configuration because whenever I make a call to SSLServerSocketFactory.getDefault() nothing happens - no exceptions or anything - it just hangs. So if anyone has installed this extension and got it working - what did you have to do?
     
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
Aug 20, 2001, 08:19 PM
 
Yes, and they do work just fine. You need to update the java.security properties file after you install the 3 .jar files in the /lib/ext folder. Install.txt step 4a has the appropriate instructions.

You will also need appropriate digital certificates if you are going to create a secure connection with anyone else (or yourself for that matter). Sun does not supply these, someone like Thawt or Verisign does, ($$$). Thawt does have a web page where you can create a free evaluation certificate for testing though.

It takes quite awhile for the handshake and socket connection to take in secure mode. 30-60 sec is not uncommon in the application I was coding. If your socket factory and secure socket creation code looks just like the examples on the Sun site powerpoint JSSE slides you should be good to go once you have certificates in place. You don't have to authenticate in both directions if you don't want to, that is all application specific to your situation, but without something to authenticate the secure socket won't happen.

Also the stream in a socket does not really exist until the first actual data packet is transferred. The hand-shaking doesn't occur until then even though there has already been preliminary communication. So you can get exceptions on the stream significantly after you thought you had established the socket connection. Use a startHandshake to force an immediate full fledged connection. It will make troubleshooting and exception catching much easier.

[ 08-20-2001: Message edited by: AirSluf ]
     
   
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 11:26 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