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

WebSocket does not connect to a broker with an invalid SSL certificate #71

Open
kubeliv opened this issue Apr 30, 2019 · 0 comments
Open
Assignees

Comments

@kubeliv
Copy link
Contributor

kubeliv commented Apr 30, 2019

This is currently a problem that cannot be addressed until we find a suitable workaround. .NET Standard 2.0 does not have the new callback for certificate validation which allows us to bypass all certificate validation for a WebSocket. .NET Standard 2.1 is the first version that adds this new API, but 2.1 removes .NET Framework compatibility entirely.

More details about this issue are available here:
https://github.com/dotnet/corefx/issues/12038
dotnet/corefx#28141

Possible solutions include:

  • Rolling our own WebSocket implementation
  • Using the .NET Standard fork of WebSocketSharp (not sure as of yet if this shims the native ClientWebSocket or ideally a port of the standard WebSocketSharp)
  • Drop .NET Framework support and jump to .NET Standard 2.0
@kubeliv kubeliv self-assigned this Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant