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

[Mono.Android] Use X509TrustManagerExtensions to allow using domain-config in network_security_config.xml #9302

Conversation

simonrozsival
Copy link
Member

Related to dotnet/runtime#107695

When <domain-config ...> is used in network_security_config.xml then all calls to _internalTrustManager.CheckServerTrusted (javaChain, authType); will throw an exception and we will always pass SslPolicyErrors.RemoteCertificateChainErrors to the custom server certificate validation callback. To fix this, it is necessary to use hostname-specific certificate check via X509TrustManagerExtensions.

@grendello
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jonathanpeppers jonathanpeppers merged commit 9321139 into dotnet:main Sep 13, 2024
57 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants