Secure connection closing immediately

Aug 4, 2015 at 3:18 PM
Hi,

at first I thought there was a problem in my own program, so I went back to the basics, the example files and used "C-StartByConfig".

When I run the example server and test it with the provided HTML page in Chrome, I can connect to the server. But, when I alter this line in the HTML page
ws = new window[support]('ws://localhost:2012/');
to
ws = new window[support]('wss://localhost:2013/');

The connection is closed immediately.

After some googling I found this: https://www.youtube.com/watch?v=2k581jcWk9M and added your localhost certificate to the "current user" and "Local Computer"

Image

But still the wss connection cannot be established. I only get:
  • Connecting to server
  • Connection closed
and no errors in the c# code.
Any suggestions?

Kind regards and thanks for the websockets,

Matthijs
Coordinator
Aug 4, 2015 at 4:47 PM
Did you setup the server support the secure websocket connection?
Aug 4, 2015 at 8:23 PM
Hi,

I did a retry and did every step again as described above. Seems to be working now. Guess I mist one step or didn't save something correct before.
Sorry.

Matthijs