WebSocket over HTTPS

836 Views Asked by At

I'm trying to use Websocket over HTTPS. Or just even get a Websocket handshake and connection without HTTPS with no success.

I'm using Windows 8.1 Pro and installed the Websocket protocol. I've created a web application in IIS with a self signed certificate.

When I'm running my website and invoking the connect websocket function I'm getting an 404 error in chrome dev tools under Network Tab-> Websocket.

I wrote the fqdn in the link to connect such as ws://fqdc/page.ashx I also tried: ws://localhost/page.ashx

Can anyone suggest some idea on what I'm doing wrong?

2

There are 2 best solutions below

2
chen On BEST ANSWER

It's been solved, I added

HttpRuntime targetFramework="4.5

under

system.web tag

and it worked.

I figure it out when looking into Event Viewer.

1
vtortola On

If you are using a self signed certificate, you must use it for the page as well and access through HTTPS, therefore the browser will prompt the user for the certificate acceptance.