• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Want to convert Applet to SSL

 
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22772
130
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Marshal
Posts: 27996
94
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic