WebSocket tls protocol

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

Kayler
Posts: 5
Joined: 15 Oct 2012, 01:08

WebSocket tls protocol

Postby Kayler » 26 Dec 2016, 22:25

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
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: WebSocket tls protocol

Postby Lapo » 27 Dec 2016, 11:00

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
Lapo
--
gotoAndPlay()
...addicted to flash games
Kayler
Posts: 5
Joined: 15 Oct 2012, 01:08

Re: WebSocket tls protocol

Postby Kayler » 27 Dec 2016, 17:13

I checked all
where do you think I could make a mistake?
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: WebSocket tls protocol

Postby Lapo » 28 Dec 2016, 09:15

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
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: Bax and 23 guests