static void Main(string[] args) { var currentDirectory = Directory.GetCurrentDirectory(); using (var runner = new OpenSslRunner( Path.Combine(currentDirectory, "output"), Path.Combine(currentDirectory, "openssl.exe"), Path.Combine(currentDirectory, "openssl.conf"), "http://fake-example.blob.core.windows.net/testca/", 42000)) { if (args.Contains("ocsp", StringComparer.OrdinalIgnoreCase)) { runner.StartOcspResponder(CertificateId.IntermediateOcspSigner, CertificateId.IntermediateOcsp); Console.WriteLine("Press enter to end the process and shut down the OCSP responder."); Console.ReadLine(); } else if (args.Contains("generate", StringComparer.OrdinalIgnoreCase)) { GenerateCertificates(runner); } else { Console.WriteLine("You must specify one argument. Either 'ocsp' or 'generate'."); } } }