如何使用命令openssl.exe和cmd以及这些参数:
openssl x509 -outform der -in certificate.pem -out certificate.der
我写这个C#代码:
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = "/c" + directoryWebPath + openssl.exe x509 -outform der -in certificate.pem -out certificate.der";
process.StartInfo = startInfo;
process.Start();
但它不起作用!当我手动执行它可以工作,但当我从应用程序Web服务C#执行它时,它不起作用!为什么? :(
PS:如何从remotewebservice执行此exe?谢谢!