microsoft / referencesource

Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework
https://referencesource.microsoft.com/
MIT License
3.16k stars 1.27k forks source link

X509Certificate2UI.SelectFromCollection is closing the application #91

Closed guirsz closed 5 years ago

guirsz commented 5 years ago

https://github.com/dotnet/dotnet-api-docs/issues/1327

On a given client, when accessing the X509Certificate2UI.SelectFromCollection function the application is closing without even going through the error handling.

I'm using .NET Framework 4.5, and the problem happens on a machine with Windows 10 Pro, which has about 8 valid certificates.

I tried to use [SecurityCritical] attribute.

If use flag X509SelectionFlag.MultiSelection then works, but the application needs just one. Using X509SelectionFlag.SingleSelection doesn't work, and the application terminates.

terrajobst commented 5 years ago

This repo only tracks infrastructure issues regarding the following items:

For issues regarding functionality, please use the following resources: