0

I use Tyrus webSocket implementation to connect to the server from my JavaFX application. When I try to establish connection over SSL I get this error: javax.net.ssl.SSLException: SSL handshake error has occurred - more data needed for validating the certificate

I tried to use a dummy certificate and host verification as described in Disable Certificate Validation in Java SSL Connections but to no avail.

There is also not much information on Tyrus documentation.

I simply don't know what to do!

P.S. For what it's worth I managed to get around this issue by using Grizzly client

//final WebSocketContainer container = ContainerProvider.getWebSocketContainer();
final ClientManager client = ClientManager.createClient();

URI uri = URI.create(this.uri + "?" + System.currentTimeMillis());
session = client.connectToServer(this, uri); 
Dmitry
  • 1,484
  • 2
  • 15
  • 23

1 Answers1

0

It sounds like you need to install a certificate chain. I believe you can import the signing certificate using keytool -import. Have you setup the certificate store?

Ed Neville
  • 155
  • 1
  • 10