This commit is contained in:
Luke Emmet 2021-07-16 23:04:11 +01:00
parent a811f9dec5
commit 3038a037e1

View File

@ -31,22 +31,9 @@ namespace CuipodExample
return 1;
}
string pass;
if (pfxPassword != null)
{
pass = pfxPassword.Value.ToString();
}
else
{
pass = "";
}
Console.WriteLine("pass: " + pass.ToString());
Console.WriteLine("cert: " + certificateFile.Value.ToString());
var pass = (pfxPassword != null) ? pfxPassword.Value.ToString() : "";
var cert = new X509Certificate2(certificateFile.Value.ToString(), pass);
return AppMain(directoryToServe.Value, cert);
});