Skip to content

System.PlatformNotSupportedException : The PKCS#12 Exportable flag is not supported on this platform. breaking many tests on tvOS simulator #58044

@danmoseley

Description

@danmoseley

This is failing many tests in System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests_*

System.PlatformNotSupportedException : The PKCS#12 Exportable flag is not supported on this platform.


Stack trace
   at Internal.Cryptography.Pal.AppleCertificatePal.FromDerBlob(ReadOnlySpan`1 rawData, X509ContentType contentType, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
   at Internal.Cryptography.Pal.AppleCertificatePal.FromBlob(ReadOnlySpan`1 rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
   at Internal.Cryptography.Pal.CertificatePal.FromBlob(ReadOnlySpan`1 rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
   at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
   at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
   at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests_SingleCert.ReadPfx(Byte[] pfxBytes, String correctPassword, X509Certificate2 expectedCert, Action`1 otherWork, X509KeyStorageFlags flags)
   at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests_SingleCert.ReadMultiPfx(Byte[] pfxBytes, String correctPassword, X509Certificate2 expectedSingleCert, X509Certificate2[] expectedOrder, X509KeyStorageFlags nonExportFlags, Action`1 perCertOtherWork)
   at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests.ReadMultiPfx(Byte[] pfxBytes, String correctPassword, X509Certificate2 expectedSingleCert, X509Certificate2[] expectedOrder, Action`1 perCertOtherWork)
   at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests.TwoCerts_TwoKeys_ManySafeContentsValues(Boolean invertCertOrder, Boolean invertKeyOrder)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

https://dev.azure.com/dnceng/public/_build/results?buildId=1313534&view=ms.vss-test-web.build-test-results-tab&runId=38657078&resultId=142723&paneView=debug

@mdh1418 this is making a lot of noise when looking through staging failures.

@dotnet/area-system-security is the correct change here to just disable these tests permanently for tvOS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions