This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
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...
Status: CONFIRMED
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib (show other bugs)
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Martin Baulig
URL:
Depends on:
Blocks:
 
Reported: 2017-03-22 01:57 UTC by Chris Hamons
Modified: 2017-04-04 21:49 UTC (History)
2 users (show)

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


Attachments

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

Note You need to log in before you can comment on or make changes to this bug.