-
Notifications
You must be signed in to change notification settings - Fork 75
Documentation wss #76
Comments
Hello @clounixeood, I am assigning @Pierozi, he would probably provide you interesting inputs about your questions! |
Hi Guys, some news about it? |
Hello @clounixeood, sorry i planned to do a Snippet for you but have no time until Sunday. If you want TLS on your socket, you need add your certificate in the context of Server. |
@clounixeood look at https://github.com/hoaproject/Socket/blob/master/Connection/Connection.php#L475 This MVE is bit old, but i think it could help you https://github.com/Pierozi/Socket/blob/mwe/mwe/EasyServer.php#L66-L78 |
Hello @Pierozi , thank you very much for your hints, i follow your guide and something changed.
and its good.
Meantime the server write :
I have put the certificate in .pem format that contains request, key and certificate all together in the style
and set the path into the array variable
If you have any other hints (of course when you have time) i will appreciate very much. |
I can confirm we have a bug of enable TLS with WebSocket. https://github.com/Pierozi/Websocket/pull/1/files#diff-5a72b4fa5efc1217f53f085c8580c79eR94 @Hywan I've setup MWE for debug, It's around Server handshake, first guess it is the missing call of But then the result of read is empty. I need look it more deeply. |
@Pierozi Can you open an issue please? |
@clounixeood Please, look in my fork for up to date demo : If you try on your side you need install this patch #78 |
@clounixeood any news ? I would like really make it work encryption with your client usecase. |
Hello @Pierozi , i tried it yesterday evening. Unfortunately the error on the console of Chrome and Firefox is "Connection closed before handshake". For now, i solved installing the extension proxy_wstunnel on my apache that take inputs on port 443 using my certificates (configured on apache) and redirect all the traffic on your hoawebserver on port 8889 without encryption. It is working great. Thank you very much for what you are doing. |
Hello @clounixeood Thanks for feedback, you confirm me it's not working even with trust certificate. |
@clounixeood Thanks alot buddy! you might didn't know when you wrote this last comment about setting up a proxy_wstunnel and do internal ws:// connection but your comment really made my day and helped me to set up wss:// connection without messing up with HoaWebsocket code. Works like a charm. |
Glad to hear your success!! Have a nice day.
|
Hello,
i would be thankful for the service that is really great but in your documentation about wss:// i see only to set the url wss:// on server side and client side but it is not enough, cause chrome does not connect to hoa websocket.
I think it is needed to have SSL certificates on server but it is not explained how to configure Hoa to choose the path for that certificate.
Thank you.
Andrea Bernardi
The text was updated successfully, but these errors were encountered: