Skip to content

Conversation

@lgg2
Copy link

@lgg2 lgg2 commented Nov 15, 2024

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.

… and must compile the "always" (`ws`) version. It is only a bit more difficult to read the code by the conditions, but same use and implpementation.
@Theldus
Copy link
Owner

Theldus commented Nov 17, 2024

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.

@linuxownz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants