Project

General

Profile

Bug #2969

Not able to create secure socket connection.

Added by Deepak 18 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
mod_wstunnel
Target version:
Start date:
2019-08-07
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

Hi,

Lighttpd version in use lighttpd/1.4.54 (ssl).

I'm able to make web socket connection, but I'm not able to make secure socket connection.

With secure socket configuration, I'm make connection with non-secure web socket connection. Below is curl sample request.

curl --insecure -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: 10.10.11.1" -H "Origin: https://10.10.11.1" http://10.10.11.1:4454/ws_server.php
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
WebSocket-Location: ws://10.10.11.1/ws_server.php
Sec-WebSocket-Accept: Kfh9QIsMVZcl6xEPYxPHzW8SZ8w=

With secure request, I'm seeing below error:

curl --insecure -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: 10.10.11.1" -H "Origin: https://10.10.11.1" https://10.10.11.1:4454/ws_server.php
curl: (35) SSL received a record that exceeded the maximum permissible length.

On browser, I'm seeing below when I make request.

WebSocket connection to 'wss://10.10.11.1:4454/ws_server.php' failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR

I've followed below link:

https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModWSTunnel
https://redmine.lighttpd.net/boards/2/topics/7600

Please note, I'm using self-signed certificate for ssl configuration and I've attached lighttpd configuration.

Requesting to share some light, if I'm something in the configuration.

lighttpd.conf (12.6 KB) lighttpd.conf Deepak, 2019-08-07 05:53

Also available in: Atom