Android Question SSL Websocket client

LucaMs

Expert
Licensed User
Longtime User
Trying to connecting to my websocket server:

closed javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x63a133b0: Failure in SSL library, usually a protocol error
error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:741 0x61803166:0x00000000)

Libraries used:
client: WebSocket 2.00
server: jServer 2.80

The server starts and it is reachable (ping). I suppose that if the server SslConfiguration (and the keyvaluestore I created) were incorrect the server would not start/work, correct?
 

LucaMs

Expert
Licensed User
Longtime User
upload_2018-1-18_17-22-12.png
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Erel your project works perfectly but there is a problem, I think: if you use a Wait For (or a Sleep) in the Starter, the "flow control" will be passed to the Main Activity. Also, I don't open the connection in the Starter.

So I tried to move your code in a class but I clashed against a wall: is it possible to use "Wait For" to wait for an event of a custom object?
 

Attachments

  • wss 3.zip
    9.3 KB · Views: 693
Upvote 0
Top