Closed timgoeij closed 1 year ago
Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones See info in area-owners.md if you want to be subscribed.
Author: | timgoeij |
---|---|
Assignees: | - |
Labels: | `area-System.Security` |
Milestone: | - |
Tagging subscribers to this area: @dotnet/ncl, @vcsjones See info in area-owners.md if you want to be subscribed.
Author: | timgoeij |
---|---|
Assignees: | - |
Labels: | `area-System.Net.Security`, `os-android`, `untriaged` |
Milestone: | - |
I have confirmed that this also happens with a Android project without .NET MAUI involved on net7.0-android.
The same happens when using the GoogleCast plugin instead of the plugin used here, so it doesn't seem to be the plugin either. The exact same code works on iOS/macOS.
/cc @simonrozsival
The remote certificate validation callback in SharpCaster will work with .NET 8 on Android thanks to #77386 (https://github.com/Tapanila/SharpCaster/blob/0cf04845f961c6a975681ee8daa2349bbe4c9259/Sharpcaster/ChromeCastClient.cs#L110).
We chose not to backport the fix to .NET 7 and I don't know how this could be worked around using network_security_config.xml. I'm afraid there isn't a good workaround for this issue in .NET 7.
Description
When trying to connect to a chromecast there will be an authentication error. Becauser there is no network security config specified and there is no path for a trust anchor certificate
Steps to Reproduce
Link to public reproduction project repository
https://github.com/timgoeij/MauiChromeCastTest
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 7.1, 9, 12
Did you find any workaround?
No response
Relevant log output