Page 1 of 1

WebSocket tls protocol

Posted: 26 Dec 2016, 22:25
by Kayler
Hi, I try to create a connection using WebSocket HTML5 standard example for HTTPS.
I have purchased a certificate from comodo, I have created on its basis keystore.

It seems that everything is configured correctly, get this error
Image
I think that the problem is the difference between the type of connection protocol
Image
and here it returns the program "portecle" when I test the connection to the server
Image
I tried to put these parameters but it does not work :(
Image

Re: WebSocket tls protocol

Posted: 27 Dec 2016, 11:00
by Lapo
Hi,
there is no need to pass those extra parameters in the JVM options. Please remove them and try without them.
Also make sure to follow the setup directions here:
http://docs2x.smartfoxserver.com/Gettin ... eb-sockets

Thanks

Re: WebSocket tls protocol

Posted: 27 Dec 2016, 17:13
by Kayler
I checked all
where do you think I could make a mistake?

Re: WebSocket tls protocol

Posted: 28 Dec 2016, 09:15
by Lapo
The first thing to do is verifying that you have correctly installed your SSL certificate.
Point your browser to https://<server-ip>:<port> where <server-ip> is your server's address and <port> is the WSS port you have chosen (default is 8843)

You should see a simple welcome message and your browser should show the "green lock", indicating the SSL certificate is working correctly.

thanks