Invoke Windows Certificate Export Wizard .NET [dup

2019-09-08 12:32发布

This question already has an answer here:

Does anyone know how to invoke/display the Windows Certificate Export Wizard Programmatically within C#.NET whilst providing an X509 Certificate?

2条回答
闹够了就滚
2楼-- · 2019-09-08 12:43

I don't know, but i do vote for program this wizard in C#. Look at X509Certificate2UI class and X509Certificate2.Export method. You will find there everything you need to export cert from store.

查看更多
ら.Afraid
3楼-- · 2019-09-08 13:00

I think you'll have to P/Invoke CryptUIWizExport from the Cryptui.dll.

查看更多
登录 后发表回答