Click here to Skip to main content
16,017,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi al,

I am trying create the certificate using makecert.exe through C#, in that i have written code like

{
ProcessStartInfo info = new ProcessStartInfo();
Process p = new Process();
info.FileName = Server.MapPath(@"\bin\makecert.exe");
info.UseShellExecute = true;
info.Verb = "runas"; // Provides Run as Administrator
info.Arguments= @" -n " + @"""CN=Pcrao123a""" + @" -b 12/10/2013 -e 01/05/2014 -r -sky exchange -pe -sr localMachine -ss my -sp " + @"""Microsoft RSA SChannel Cryptographic Provider""" + @" -sy 12 pcrao123.cer ";
p.StartInfo = info;
p.Start();
}

the certificate creating successfully in iis. but .cer file is not creating. But when the same argument run in CMD Prompt it is creating both Certificate and ,cer file.

please tell what is problem in my code
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900