javax.net.ssl.SSLException: Unrecognized SSL handshake

I am getting the following error while trying to post a file through SSL communication. Could you please shed some light in resolving the issue. Thanks a lot!
g46905Asked:
Who is Participating?
 
hoomanvConnect With a Mentor Commented:
example:
String protocols[] = {"SSLv3", "TLSv1"};
sslSocket.setEnabledProtocols(protocols);

this page could be helpful
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html
0
 
hoomanvCommented:
have you specified the https protocol ?
https://
0
 
Curtis ShullFounderCommented:
You can check out SSLSocket.get/setEnabledProtocols() and turn off that option.

And of course, make sure you're connecting to a SSL server. If you have a regular HTTP server, it won't
understand the SSL handshake.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
g46905Author Commented:
Yes, we did specify it to be https:// and using port 443.
0
 
g46905Author Commented:
Can you provide me wtih an example showing how to turn off SSLSocket.get/setEnabledProtocols() ? Thanks for your help
0
 
Curtis ShullFounderCommented:
hoomany beat me too it :>)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.