-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Authentication failed when trying to connect to secure websocket with android 8 #83118
Comments
Might be the same issue as connecting to Sql Server where SSL fails (used on log in even when not encrypting) |
Is there some solution or conclusion ? |
Facing the same issue on a non-MAUI Android .NET 6 app with errors like this:
Also, in logcat I see the following right before the .NET exception:
Switching to the legacy HTTP handler didn't help as well. |
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescriptionI cant connect to secure websocket(wss), it just writing Steps to ReproduceConnect to a secure websocket with .NET MAUI APP on android phone with android version 8, tested on both physical phone and emulator. Version with bug6.0.400 Last version that worked wellUnknown/Other Affected platformsAndroid Affected platform versionsAndroid 8, but most likely its all older android versions Did you find any workaround?In xamarin, there is
Also i tryed this, but also not helpful
I tryed some settings in Websocket object with EnabledProtocols, but also nothing. Relevant log outputAuthentication failed, see inner exception. at System.Net.Security.SsiStream<ForceAuthenticationAsy nc>d_175' 1 [(System.NetSecurity.AsyncReadWriteAdapter, System.Net.Security, Version=6.0.0.0, Culture-neutral, PublicKeyToken=b03f5f7111d50a3aMMoveNext0 at SuperSocketClientEngine.SsIStreamTcpSessio n.AuthenticateAsClientAsync(SslStream ssIStream, Security0ption securityOption)
|
Tagging subscribers to 'arch-android': @steveisok, @akoeplinger Issue DetailsDescriptionI cant connect to secure websocket(wss), it just writing Steps to ReproduceConnect to a secure websocket with .NET MAUI APP on android phone with android version 8, tested on both physical phone and emulator. Version with bug6.0.400 Last version that worked wellUnknown/Other Affected platformsAndroid Affected platform versionsAndroid 8, but most likely its all older android versions Did you find any workaround?In xamarin, there is
Also i tryed this, but also not helpful
I tryed some settings in Websocket object with EnabledProtocols, but also nothing. Relevant log outputAuthentication failed, see inner exception. at System.Net.Security.SsiStream<ForceAuthenticationAsy nc>d_175' 1 [(System.NetSecurity.AsyncReadWriteAdapter, System.Net.Security, Version=6.0.0.0, Culture-neutral, PublicKeyToken=b03f5f7111d50a3aMMoveNext0 at SuperSocketClientEngine.SsIStreamTcpSessio n.AuthenticateAsClientAsync(SslStream ssIStream, Security0ption securityOption)
|
do you see that with .NET 7 as well? AFAIK there were many improvements. cc @simonrozsival |
We addressed a bunch of these issues in the 6 and 7 servicing releases around the Dec / Jan timeframe. @Lukas123798, I'd grab the latest and try again. |
This issue has been marked |
The error |
This issue has been automatically marked |
This issue will now be closed since it had been marked |
Description
I cant connect to secure websocket(wss), it just writing
Unable to connect to the remote server
and errorAuthentication failed
, full log is down there, and to unsecure websocket i can connect easily on any android.When i used android 11 phone it works fine.
I am using library 'WebSocket4Net' which working perfectly in xamarin with all androids.
Steps to Reproduce
Connect to a secure websocket with .NET MAUI APP on android phone with android version 8, tested on both physical phone and emulator.
Or there is my repo where you can test it Repo
Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 8, but most likely its all older android versions
Did you find any workaround?
In xamarin, there is
SSL/TLS implementation and HttpClient implementation
option in project settings, but in .NET MAUI its not or i didnt found itI tryed copied this from Xamarin project where this websocket works fine on every platform, but its still not working.
Also i tryed this, but also not helpful
I tryed some settings in Websocket object with EnabledProtocols, but also nothing.
Relevant log output
The text was updated successfully, but these errors were encountered: