How to open Windows Certificate Viewer (not Manager) [duplicate]
When you open a .crt file in explorer, a Windows Certificate viewer shows the details of the cert.
I need to open this viewer from .net (c#). I've found out that the file system32\cryptext.dll opens the viewer: rundll32.exe cryptext.dll,CryptExtOpenCER
Is there a .net code / class to open this window (or a similar one) directly, if not how do I call the .dll function without rundll32?
Note: I do NOT mean the certmgr.msc itself.
You can call
Process.Start("c:\\certificate.crt");
given the .crt file type is correctly associated in windows explorer
精彩评论