I want to write a C# console or WinForms application to add digital signature to a PDF file using a Certificate .PFX file. Currently, I am able to sign PDF files using a PFX certificate from a folder in the file system, using iText7 and BouncyCastle libraries.
But I need to ask the user to choose a Certificate at run time from the list of installed certificates in the system.
Specifically, I want to display the Windows Security's Confirm Certificate dialog box, and sign using the certificate selected by the user. I want to show the popup shown below:
My specific question is: How can I trigger the Windows Security's Confirm Certificate dialog box, and how can I read the certificate selected by the user?
EDIT 1: If I use X509Certificate2UI.SelectFromCollection method, I get a different popup as shown below. This is different from what I want.

