0
C#을 진행 명령 내가하지 SCR이 코드를 사용하여 위의 코드에서 생성 수 :노하우 기호 CSR 내가 키를 생성뿐만 아니라 다음 줄 같은 OpenSSL이 명령을 사용하여 C#을 과정을 통해 키에서 CSR을 생성 할 수있게되었습니다
startInfo.Arguments = @"ca -batch -keyfile ..\..\ca\ca.key -cert ..\..\ca\cacert.pem -in ..\..\Certificates\client.req -outform PEM -out client.pem";
Console.WriteLine("Signing Cert...");
System.Diagnostics.Process p= System.Diagnostics.Process.Start(startInfo);
//This step is executed without error but does not generate the signed certificate client.pem.
//Strangely enough, this command works fine when executed in the openssl shell and it does generate the signed client.pem
p.WaitForExit();
Console.WriteLine("Signing done");
}
내가 명령이 잘못을 확인하려면 실행하지만 난 그것을 수행하는 방법을 모르는 경우 VS2012에 OpenSSL을 디버깅하기 위해 노력했다. 내가 말한대로 서명 명령은 openssl 쉘에서 잘 작동하지만 여기서 작동하지 않으며 오류를 발생시키지 않습니다.
아이디어가 있으십니까?