[Libwebsockets] Problem building an SSL-enabled Libwebsocketserver

werbung_torsten at email.de werbung_torsten at email.de
Mon Apr 29 17:27:18 CEST 2013


Hi Andy,

thanks for you quick answer.

> Gesendet: Sonntag, 28. April 2013 um 01:14 Uhr
> Von: "Andy Green (林安廸)" <andy at warmcat.com>
> > [16] accepted new SSL conn
> > [8] lws_server_skt_srv: read 0 len
>
> Normally if you see a socket read return 0, it's because the other side
> has closed.
>
>
> I'm not certain there is a problem... what is the peer your server talks
> to and what did it send / log about that?

Your answer provided the solution for me. I use a Firefox browser as a client. It did not like my self-signed certificate. I had to enter the wss-url manually in the browser to get the option to trust this specific self-signed certificate for the wss-call. Now it works fine.

Thanks,

Torsten



More information about the Libwebsockets mailing list