Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I generate a .pfx file?

Is there any way to create .pfx files in order to sign documents, I've found a program called x509 Certificate Generate,but I want to know if it can be generated in code using c#.

like image 571
user773456 Avatar asked Jan 19 '12 00:01

user773456


1 Answers

There is a Microsoft command-line tool makecert that can be used to generate certificates. It's part of the Windows SDK. On my machine there are half a dozen versions e.g. in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64. Then in your code you can start a process to run the executable with the appropriate parameters.

like image 157
David Clarke Avatar answered Oct 21 '22 15:10

David Clarke