Invoke Windows Certificate Export Wizard .NET [dup

2019-09-08 12:18发布

问题:

This question already has an answer here:

  • How to P/Invoke CryptUIWizExport Function using .NET 2 answers

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

回答1:

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



回答2:

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.