• Post Reply Bookmark Topic Watch Topic
  • New Topic

What does this exception mean?? Thanx!  RSS feed

 
Javan Li
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.net.ssl.SSLHandshakeException: FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable to negotiate an acceptable set of security parameters.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The key exchange, encryption and digest protocols in SSL are not fixed. There are a fair number of alternatives to choose from and most implementations do not support all of them. Not just because of laziness on the part of the programmers; cryptography is fraught with patent issues that can be quite a hindrance to software developers.
When setting up an SSL session -- the SSL handshake -- client and server have a little chat with each other about the protocols each of them supports and usually can find a greatest common denominator that will do the job. Apparently, not so in this case.
Can you give us a bit more context?
- Peter
 
Javan Li
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess i didn't add this to my code.
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider( ));
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!