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

Certificate-Weakening TlsOptions have no effect on web socket connections #858

Open
wexman opened this issue Feb 12, 2020 · 1 comment
Open
Labels
bug Something isn't working documentation This is an issue about the documentation

Comments

@wexman
Copy link

wexman commented Feb 12, 2020

I noticed that the "certificate weakening" TlsOptions like IgnoreCertificateChainErrors, IgnoreCertificateRevocationErrors, AllowUntrustedCertificates and CertificateValidationCallback have no effect when using web socket connections.

I understand this is because the underlying api (System.Net.WebSockets) does not support this (at least not in all target frameworks), but I think it should be noted somewhere - that would have saved me several hours of trial and error...

@wexman wexman added the bug Something isn't working label Feb 12, 2020
@SeppPenner SeppPenner added the documentation This is an issue about the documentation label Feb 12, 2020
@JanEggers
Copy link
Contributor

JanEggers commented Feb 18, 2020

the issue here is that for websockets we delegate the handling to kestrel. I didnt investigate how to flow the mqttnet tls options into kestrel so maybe there is a way to get that done.

I just googled a bit and found:

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.1#listenoptionsusehttps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation This is an issue about the documentation
Projects
None yet
Development

No branches or pull requests

3 participants