[release/8.0-staging] use also SslCertificateTrust when constructing CertificateContext#104541
Conversation
…tnet#103372) * use also SslCertificateTrust when constructing CertificateContext * 'build * feedback
…ception (dotnet#104016) * Check if certificate collections are not empty before changing trust mode to custom root trust * Enable SslStream_ClientCertificateContext_SendsChain test on Android * Apply suggestions from reviews * Avoid unnecessary allocations
|
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones |
|
Friendly reminder that Monday July 15th is Code Complete day, that's the deadline to get this included in the August Release. |
|
The |
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
The |
Backport of #103372 and #104016 to release/8.0-staging
Customer Impact
Customers developing Android apps are currently unable to use mutual TLS authentication in certain cases as the
SslStreamCertificateContext.Create(...)method will fail to build an X509Chain instance if the certificate isn't trusted by the OS due to the limitations of the Android platform.Regression
Testing
Unit tests and manual testing on Android emulator.
Risk
Low. The change is mostly limited to Android where this API doesn't currently work in many cases.
/cc @vitek-karas @wfurt