Bug 46571 - ServicePointManager reports 'RemoteCertificateNameMismatch' on wildcard certificate
Summary: ServicePointManager reports 'RemoteCertificateNameMismatch' on wildcard certi...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 7.0 (C8)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Habersack
URL:
Depends on:
Blocks:
 
Reported: 2016-11-08 13:47 UTC by sven.hennessen
Modified: 2018-05-14 07:26 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Reproduction solution (38.21 KB, application/zip)
2016-11-08 13:47 UTC, sven.hennessen
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description sven.hennessen 2016-11-08 13:47:01 UTC
Created attachment 18374 [details]
Reproduction solution

This bug may be the same as https://bugzilla.xamarin.com/show_bug.cgi?id=44813 but on the current Alpha channel release for Mac (Xamarin.Android 7.0.0.18).

Our internal development landscape certificate has a wildcard as part of the subject, such as '*.mmx.sap.corp'. The current Alpha channel release seems to handle wildcards not correctly and reports a 'RemoteCertificateNameMismatch' SslPolicyError to the callback registered to to `ServicePointManager.ServerCertificateValidationCallback`.

This works in Stable. Hence we believe we are facing a regression here.

Repro attached. Assign URL of test server to constant in MainActivity.cs line 18.
Comment 1 John Miller [MSFT] 2017-07-06 15:32:43 UTC
Unfortunately, we’re unable to reproduce this report using the latest Xamarin.Android (7.3). If this issue is still occurring for you, please reopen this issue and provide an endpoint that could be used to reproduce this issue. Thank you!