dotnet / dotnet/dotnet-api-docs
X509Certificate2UI.SelectFromCollection is closing the application
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
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.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 249d82b0-4321-3fa3-3890-79267ff37b5b
* Version Independent ID: 09b59323-abcc-9f9c-3eb3-659a7e61a785
* Content: [X509Certificate2UI.SelectFromCollection Method (System.Security.Cryptography.X509Certificates)](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.x509certificates.x509certificate2ui.selectfromcollection?view=netframework-4.7.2)
* Content Source: [xml/System.Security.Cryptography.X509Certificates/X509Certificate2UI.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Security.Cryptography.X509Certificates/X509Certificate2UI.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.