This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Want to convert Applet to SSL

 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to convert my Applet to SSL. I have used SSL (with a full program, not an Applet). It is currently signed and works fine. What will I have to do extra for SSL to work for the Applet? I am NOT talking about the coding part. That is already taken care of. Will the signing of the JAR file be enough to work for the SSL? For example,
Current : JAR signed, No SSL
Wanted : JAR signed, SSL

What would I have to do to convert between current and wanted? Please note that the answer my be "nothing". I am just trying to figure it out. Also, I have limited experience with SSL, but I'm not stupid.

Thanks,
John Price
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My keystore for the JAR currently is "keystore". Can I just use the same keystore? And in the beginning of the code, I would have to do something like (?) :


John Price
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Applets forum.
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I figured part of it out. I got it running (server and client side). When I try to connect client and server, I get this error in the server :


Both are now running. I am getting this error when I try to connect them. How can I fix this?
NOTE : The server and client are being tested on the same machine

Thanks,
John Price

EDIT : Line 93 :
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've had this issue before on a different program...Here is the solution I found :


The easiest way to fix this is to set the cipher suite in your program (client & server). Does no one know about SSL?

John Price
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's put it this way... I wrote an applet and signed it with a certificate which we purchased from one of the well-known organizations (hint... its name starts with V...).

Then I put it into a page of our web application, which was accessed via SSL using a (different) certificate which we purchased from that same well-known organization. And what happened? Instead of our users being asked nicely if they want to accept the applet which was signed with the well-known organization's certificate, they get harsh messages that the applet has a malformed certificate chain. (Or something like that, it was a while ago that this happened.)

So we switched to not using SSL for that page and then the signed applet worked just fine. In answer to your question about whether anybody understands SSL, then, I'm tempted to suggest the answer is "No".
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I avoided all that certificate "crap" by setting the suite directly. I still sign and self-certify the Applet. So far, the only thing that pops up is a "Run" dialog I think. But that dialog is for the keystore/signed part of the Applet. SSL itself isn't the problem for me. Thank you for sharing your experiences and your honest assumption. Where can I find out more about SSL (in Java, not generally)? For example, is there a Java SSL forum?

Thanks,
John Price
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic