Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate adding config to disable SSL validation #7

Open
mikerochip opened this issue Jul 26, 2023 · 3 comments
Open

Investigate adding config to disable SSL validation #7

mikerochip opened this issue Jul 26, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@mikerochip
Copy link
Owner

mikerochip commented Jul 26, 2023

@mikerochip mikerochip added the enhancement New feature or request label Jul 26, 2023
@mikerochip
Copy link
Owner Author

mikerochip commented Jul 26, 2023

Using websocket-sharp works for non-WebGL to bypass the mono bug where cert validation callbacks are not properly called. Experimental branch here.

There is no great workaround for JavaScript outside of using a Node websocket library with rejectUnauthorized: true.

This library may become become bloated with the inclusion of these two things. Will have to ponder this more.

@mikerochip mikerochip changed the title Investigate disabling SSL validation Investigate adding config to disable SSL validation Jul 30, 2023
@tmaxted
Copy link

tmaxted commented Feb 28, 2024

Hi there, apologies for reviving this after almost a year!

Thank you very much for the references, they were very helpful.
I had this exact situation but actually managed to fix it by setting a custom ServicePointManager CertificatePolicy.
See gist for code snippets.

Hope this helps!

@mikerochip
Copy link
Owner Author

No need to apologize! I wish WebGL had a decent path to a solution, but at least with the technique you discovered I won't have to vendor websocket-sharp for the DotNet path. I really appreciate it, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants