开发者

How to open Windows Certificate Viewer (not Manager) [duplicate]

This question already has answers here: Invoke Windows开发者_JS百科 Certificate Export Wizard .NET [duplicate] (2 answers) Closed 2 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜