wsServer icon indicating copy to clipboard operation
wsServer copied to clipboard

Integrated SSL support. Modified echo example.

Open lgg2 opened this issue 1 year ago • 2 comments

Hello,

Again and again. This must work. Minimal changes made.

To ws, skip to including the cert and cert_key paths (or blank string) in ws_socket call struct. To wss include a valid certificate and key for it.

I have include a localhost certificate to test. It must be added a exception in the browser. For this, run the echo example in wss mode and tell to the browser to add a exception over https://localhost:8080 (in case of default values). After, it will work without problems.

lgg2 avatar Nov 15 '24 10:11 lgg2

Hi @lgg2, Thank you for your second PR regarding SSL.

At the moment, I’m a bit busy and also involved in another open-source project, so it may take me some time to review this PR.

There are a few aspects of this PR that concern me, such as commented-out code and similar issues, but please leave it as it is, and I’ll review it when I have the time.

Additionally, since SSL support is a sensitive feature, I plan to give it special attention when I can. I appreciate your patience, and I kindly ask you to keep this PR open.

Theldus avatar Nov 17 '24 21:11 Theldus

I can attest that this patch works and works well. I included it in my project and works fantastically

linuxownz avatar Oct 20 '25 23:10 linuxownz