Bug 53689 - [Test] Certificate7 disabled due to SecCertificateCreateWithData does different things on 10.11 vs 10.12 with invalid certificates
Summary: [Test] Certificate7 disabled due to SecCertificateCreateWithData does differe...
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Martin Baulig
Depends on:
Reported: 2017-03-22 01:57 UTC by Chris Hamons
Modified: 2017-04-04 21:49 UTC (History)
2 users (show)

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

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 for Bug 53689 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Chris Hamons 2017-03-22 01:57:35 UTC
https://github.com/mono/mono/pull/4470 ran across this gem:

SecCertificateCreateWithData with an invalid certificate returns an actual item on 10.11, but null on 10.12

This makes the test fail, but only on mono bots.

I disabled the test for now.

[MacNotWorking] // SecCertificateCreateWithData does different things on 10.11 vs 10.12 with invalid certificates
public void Certificate7 ()

We should do something better when we're not blocking a merge.
Comment 1 Martin Baulig 2017-03-22 14:32:06 UTC
Interesting!  I have macOS Sierra 10.2.3.

We should investigate whether the SecCertificateRef that's returned on 10.11 has some properties which would identify it as an invalid certificate.

It'd also be interesting to check why exactly the certificate from that test is invalid.

Let's just disable the test for now, I'll have a look at it.
Comment 2 Andi McClure 2017-04-04 21:49:27 UTC
More information about how this expressed itself in tests here https://bugzilla.xamarin.com/show_bug.cgi?id=53958