Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SSL settings for Stand-Alone Java Application in Sun JRE  RSS feed

 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I have the below set up configurations done in my stand-alone java client program, to talk to a HTTPS enabled 2-way SSL server application. This works fine in a IBM JRE.



But when I run the same client program in Eclipse under a Sun-JRE, I get into an error saying
===
Exception in thread "main" java.io.IOException: Error occured when communicating : java.net.SocketException: Unconnected sockets not implemented
===

I have the below questions:

  • I believe the configurations for keyStore and trustStore from the above set still holds good for Sun-JRE as well. Or is it different?
  • Are configurations that use "com.ibm.*" above needs to be changed to Sun specific ones?
  • Does it make any difference to create the keyStores and trustStores using Sun JRE or IBM JRE ?


  • Any help will be useful.

    Thanks!
    Mani
     
    Rob Spoor
    Sheriff
    Posts: 20893
    81
    Chrome Eclipse IDE Java Windows
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Let's move this to our sockets forum.
     
    Manikandan Jayaraman
    Ranch Hand
    Posts: 230
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Got it working.

    Just remove all those System.setProperty that has "com.ibm." kind of settings. Just keep the keyStore and trustStore settings and it works for sun jre.

     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!