aspose file tools*
The moose likes Applets and the fly likes Want to convert Applet to SSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Want to convert Applet to SSL" Watch "Want to convert Applet to SSL" New topic
Author

Want to convert Applet to SSL

john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

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


“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

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

Joined: Oct 27, 2005
Posts: 19722
    
  20

Moving to our Applets forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

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

Joined: Feb 24, 2011
Posts: 495

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
Bartender

Joined: Oct 14, 2005
Posts: 18669
    
    8

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

Joined: Feb 24, 2011
Posts: 495

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Want to convert Applet to SSL