I am running the KITE Connect Java Client, I have a paid subscription and it is currently active and I am able to fetch quotes using it but when I try to make a websocket connection, I get the following exception, can anyone help, will I have to purchase and install a SSL certificate to get connection from websockets. Below is the exception :
com.neovisionaries.ws.client.WebSocketException: Failed to send an opening handshake request to the server. at com.neovisionaries.ws.client.WebSocket.writeHandshake(WebSocket.java:1604) at com.neovisionaries.ws.client.WebSocket.shakeHands(WebSocket.java:1510) at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:824) at com.rainmatter.ticker.KiteTicker.connect(KiteTicker.java:158) at com.rainmatter.test.Examples.tickerUsage(Examples.java:407) at com.rainmatter.test.Test.main(Test.java:59) Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:980) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1363) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:735) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) at java.io.FilterOutputStream.flush(FilterOutputStream.java:140) at com.neovisionaries.ws.client.WebSocket.writeHandshake(WebSocket.java:1599)
You don't have to buy any certificates. Please followup on this thread, if you are still facing issue.