This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes SSLHandshakeException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "SSLHandshakeException" Watch "SSLHandshakeException" New topic
Author

SSLHandshakeException

David McCombs
Ranch Hand

Joined: Oct 17, 2006
Posts: 212
I am trying to write a stand alone SSLSocket application. I created the certificate with this line:

keytool -genkey -keystore serverkeys -keyalg rsa -alias chat

The SSLServerSocket gets created with no issues. The server accepts connections from the client without complaint. The problem is when I try and create the IO streams. On the server side this is the exception:



here is the relevant code:



and



On the client side, I get this exception:



The code:



What am I missing?


"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration."- Stan Kelly-Bootle
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SSLHandshakeException
 
Similar Threads
reaching the catch in readOrders();
Does anybody know about Thread Analyzer ??
Interesting error with CipherInputStream
Java (blueJ)
Reading Objects and Formatting Ouput