You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Classic Xamarin.Android (MonoAndroid12.0, etc.), Android for .NET (net6.0-android, etc.)
Affected platform version
.NET 6.0
Description
A customer reported they can't use the ClientCertificates property of AndroidMessageHandler in their app (dotnet/runtime#73960). The ClientCertificates property is defined to match the API of System.Net.Http.HttpClientHandler, but it's never used.
Steps to Reproduce
The following code doesn't work:
varhandler=newHttpClientHandler();// assuming $(UseNativeHttpHandler)=truehandler.ClientCertificateOptions=ClientCertificateOption.Manual;// ClientCertificates is `null` even though the HttpClientHandler's property isn't annotated as nullablehandler.ClientCertificates.Add(certificate);varclient=newHttpClient(handler);// if the server requires client certificate, this request will fail because the certificate we added was ignoredvarresult=awaitclient.GetAsync("...");
Did you find any workaround?
Customers can extend AndroidMessageHandler and implement the functionality by overriding the ConfigureKeyStore method.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
Android application type
Classic Xamarin.Android (MonoAndroid12.0, etc.), Android for .NET (net6.0-android, etc.)
Affected platform version
.NET 6.0
Description
A customer reported they can't use the
ClientCertificates
property ofAndroidMessageHandler
in their app (dotnet/runtime#73960). TheClientCertificates
property is defined to match the API ofSystem.Net.Http.HttpClientHandler
, but it's never used.Steps to Reproduce
The following code doesn't work:
Did you find any workaround?
Customers can extend
AndroidMessageHandler
and implement the functionality by overriding theConfigureKeyStore
method.Relevant log output
No response
The text was updated successfully, but these errors were encountered: